From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Achim Gratz Newsgroups: gmane.emacs.bugs Subject: bug#14325: 24.3; cc-mode does not initialize correctly w/ -batch Date: Tue, 30 Apr 2013 19:45:05 +0200 Message-ID: <878v3z29r2.fsf@Rainer.invalid> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1367343961 2590 80.91.229.3 (30 Apr 2013 17:46:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Apr 2013 17:46:01 +0000 (UTC) To: 14325@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 30 19:46:00 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 1UXEcq-0007ra-DI for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Apr 2013 19:46:00 +0200 Original-Received: from localhost ([::1]:56485 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXEcp-0003TZ-Kg for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Apr 2013 13:45:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40743) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXEcZ-0003In-Ff for bug-gnu-emacs@gnu.org; Tue, 30 Apr 2013 13:45:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXEcU-0003uh-OJ for bug-gnu-emacs@gnu.org; Tue, 30 Apr 2013 13:45:43 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48521) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXEcU-0003ud-KS for bug-gnu-emacs@gnu.org; Tue, 30 Apr 2013 13:45:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UXEcs-0000kT-Jo for bug-gnu-emacs@gnu.org; Tue, 30 Apr 2013 13:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Achim Gratz Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Apr 2013 17:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14325 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13673439422839 (code B ref -1); Tue, 30 Apr 2013 17:46:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Apr 2013 17:45:42 +0000 Original-Received: from localhost ([127.0.0.1]:52629 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXEcX-0000jj-H4 for submit@debbugs.gnu.org; Tue, 30 Apr 2013 13:45:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57494) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXEcU-0000jb-UV for submit@debbugs.gnu.org; Tue, 30 Apr 2013 13:45:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXEc5-0003r9-BG for submit@debbugs.gnu.org; Tue, 30 Apr 2013 13:45:14 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:37617) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXEc5-0003r4-88 for submit@debbugs.gnu.org; Tue, 30 Apr 2013 13:45:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXEc3-0002c7-Pq for bug-gnu-emacs@gnu.org; Tue, 30 Apr 2013 13:45:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXEc2-0003qY-6Z for bug-gnu-emacs@gnu.org; Tue, 30 Apr 2013 13:45:11 -0400 Original-Received: from mail-in-10.arcor-online.net ([151.189.21.50]:60414) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXEc1-0003pl-Rk for bug-gnu-emacs@gnu.org; Tue, 30 Apr 2013 13:45:10 -0400 Original-Received: from mail-in-03-z2.arcor-online.net (mail-in-03-z2.arcor-online.net [151.189.8.15]) by mx.arcor.de (Postfix) with ESMTP id 8A0582D6835 for ; Tue, 30 Apr 2013 19:45:07 +0200 (CEST) Original-Received: from mail-in-16.arcor-online.net (mail-in-16.arcor-online.net [151.189.21.56]) by mail-in-03-z2.arcor-online.net (Postfix) with ESMTP id 85AEA563052 for ; Tue, 30 Apr 2013 19:45:07 +0200 (CEST) X-Greylist: Passed host: 217.235.47.20 X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-16.arcor-online.net 5C650825E DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nexgo.de; s=mail-in; t=1367343907; bh=WMelH2qUZU7Su6rTa4FCQUvqYqB7VnhUNInrtHpSOcE=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding; b=V1s9/oIoqbNk4pl0KxuZeffbe2OKRG+AMYZpq/Skd4pdN+O3PkRC0bC8xisDOZ2U3 hQzPkDocFNx27RXrAbmqffxJbDMGhUmXnDErqQ9Na6Sd91heNpRBorPTOtkRgf3Mk/ warsu6nQDFdDQhWMYLDCxjB7Mp4k0StsxXOYMDig= Original-Received: from Rainer.invalid (pD9EB2F14.dip0.t-ipconnect.de [217.235.47.20]) (Authenticated sender: stromeko@arcor.de) by mail-in-16.arcor-online.net (Postfix) with ESMTPSA id 5C650825E for ; Tue, 30 Apr 2013 19:45:07 +0200 (CEST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:73853 Archived-At: Publishing from Worg (the community webpages for Org) runs in batch mode and uses cc-mode for syntax highlighting for some source code examples. While testing the publishing process with Emacs=C2=A024 I've come across an apparent regression in cc-mode: it tries to use the initial value for c-standard-font-lock-fontify-region-function, which happens to be nil to do a funcall and errors out since the function slot of that variable is void. I've worked around the error by adding this to the init file: --8<---------------cut here---------------start------------->8--- ;; to have things work correctly in batch-mode (require 'font-lock) (require 'cc-mode) (c-after-font-lock-init) --8<---------------cut here---------------end--------------->8--- I cannot tell if that works correctly in all cases or why this is necessary, but simply by switching to Emacs=C2=A023 it all works correctly without it. The publishing setup, if required for reproduction of the bug, is described in more detail here: http://thread.gmane.org/gmane.emacs.orgmode/71405/focus=3D71466 Regards, Achim. --=20 +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptations for KORG EX-800 and Poly-800MkII V0.9: http://Synth.Stromeko.net/Downloads.html#KorgSDada