Mercurial > hg > xemacs
annotate shared/xml-hack.el @ 70:ef61b0f32027
merge
| author | Henry Thompson <ht@markup.co.uk> |
|---|---|
| date | Mon, 09 Jun 2025 13:21:36 +0100 |
| parents | 107d592c5f4a |
| children |
| rev | line source |
|---|---|
|
0
107d592c5f4a
DICE versions, used by pers/common, recursive, I think/hope
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff
changeset
|
1 (defun sgml-tag-again () |
|
107d592c5f4a
DICE versions, used by pers/common, recursive, I think/hope
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff
changeset
|
2 "Insert another of the tag we're in as sibling" |
|
107d592c5f4a
DICE versions, used by pers/common, recursive, I think/hope
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff
changeset
|
3 (interactive ) |
|
107d592c5f4a
DICE versions, used by pers/common, recursive, I think/hope
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff
changeset
|
4 (let ((elt (sgml-element-name (sgml-find-element-of (point))))) |
|
107d592c5f4a
DICE versions, used by pers/common, recursive, I think/hope
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff
changeset
|
5 (sgml-up-element) |
|
107d592c5f4a
DICE versions, used by pers/common, recursive, I think/hope
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff
changeset
|
6 (sgml-insert-element elt))) |
|
107d592c5f4a
DICE versions, used by pers/common, recursive, I think/hope
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff
changeset
|
7 |
|
107d592c5f4a
DICE versions, used by pers/common, recursive, I think/hope
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff
changeset
|
8 (define-key sgml-mode-map "\C-cn" 'sgml-tag-again) |
