From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#14325: 24.3; cc-mode does not initialize correctly w/ -batch Date: Wed, 1 May 2013 18:55:04 +0000 Message-ID: <20130501185504.GB2392@acm.acm> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1367434544 23620 80.91.229.3 (1 May 2013 18:55:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 May 2013 18:55:44 +0000 (UTC) Cc: 14325@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 01 20:55:42 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 1UXcBn-0002im-Ph for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 May 2013 20:55:39 +0200 Original-Received: from localhost ([::1]:47862 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXcBn-0002eT-FF for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 May 2013 14:55:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53489) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXcBj-0002e3-LC for bug-gnu-emacs@gnu.org; Wed, 01 May 2013 14:55:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXcBi-0003Cl-6W for bug-gnu-emacs@gnu.org; Wed, 01 May 2013 14:55:35 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50071) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXcBg-0003CI-Nu; Wed, 01 May 2013 14:55:32 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UXcCA-00064U-C4; Wed, 01 May 2013 14:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Wed, 01 May 2013 18:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14325 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 14325-submit@debbugs.gnu.org id=B14325.136743455523320 (code B ref 14325); Wed, 01 May 2013 18:56:02 +0000 Original-Received: (at 14325) by debbugs.gnu.org; 1 May 2013 18:55:55 +0000 Original-Received: from localhost ([127.0.0.1]:54180 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXcC3-000644-CW for submit@debbugs.gnu.org; Wed, 01 May 2013 14:55:55 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:57565 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXcBz-00063r-NP for 14325@debbugs.gnu.org; Wed, 01 May 2013 14:55:53 -0400 Original-Received: (qmail 36529 invoked by uid 3782); 1 May 2013 18:55:19 -0000 Original-Received: from acm.muc.de (p5492CF92.dip0.t-ipconnect.de [84.146.207.146]) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 01 May 2013 20:55:17 +0200 Original-Received: (qmail 5238 invoked by uid 1000); 1 May 2013 18:55:04 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de 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:73878 Archived-At: Hi, Glenn. On Wed, May 01, 2013 at 01:59:49PM -0400, Glenn Morris wrote: > Alan Mackenzie wrote: > > However, you'll probably prefer to carry on with using Font Lock Mode > > uninitialised. ;-) I think Glenn's patch achieves this painlessly. > That patch seems like TRT to me anyway. Yes. Give me another hour or two to consider, then I'll probably commit it. > What problem is c-standard-font-lock-fontify-region-function supposed to > solve? font-lock-mode not being loaded at the time CC Mode gets loaded, in particular in XEmacs. [I really don't want two alternative bits of code for this level of indirectness.] > Someone changing the default value of > font-lock-fontify-region-function in between font-lock-mode-hook being > run and font-lock-fontify-region being called? That shouldn't happen, > only the buffer-local value should ever be changed. It's not a > user-variable. Anybody changing the default value of font-l-f-r-function had better know what she's doing. ;-) > (I actually think you could safely just call > font-lock-default-fontify-region .) But somebody, somewhere, sometime _might_ change the default value of font-lock-fontify-region-function. Unlikely, but it's possible. -- Alan Mackenzie (Nuremberg, Germany).