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: Tue, 30 Apr 2013 20:51:46 -0400 Message-ID: <6m38u7plnh.fsf@fencepost.gnu.org> References: <878v3z29r2.fsf@Rainer.invalid> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1367369564 31993 80.91.229.3 (1 May 2013 00:52:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 May 2013 00:52:44 +0000 (UTC) Cc: 14325@debbugs.gnu.org To: Achim Gratz Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 01 02:52:43 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 1UXLHm-0005uo-TY for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 May 2013 02:52:43 +0200 Original-Received: from localhost ([::1]:41214 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXLHm-0007hy-Hs for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Apr 2013 20:52:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXLHj-0007hp-29 for bug-gnu-emacs@gnu.org; Tue, 30 Apr 2013 20:52:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXLHi-00076M-7B for bug-gnu-emacs@gnu.org; Tue, 30 Apr 2013 20:52:38 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXLHg-00075i-37; Tue, 30 Apr 2013 20:52:36 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UXLI5-0006ce-MY; Tue, 30 Apr 2013 20:53:01 -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 00:53:01 +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.136736953725318 (code B ref 14325); Wed, 01 May 2013 00:53:01 +0000 Original-Received: (at 14325) by debbugs.gnu.org; 1 May 2013 00:52:17 +0000 Original-Received: from localhost ([127.0.0.1]:52981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXLHM-0006aF-EP for submit@debbugs.gnu.org; Tue, 30 Apr 2013 20:52:16 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:48544) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXLHK-0006a0-0m for 14325@debbugs.gnu.org; Tue, 30 Apr 2013 20:52:14 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1UXLGs-0007hJ-S4; Tue, 30 Apr 2013 20:51:46 -0400 X-Spook: smuggle MDA hackers spies passwd keyhole Blowpipe X-Ran: (nH9,QA-h)[U'%aE<*ON}kz3cakw[1KP.obGGa3FPvL9}muJD&^isOK} X-Hue: red X-Attribution: GM In-Reply-To: <878v3z29r2.fsf@Rainer.invalid> (Achim Gratz's message of "Tue, 30 Apr 2013 19:45:05 +0200") 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:73859 Archived-At: 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.