From: Achim Gratz <Stromeko@nexgo.de>
To: 14325@debbugs.gnu.org
Subject: bug#14325: 24.3; cc-mode does not initialize correctly w/ -batch
Date: Tue, 30 Apr 2013 19:45:05 +0200 [thread overview]
Message-ID: <878v3z29r2.fsf@Rainer.invalid> (raw)
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 24 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 23 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=71466
Regards,
Achim.
--
+<[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
next reply other threads:[~2013-04-30 17:45 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.24908.1367343951.855.bug-gnu-emacs@gnu.org>
2013-04-30 17:45 ` Achim Gratz [this message]
2013-05-01 0:51 ` bug#14325: 24.3; cc-mode does not initialize correctly w/ -batch Glenn Morris
2013-05-01 3:37 ` Glenn Morris
2013-05-01 6:51 ` Achim Gratz
2013-05-01 12:53 ` Alan Mackenzie
2013-05-01 16:26 ` Achim Gratz
2013-05-01 17:23 ` Alan Mackenzie
2013-05-01 18:15 ` Achim Gratz
2013-05-02 13:04 ` Alan Mackenzie
2013-05-02 18:44 ` Achim Gratz
2013-05-05 14:17 ` Achim Gratz
2013-05-06 13:25 ` Alan Mackenzie
[not found] ` <klr388$b56$1@colin.muc.de>
2013-05-01 17:59 ` Glenn Morris
2013-05-01 18:55 ` Alan Mackenzie
2013-05-01 19:04 ` Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878v3z29r2.fsf@Rainer.invalid \
--to=stromeko@nexgo.de \
--cc=14325@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).