GNU bug report logs - #23534
Failing to recognize -- as comment-starter

Previous Next

Package: emacs;

Reported by: Stefan Monnier <monnier <at> IRO.UMontreal.CA>

Date: Fri, 13 May 2016 20:29:02 UTC

Severity: normal

Found in version 25.1.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: 23534-done <at> debbugs.gnu.org
Subject: Re: Failing to recognize -- as comment-starter
Date: Sat, 02 Sep 2017 15:53:12 +0300
> From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
> Date: Fri, 13 May 2016 16:28:06 -0400
> 
> Put the following in bug-mode.el:
> 
>     (defvar bug-mode-syntax-table
>       (let ((st (make-syntax-table)))
>         (modify-syntax-entry ?- "_ 123" st)
>         (modify-syntax-entry ?\n ">" st)
>         st))
>     
>     (define-derived-mode bug-mode prog-mode "BUG"
>       "Major mode to exhibit the bug."
>       (setq-local font-lock-defaults '(nil))
>       (insert "-- hello\n"))
> 
> And then
> 
>     emacs -Q -l bug-mode.el -f bug-mode
> 
> In Emacs-24.5 (and emacs-25) you then see "-- hello" highlighted as
> a comment, but on "master" this stays in default face.

It is highlighted as a comment with the current master, so I guess the
bug was solved in the meantime.

Thanks.




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

Previous Next


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