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: Achim Gratz <Stromeko <at> nexgo.de>
Cc: 14325 <at> debbugs.gnu.org
Subject: bug#14325: 24.3; cc-mode does not initialize correctly w/ -batch
Date: Tue, 30 Apr 2013 20:51:46 -0400
Minimal example:

./src/emacs -Q -batch --eval \
  '(progn (find-file "./src/emacs.c") (font-lock-fontify-buffer))'

Ie, a use of font-lock that does not first call font-lock-mode-hook.

This was already fixed once:
http://lists.gnu.org/archive/html/emacs-diffs/2012-02/msg00114.html

but reverted:
http://lists.gnu.org/archive/html/emacs-diffs/2012-02/msg00348.html

There was some kerfluffle about it:
http://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00380.html


To me, c-standard-font-lock-fontify-region-function seems pointless in
Emacs, where font-lock is preloaded since 22.1.




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.