GNU bug report logs - #13755
24.3.50; regression: incorrect font-lock highlighting

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Mon, 18 Feb 2013 22:41:02 UTC

Severity: minor

Tags: notabug

Found in version 24.3.50

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#13755: closed (24.3.50; regression: incorrect font-lock
 highlighting)
Date: Sat, 09 Mar 2013 15:54:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 09 Mar 2013 10:52:29 -0500
with message-id <jwvsj44606v.fsf-monnier+bug#13755 <at> gnu.org>
and subject line Re: bug#13755: 24.3.50; regression: incorrect font-lock highlighting
has caused the debbugs.gnu.org bug report #13755,
regarding 24.3.50; regression: incorrect font-lock highlighting
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
13755: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13755
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: "Drew Adams" <drew.adams <at> oracle.com>
To: <bug-gnu-emacs <at> gnu.org>
Subject: 24.3.50; regression: incorrect font-lock highlighting
Date: Mon, 18 Feb 2013 14:38:42 -0800
[Message part 3 (text/plain, inline)]
The build from 2013-02-17 broke not only whether/when font-locking
occurs (see bugs #13751 and #13730).  It broke also what gets
highlighted.  A build from Feb 15 shows no font-lock problems.
 
See the two attached screenshots.  The one from 02-17 does not highlight
the command name (`icicle-customize-apropos-options-of-type') completely,
as it should and as does the one from 02-15.
 
Attached are also files showing the values of `font-lock-keywords' in an
Emacs Lisp buffer from builds of Feb 15 and Feb 17.  Diffing them shows
something interesting to you, perhaps (doesn't do much for me).  But
what is significant here is that the part that should govern the
highlighting that I notice broken is identical.  So something else is
wrong, somewhere.

In GNU Emacs 24.3.50.1 (i386-mingw-nt5.1.2600)
 of 2013-02-17 on VBOX-W7
Bzr revision: 111822 rgm <at> gnu.org-20130217190146-mm9bh3227ev56bus
Windowing system distributor `Microsoft Corp.', version 5.1.2600
Configured using:
 `configure --with-gcc (4.7) --no-opt --enable-checking --cflags
 -IC:/emacs/libs/libXpm-3.5.10/include -IC:/emacs/libs/libXpm-3.5.10/src
 -IC:/emacs/libs/libpng-dev_1.4.3-1_win32/include
 -IC:/emacs/libs/zlib-dev_1.2.5-2_win32/include
 -IC:/emacs/libs/giflib-4.1.4-1-lib/include
 -IC:/emacs/libs/jpeg-6b-4-lib/include
 -IC:/emacs/libs/tiff-3.8.2-1-lib/include
 -IC:/emacs/libs/libxml2-2.7.8-w32-bin/include/libxml2
 -IC:/emacs/libs/gnutls-3.1.8-w32/include
 -IC:/emacs/libs/libiconv-1.14-2-mingw32-dev/include'
 
[throw-f-l-kw-new.txt (text/plain, attachment)]
[throw-f-l-kw.txt (text/plain, attachment)]
[throw-f-l-bug-02-17.png (image/png, attachment)]
[throw-f-l-bug-02-15.png (image/png, attachment)]
[Message part 8 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: 13755-done <at> debbugs.gnu.org
Subject: Re: bug#13755: 24.3.50; regression: incorrect font-lock highlighting
Date: Sat, 09 Mar 2013 10:52:29 -0500
> (font-lock-add-keywords
>  'emacs-lisp-mode
>  `((,(concat "(" (regexp-opt
>                   '("icicle-define-add-to-alist-command"
>                     "icicle-define-command"
>                     "icicle-define-file-command"
>                     "icicle-define-sort-command")
>                   t)
>              "\\>[ \t'\(]*\\(\\sw+\\)?")
                ^^^
There's your bug: you should use \\_>.

>    ("(\\(icicle-condition-case-no-debug\\)\\>"
                                            ^^^
Same here.


        Stefan


This bug report was last modified 9 years and 84 days ago.

Previous Next


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