]> git.eshelyaron.com Git - emacs.git/commitdiff
In HTML mode, don't match </ with the wrong /
authorRĂ¼diger Sonderfeld <ruediger@c-plusplus.de>
Sun, 15 Apr 2018 21:56:24 +0000 (23:56 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 15 Apr 2018 21:56:24 +0000 (23:56 +0200)
* lisp/textmodes/sgml-mode.el (sgml-slash): In HTML mode, don't
match <br /><h1>...</ with the preceding / (bug#16508).

lisp/textmodes/sgml-mode.el

index 52d14bd800cf807e430c52db44499fd753b8a9d0..811eb6622a266d2d9066ddb2af6d5e4e54d38c0e 100644 (file)
@@ -618,7 +618,7 @@ Behaves electrically if `sgml-quick-keys' is non-nil."
     (delete-char -1)
     (sgml-close-tag))
    (t
-    (sgml-slash-matching arg))))
+    (insert-char ?/ arg))))
 
 (defun sgml-slash-matching (arg)
   "Insert `/' and display any previous matching `/'.