From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?R=C3=BCdiger?= Sonderfeld Newsgroups: gmane.emacs.bugs Subject: bug#16508: 24.3; Slash matching in HTML mode Date: Tue, 21 Jan 2014 22:37:10 +0100 Message-ID: <2558858.KWMsAWXdTA@descartes> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1390340477 17198 80.91.229.3 (21 Jan 2014 21:41:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Jan 2014 21:41:17 +0000 (UTC) Cc: ralphmerridew@gmail.com To: 16508@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 21 22:41:23 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W5j4T-0008SI-Bw for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Jan 2014 22:41:21 +0100 Original-Received: from localhost ([::1]:60777 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5j4T-0004OP-03 for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Jan 2014 16:41:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5j1S-0002Q4-E9 for bug-gnu-emacs@gnu.org; Tue, 21 Jan 2014 16:38:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5j1I-0002XX-3z for bug-gnu-emacs@gnu.org; Tue, 21 Jan 2014 16:38:14 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45887) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5j1H-0002XR-UL for bug-gnu-emacs@gnu.org; Tue, 21 Jan 2014 16:38:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W5j1H-0000x3-Jl for bug-gnu-emacs@gnu.org; Tue, 21 Jan 2014 16:38:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?R=C3=BCdiger?= Sonderfeld Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Jan 2014 21:38:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16508 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Cc: Mark Tilford , 16508@debbugs.gnu.org Original-Received: via spool by 16508-submit@debbugs.gnu.org id=B16508.13903402473577 (code B ref 16508); Tue, 21 Jan 2014 21:38:03 +0000 Original-Received: (at 16508) by debbugs.gnu.org; 21 Jan 2014 21:37:27 +0000 Original-Received: from localhost ([127.0.0.1]:59902 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W5j0g-0000vd-Gv for submit@debbugs.gnu.org; Tue, 21 Jan 2014 16:37:26 -0500 Original-Received: from ptmx.org ([178.63.28.110]:57611) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W5j0e-0000vT-1d for 16508@debbugs.gnu.org; Tue, 21 Jan 2014 16:37:24 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by ptmx.org (Postfix) with ESMTP id D3F5A2502F; Tue, 21 Jan 2014 22:37:22 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at ptmx.org Original-Received: from ptmx.org ([127.0.0.1]) by localhost (ptmx.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id B44Xr8tAxleo; Tue, 21 Jan 2014 22:37:21 +0100 (CET) Original-Received: from descartes.localnet (chello080108246092.7.14.vie.surfer.at [80.108.246.92]) by ptmx.org (Postfix) with ESMTPSA id 0D17322AF5; Tue, 21 Jan 2014 22:37:21 +0100 (CET) User-Agent: KMail/4.11.3 (Linux/3.11.0-14-generic; KDE/4.11.3; x86_64; ; ) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:83861 Archived-At: Hello, On Monday 20 January 2014 11:39:34 Mark Tilford wrote: > --text follows this line-- > In HTML mode, type >=20 > > > > My Web Page > > >
>

Heading

>=20 > When typing the , it will briefly highlight the
. This is= > incorrect and annoying. Either highlight the matching

or don't > highlight anything. I can reproduce the behaviour. It seems this was introduced to support= SGML's=20 syntax for bar.= But I=20 don't understand why it tries to match a / if it's after a <. (I'm not= very=20 familiar with SGML's quirks and special syntax.) It seems the code in `sgml-slash' actually tried to deal with that case= but in=20 the end still calls `sgml-slash-matching'. The following patch would f= ix that =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgm= l-mode.el =E2=94=82 index 09459d1..78fdb50 100644 =E2=94=82 --- a/lisp/textmodes/sgml-mode.el =E2=94=82 +++ b/lisp/textmodes/sgml-mode.el =E2=94=82 @@ -539,7 +539,7 @@ (defun sgml-slash (arg) =E2=94=82 (delete-char -1) =E2=94=82 (sgml-close-tag)) =E2=94=82 (t =E2=94=82 - (sgml-slash-matching arg)))) =E2=94=82 + (insert-char ?/ arg)))) =E2=94=82=20 =E2=94=82 (defun sgml-slash-matching (arg) =E2=94=82 "Insert `/' and display any previous matching `/'. =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 Until then you could use (define-key sgml-mode-map "/" nil) as a workar= ound to=20 disable the matching in all cases. btw. maybe `sgml-quick-keys' should be customizable. Regards, R=C3=BCdiger