From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Possible bug? font-lock-add-keywords in minor mode and auto-mode-alist Date: Mon, 26 Jan 2015 15:10:14 -0500 Organization: A noiseless patient Spider Message-ID: References: <54C6466D.1050608@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1422303326 1806 80.91.229.3 (26 Jan 2015 20:15:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Jan 2015 20:15:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 26 21:15:25 2015 Return-path: Envelope-to: geh-help-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 1YFq4B-0005f5-RL for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Jan 2015 21:15:23 +0100 Original-Received: from localhost ([::1]:43874 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFq4B-0003ZD-83 for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Jan 2015 15:15:23 -0500 Original-Path: usenet.stanford.edu!goblin3!goblin2!goblin.stu.neva.ru!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 10 Injection-Info: mx02.eternal-september.org; posting-host="03c47ce036a024390bfeffdded698232"; logging-data="399"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+xCLxq7ztx+b5D0MqIejkv" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:MwJJ4LD2XYMdecePBNMtyljfipU= sha1:f7/OxoO9OttH5TaiUyxLWoh4+9E= Original-Xref: usenet.stanford.edu gnu.emacs.help:210015 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102294 Archived-At: >> I can reproduce this, looks like a bug. > Could that be another occurrence of the "changing major mode kills all > local variables" thing? No, it looks more like when global-font-lock-mode's hook runs, it gets fooled into thinking that the font-lock-keywords was setup for a parent mode and needs to be re-set. Stefan