Subject: bug#19720: 24.4; minor mode's font-lock-add-keywords & auto-mode-alist problem

From: Joost Kremers <[email-masked]>
Date: Fri, 30 Jan 2015 17:59:57 +0100

On Thu, Jan 29 2015, Stefan Monnier <[email-masked]> 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