GNU bug report logs - #19720
24.4; minor mode's font-lock-add-keywords & auto-mode-alist problem

Previous Next

Package: emacs;

Reported by: Joost Kremers <joostkremers <at> fastmail.fm>

Date: Wed, 28 Jan 2015 22:56:02 UTC

Severity: minor

Found in version 24.4

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

Bug is archived. No further changes may be made.

Full log


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

From: Joost Kremers <joostkremers <at> fastmail.fm>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: 19720 <at> debbugs.gnu.org, Dmitry Gutov <dgutov <at> yandex.ru>
Subject: Re: bug#19720: 24.4;
 minor mode's font-lock-add-keywords & auto-mode-alist problem
Date: Fri, 30 Jan 2015 17:59:57 +0100
On Thu, Jan 29 2015, Stefan Monnier <monnier <at> IRO.UMontreal.CA> wrote:
>> Looks like the problem is that `markdown-reload-extensions', which is called
>> from `markdown-mode', not only sets `font-lock-defaults', but also calls
>> `font-lock-refresh-defaults'.
>
> FWIW, I think part of the problem is that there's no way to "reset
> font-lock-keywords" without throwing away all the keywords added via
> font-lock-add-keywords.

But why does it only happen when the mode is set through an entry in
`auto-mode-alist' and not when I activate `markdown-mode' myself with
`M-x markdown-mode'? 

-- 
Joost Kremers
Life has its moments




This bug report was last modified 5 years and 210 days ago.

Previous Next


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