GNU bug report logs - #14325
24.3; cc-mode does not initialize correctly w/ -batch

Previous Next

Packages: emacs, cc-mode;

Reported by: Achim Gratz <Stromeko <at> nexgo.de>

Date: Tue, 30 Apr 2013 17:46:02 UTC

Severity: normal

Found in version 24.3

Fixed in version 24.4

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Glenn Morris <rgm <at> gnu.org>
To: Alan Mackenzie <acm <at> muc.de>
Cc: 14325 <at> debbugs.gnu.org
Subject: bug#14325: 24.3; cc-mode does not initialize correctly w/ -batch
Date: Wed, 01 May 2013 15:04:46 -0400
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.




This bug report was last modified 12 years and 13 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.