From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Fontification partly broken in some modes Date: Sun, 26 Feb 2012 12:52:34 +0800 Message-ID: <87k43anqlp.fsf@gnu.org> References: <87hayfyz31.fsf@thinkpad.tsdh.de> <20120225181929.GA2691@acm.acm> <87d392zlna.fsf@thinkpad.tsdh.de> <20120226014746.GA3377@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1330231976 31519 80.91.229.3 (26 Feb 2012 04:52:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 26 Feb 2012 04:52:56 +0000 (UTC) Cc: Tassilo Horn , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 26 05:52:55 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S1W6N-0007qn-TP for ged-emacs-devel@m.gmane.org; Sun, 26 Feb 2012 05:52:52 +0100 Original-Received: from localhost ([::1]:45454 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1W6N-0002vf-1z for ged-emacs-devel@m.gmane.org; Sat, 25 Feb 2012 23:52:51 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45607) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1W6J-0002vN-II for emacs-devel@gnu.org; Sat, 25 Feb 2012 23:52:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S1W6H-0002N7-9w for emacs-devel@gnu.org; Sat, 25 Feb 2012 23:52:47 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:48078) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1W6H-0002N3-6B; Sat, 25 Feb 2012 23:52:45 -0500 Original-Received: from bb116-14-103-36.singnet.com.sg ([116.14.103.36]:55362 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1S1W6F-00075z-TA; Sat, 25 Feb 2012 23:52:44 -0500 In-Reply-To: <20120226014746.GA3377@acm.acm> (Alan Mackenzie's message of "Sun, 26 Feb 2012 01:47:46 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:148788 Archived-At: Alan Mackenzie writes: > Please try the following patch and let me know it works: Looks good, thanks. But I suggest moving the check for font-lock-mode and font-lock-spec-present into font-lock-initial-fontify, so that you can just do :after-hook (font-lock-initial-fontify) Please to commit, with this modification.