From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#13817: 24.3.50; Disabling whitespace-mode that was enabled in sgml-mode-hook breaks font-lock Date: Tue, 19 Mar 2013 09:02:34 -0400 Message-ID: References: <87ppznbnba.fsf@yandex.ru> <5147F2EC.4060102@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1363698213 27089 80.91.229.3 (19 Mar 2013 13:03:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Mar 2013 13:03:33 +0000 (UTC) Cc: 13817-done@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 19 14:03:57 2013 Return-path: Envelope-to: geb-bug-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 1UHwCr-0004UQ-0k for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Mar 2013 14:03:57 +0100 Original-Received: from localhost ([::1]:47823 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHwCT-0005RK-OX for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Mar 2013 09:03:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHwCM-0005Ji-Lz for bug-gnu-emacs@gnu.org; Tue, 19 Mar 2013 09:03:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UHwCJ-0008QB-9w for bug-gnu-emacs@gnu.org; Tue, 19 Mar 2013 09:03:26 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59307) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHwCJ-0008Q6-7K for bug-gnu-emacs@gnu.org; Tue, 19 Mar 2013 09:03:23 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UHwDu-0004FV-A5 for bug-gnu-emacs@gnu.org; Tue, 19 Mar 2013 09:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Mar 2013 13:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13817 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13817-done@debbugs.gnu.org id=D13817.136369827616258 (code D ref 13817); Tue, 19 Mar 2013 13:05:02 +0000 Original-Received: (at 13817-done) by debbugs.gnu.org; 19 Mar 2013 13:04:36 +0000 Original-Received: from localhost ([127.0.0.1]:35183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UHwDU-0004EB-GP for submit@debbugs.gnu.org; Tue, 19 Mar 2013 09:04:36 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:4611) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UHwDT-0004E3-6G for 13817-done@debbugs.gnu.org; Tue, 19 Mar 2013 09:04:35 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFFxKvA/2dsb2JhbABEuzWDWRdzgh4BAQQBViMQCw4mBwsUGA0kiB4GsR+QDpEKA6R6gV6DEw X-IPAS-Result: Av8EABK/CFFFxKvA/2dsb2JhbABEuzWDWRdzgh4BAQQBViMQCw4mBwsUGA0kiB4GsR+QDpEKA6R6gV6DEw X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="5251361" Original-Received: from 69-196-171-192.dsl.teksavvy.com (HELO pastel.home) ([69.196.171.192]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 19 Mar 2013 09:02:47 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id BC01A632AA; Tue, 19 Mar 2013 09:02:34 -0400 (EDT) In-Reply-To: <5147F2EC.4060102@yandex.ru> (Dmitry Gutov's message of "Tue, 19 Mar 2013 09:09:00 +0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:72705 Archived-At: >>> On the surface, the reason for this is that when whitespace-mode is being >>> turned on in the hook, font-lock-keywords is still nil, and so nil is >>> saved in whitespace-font-lock-keywords. >> whitespace.el should probably use font-lock-remove-keywords instead. > That helped, thank you. > I left the disabling/enabling of font-lock-mode there, because otherwise the > changes in highlighting are not visible until the buffer is modified. Supposedly `font-lock-fontify-buffer' is meant to do that without disabling+enabling. Stefan