GNU bug report logs - #16508
24.3; Slash matching in HTML mode

Previous Next

Package: emacs;

Reported by: Mark Tilford <ralphmerridew <at> gmail.com>

Date: Mon, 20 Jan 2014 17:42:02 UTC

Severity: minor

Tags: patch

Found in version 24.3

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 16508 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Rüdiger Sonderfeld <ruediger <at> c-plusplus.de>
Cc: ralphmerridew <at> gmail.com, 16508 <at> debbugs.gnu.org
Subject: Re: bug#16508: 24.3; Slash matching in HTML mode
Date: Sun, 15 Apr 2018 23:57:18 +0200
Rüdiger Sonderfeld <ruediger <at> c-plusplus.de> 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




This bug report was last modified 7 years and 41 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.