diff options
Diffstat (limited to 'lisp/textmodes/sgml-mode.el')
-rw-r--r-- | lisp/textmodes/sgml-mode.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el index 9e18dbc0651..694903b1fb6 100644 --- a/lisp/textmodes/sgml-mode.el +++ b/lisp/textmodes/sgml-mode.el @@ -352,7 +352,7 @@ If this variable is customized, the custom value is used always. Otherwise, it is set to be buffer-local when the file has a DOCTYPE or an XML declaration." :type 'boolean - :version "21.4" + :version "22.1" :group 'sgml) (defvar sgml-empty-tags nil @@ -1215,7 +1215,7 @@ not the case, the first tag returned is the one inside which we are." (if (cdr tmp) (setcdr tmp (cddr tmp))))) (message "Unmatched tags <%s> and </%s>" (sgml-tag-name tag-info) (pop stack))))) - + (if (and (null stack) (sgml-unclosed-tag-p (sgml-tag-name tag-info))) ;; This is a top-level open of an implicitly closed tag, so any ;; occurrence of such an open tag at the same level can be ignored |