From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#14325: 24.3; cc-mode does not initialize correctly w/ -batch Date: Wed, 01 May 2013 15:04:46 -0400 Message-ID: References: <20130501185504.GB2392@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1367435144 29187 80.91.229.3 (1 May 2013 19:05:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 May 2013 19:05:44 +0000 (UTC) Cc: 14325@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 01 21:05:41 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 1UXcLU-0003C0-2h for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 May 2013 21:05:40 +0200 Original-Received: from localhost ([::1]:48546 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXcLT-0004AK-Fu for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 May 2013 15:05:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56547) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXcLQ-00048x-5T for bug-gnu-emacs@gnu.org; Wed, 01 May 2013 15:05:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXcLO-0006Gi-79 for bug-gnu-emacs@gnu.org; Wed, 01 May 2013 15:05:36 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50077) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXcLM-0006GE-MG; Wed, 01 May 2013 15:05:32 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UXcLq-0006OZ-Bd; Wed, 01 May 2013 15:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris 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 19:06: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.136743512324519 (code B ref 14325); Wed, 01 May 2013 19:06:02 +0000 Original-Received: (at 14325) by debbugs.gnu.org; 1 May 2013 19:05:23 +0000 Original-Received: from localhost ([127.0.0.1]:54186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXcLA-0006NM-Gm for submit@debbugs.gnu.org; Wed, 01 May 2013 15:05:23 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:50586) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXcL7-0006NE-Gb for 14325@debbugs.gnu.org; Wed, 01 May 2013 15:05:18 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1UXcKc-00089b-Fi; Wed, 01 May 2013 15:04:46 -0400 X-Spook: IRA Al Jazeera Ruby Ridge CDC MILSATCOM Lon Horiuchi X-Ran: quE@j2zK?Nl[.&VWe90[]V_hg\7Q~WL~]=qhe*AE*_:efpNE*yZL#fHM0r?cw:FRBK/>MU X-Hue: cyan X-Attribution: GM In-Reply-To: <20130501185504.GB2392@acm.acm> (Alan Mackenzie's message of "Wed, 1 May 2013 18:55:04 +0000") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) 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:73879 Archived-At: Alan Mackenzie wrote: > Yes. Give me another hour or two to consider, then I'll probably commit > it. Sure, no rush! :) >> 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. But the _only_ place that uses c-standard-font-lock-fontify-region-function is c-font-lock-fontify-region, which you set as the value for font-lock-fontify-region-function, which is only called from font-lock. It doesn't matter whether or font-lock is loaded when cc-mode is loaded. It will be loaded before c-font-lock-fontify-region is called.