[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
24 Feb 2002 21:44:30 +0100
Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
you can find the latest sgml-close-tag.el for testing here:
To test this you need a recent sgml-mode.el:
(select the first download-link on that page)
The easiest way to test this is to put something like this in
(autoload 'sgml-close-tag "~/elisp/sgml-close-tag.el" "" t)
(add-hook 'sgml-mode-hook '(lambda()
I have two more questions:
1. this does some well-formedness checking for SGML/XML. Should there
be a variable (sgml-close-tag-no-well-formedness-checking or similar)
to turn this off ?
2. Imagine an SGML/XML document where <p> is sometimes used "unclosed"
Now point is at '_' and I do M-x sgml-close-tag: should sgml-close-tag
insert <p> or should it skip <p> (because that is in sgml-unclosed-tags)
and close <body> instead ?
Pro: It is good style to close all non-empty elements and `sgml-unclosed-tags'
would be used for compatibility only.
Con: This is annoying if you really never want to close the tags in
Maybe we should make this configurable (sgml-close-tag-honor-unclosed-tags or
similar) ? We could also use a default value of 'ask which would prompt
the user "Line xx: Do you want to close <p> ?".
BTW: is it ok if I post such feature-discussions to bug-gnu-emacs ?
is there anybody else I should cc ?
Felix Natter <=