Subject: Re: bug#16508: 24.3; Slash matching in HTML mode

From: Lars Ingebrigtsen <[email-masked]>
Date: Sun, 15 Apr 2018 23:57:18 +0200

Rüdiger Sonderfeld <[email-masked]> writes:

> │ diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el
> │ index 09459d1..78fdb50 100644
> │ --- a/lisp/textmodes/sgml-mode.el
> │ +++ b/lisp/textmodes/sgml-mode.el
> │ @@ -539,7 +539,7 @@ (defun sgml-slash (arg)
> │      (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 `/'.

Seems to do the right thing in the test case, so I've applied it to
Emacs 27.1.  If this turns out to be the wrong thing to do, it should be
easy enough to revert.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no