From unknown Sat Jun 14 18:43:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14325: 24.3; cc-mode does not initialize correctly w/ -batch 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: To: 14325@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13673439422839 (code B ref -1); Tue, 30 Apr 2013 17:46:02 +0000 Received: (at submit) by debbugs.gnu.org; 30 Apr 2013 17:45:42 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-99.2 required=5.0 tests=BAYES_50, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID,USER_IN_WHITELIST autolearn=disabled version=3.3.2 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 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 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 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 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) 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= 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) From: Achim Gratz Date: Tue, 30 Apr 2013 19:45:05 +0200 Message-ID: <878v3z29r2.fsf@Rainer.invalid> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Received-From: 208.118.235.17 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) 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 From unknown Sat Jun 14 18:43:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14325: 24.3; cc-mode does not initialize correctly w/ -batch 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: To: Achim Gratz Cc: 14325@debbugs.gnu.org Received: via spool by 14325-submit@debbugs.gnu.org id=B14325.136736953725318 (code B ref 14325); Wed, 01 May 2013 00:53:01 +0000 Received: (at 14325) by debbugs.gnu.org; 1 May 2013 00:52:17 +0000 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 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 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 From: Glenn Morris References: <878v3z29r2.fsf@Rainer.invalid> 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 Date: Tue, 30 Apr 2013 20:51:46 -0400 In-Reply-To: <878v3z29r2.fsf@Rainer.invalid> (Achim Gratz's message of "Tue, 30 Apr 2013 19:45:05 +0200") Message-ID: <6m38u7plnh.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -7.5 (-------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -9.4 (---------) 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. From unknown Sat Jun 14 18:43:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14325: 24.3; cc-mode does not initialize correctly w/ -batch 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 03:38:02 +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: To: Achim Gratz Cc: 14325@debbugs.gnu.org Received: via spool by 14325-submit@debbugs.gnu.org id=B14325.136737946823034 (code B ref 14325); Wed, 01 May 2013 03:38:02 +0000 Received: (at 14325) by debbugs.gnu.org; 1 May 2013 03:37:48 +0000 Received: from localhost ([127.0.0.1]:53101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXNrX-0005zM-5N for submit@debbugs.gnu.org; Tue, 30 Apr 2013 23:37:47 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:50556) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXNrU-0005z6-CI for 14325@debbugs.gnu.org; Tue, 30 Apr 2013 23:37:45 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1UXNr3-0003Gt-0m; Tue, 30 Apr 2013 23:37:17 -0400 From: Glenn Morris References: <878v3z29r2.fsf@Rainer.invalid> <6m38u7plnh.fsf@fencepost.gnu.org> X-Spook: bce TWA Echelon Security Council high security encryption X-Ran: S]ZP.[&ppgfUPlM(]aZ*IooO!+V}Qen~ScrvSjG&Q0n/x@c5!Df0#^5qrn0$sqbm!WN#bz X-Hue: red X-Attribution: GM Date: Tue, 30 Apr 2013 23:37:16 -0400 In-Reply-To: <6m38u7plnh.fsf@fencepost.gnu.org> (Glenn Morris's message of "Tue, 30 Apr 2013 20:51:46 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -9.4 (---------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -9.4 (---------) Glenn Morris wrote: > To me, c-standard-font-lock-fontify-region-function seems pointless in > Emacs, where font-lock is preloaded since 22.1. Even it is wasn't preloaded, I still don't see anything wrong with the following. cc-mode only changes the buffer-local value. *** lisp/progmodes/cc-mode.el 2013-04-15 16:10:24 +0000 --- lisp/progmodes/cc-mode.el 2013-05-01 03:34:59 +0000 *************** *** 1160,1168 **** ;; `c-set-fl-decl-start' for the detailed functionality. (cons (c-set-fl-decl-start beg) end)) - (defvar c-standard-font-lock-fontify-region-function nil - "Standard value of `font-lock-fontify-region-function'") - (defun c-font-lock-fontify-region (beg end &optional verbose) ;; Effectively advice around `font-lock-fontify-region' which extends the ;; region (BEG END), for example, to avoid context fontification chopping --- 1160,1165 ---- *************** *** 1187,1193 **** (setq new-region (funcall fn new-beg new-end)) (setq new-beg (car new-region) new-end (cdr new-region))) c-before-context-fontification-functions)))) ! (funcall c-standard-font-lock-fontify-region-function new-beg new-end verbose))) (defun c-after-font-lock-init () --- 1184,1190 ---- (setq new-region (funcall fn new-beg new-end)) (setq new-beg (car new-region) new-end (cdr new-region))) c-before-context-fontification-functions)))) ! (funcall (default-value 'font-lock-fontify-region-function) new-beg new-end verbose))) (defun c-after-font-lock-init () *************** *** 1195,1203 **** ;; function will get executed before the font-lock one. Amongst other ;; things. (remove-hook 'after-change-functions 'c-after-change t) ! (add-hook 'after-change-functions 'c-after-change nil t) ! (setq c-standard-font-lock-fontify-region-function ! (default-value 'font-lock-fontify-region-function))) (defun c-font-lock-init () "Set up the font-lock variables for using the font-lock support in CC Mode. --- 1192,1198 ---- ;; function will get executed before the font-lock one. Amongst other ;; things. (remove-hook 'after-change-functions 'c-after-change t) ! (add-hook 'after-change-functions 'c-after-change nil t)) (defun c-font-lock-init () "Set up the font-lock variables for using the font-lock support in CC Mode. From unknown Sat Jun 14 18:43:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14325: 24.3; cc-mode does not initialize correctly w/ -batch In-Reply-To: <878v3z29r2.fsf@Rainer.invalid> Resent-From: Achim Gratz 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 06:53:02 +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: To: 14325@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.136739116631628 (code B ref -1); Wed, 01 May 2013 06:53:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 May 2013 06:52:46 +0000 Received: from localhost ([127.0.0.1]:53213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXQuD-0008Dy-1l for submit@debbugs.gnu.org; Wed, 01 May 2013 02:52:45 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55786) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXQu9-0008Dl-7b for submit@debbugs.gnu.org; Wed, 01 May 2013 02:52:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXQtg-00012U-QD for submit@debbugs.gnu.org; Wed, 01 May 2013 02:52:13 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-102.6 required=5.0 tests=BAYES_40, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD,USER_IN_WHITELIST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:41565) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXQtg-00012Q-ND for submit@debbugs.gnu.org; Wed, 01 May 2013 02:52:12 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXQtf-0001Oz-Ls for bug-gnu-emacs@gnu.org; Wed, 01 May 2013 02:52:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXQte-000123-37 for bug-gnu-emacs@gnu.org; Wed, 01 May 2013 02:52:11 -0400 Received: from plane.gmane.org ([80.91.229.3]:53244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXQtd-00011j-RV for bug-gnu-emacs@gnu.org; Wed, 01 May 2013 02:52:09 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UXQta-0007cW-Up for bug-gnu-emacs@gnu.org; Wed, 01 May 2013 08:52:06 +0200 Received: from pd9eb2d1e.dip0.t-ipconnect.de ([217.235.45.30]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 May 2013 08:52:06 +0200 Received: from Stromeko by pd9eb2d1e.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 May 2013 08:52:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ From: Achim Gratz Date: Wed, 01 May 2013 08:51:56 +0200 Organization: Linux Private Site Lines: 29 Message-ID: <87mwsfnqer.fsf@Rainer.invalid> References: <878v3z29r2.fsf@Rainer.invalid> <6m38u7plnh.fsf@fencepost.gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pd9eb2d1e.dip0.t-ipconnect.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:284KwYmRhutvKs0+kX68q4JedFM= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -5.5 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Glenn Morris writes: > 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. Why is that hook skipped? And what would be the correct workaround? > 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 I see… maybe a consensus might be reached this time. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf rackAttack: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds From unknown Sat Jun 14 18:43:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14325: 24.3; cc-mode does not initialize correctly w/ -batch In-Reply-To: <878v3z29r2.fsf@Rainer.invalid> Resent-From: Alan Mackenzie 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 13:01:02 +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: To: gnu-emacs-bug@moderators.isc.org Received: via spool by submit@debbugs.gnu.org id=B.136741325226737 (code B ref -1); Wed, 01 May 2013 13:01:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 May 2013 13:00:52 +0000 Received: from localhost ([127.0.0.1]:53553 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXWeR-0006xB-8A for submit@debbugs.gnu.org; Wed, 01 May 2013 09:00:51 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45500) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXWeO-0006ws-7G for submit@debbugs.gnu.org; Wed, 01 May 2013 09:00:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXWdt-0002gE-IO for submit@debbugs.gnu.org; Wed, 01 May 2013 09:00:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-104.2 required=5.0 tests=BAYES_50, RCVD_IN_DNSWL_HI, USER_IN_WHITELIST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:38236) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXWdt-0002gA-Fd for submit@debbugs.gnu.org; Wed, 01 May 2013 09:00:17 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXWdq-0002Tx-J8 for bug-gnu-emacs@gnu.org; Wed, 01 May 2013 09:00:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXWdo-0002f3-E9 for bug-gnu-emacs@gnu.org; Wed, 01 May 2013 09:00:14 -0400 Received: from xvm-90.mit.edu ([18.181.2.90]:43475 helo=mod-relay.xvm.mit.edu) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXWdo-0002ek-BD for bug-gnu-emacs@gnu.org; Wed, 01 May 2013 09:00:12 -0400 Received: by mod-relay.xvm.mit.edu (Postfix) id 13C2723FF1; Wed, 1 May 2013 06:40:19 -0400 (EDT) Delivered-To: gnu-emacs-bug@moderators.isc.org Received: from mail.muc.de (colin.muc.de [193.149.48.1]) by mod-relay.xvm.mit.edu (Postfix) with ESMTP id B353B23FE6 for ; Wed, 1 May 2013 06:40:18 -0400 (EDT) Received: (qmail 11432 invoked by uid 8); 1 May 2013 12:53:28 -0000 Path: not-for-mail From: Alan Mackenzie Newsgroups: gnu.emacs.bug Date: Wed, 1 May 2013 12:53:28 +0000 (UTC) Organization: muc.de e.V. Lines: 51 Message-ID: References: NNTP-Posting-Host: news.muc.de X-Trace: colin.muc.de 1367412808 11430 193.149.48.2 (1 May 2013 12:53:28 GMT) X-Complaints-To: news-admin@muc.de NNTP-Posting-Date: Wed, 1 May 2013 12:53:28 +0000 (UTC) User-Agent: tin/1.9.6-20101126 ("Burnside") (UNIX) (FreeBSD/8.4-PRERELEASE (amd64)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) Achim Gratz wrote: > 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. Yes, the c-after-font-lock-init call will initialise everything properly, though it's more a workaround than a solution. Font Lock Mode is a minor mode, and part of its initialisation is calling font-lock-mode-hook. (font-lock-mode-hook is here c-after-font-lock-init.) If you run font-lock-fontify-buffer (etc.) without fully initialising Font Lock Mode, you're liable to run into bugs. If that were all there were to it, I'd have nothing more to say, but sadly it's not so simple. Font Lock Mode is, by default disabled in batch mode. If you enable it, this also enables jit-lock-mode (which is surely wrong), which prevents any fontification actually taking place, since the buffer is never displayed on the screen to trigger the fontification. I think the following sequence of commands would fontify the buffer properly in batch mode: (c-mode) (setq font-lock-support-mode nil) ; disable jit-lock-mode (font-lock-mode 1) . However, you'll probably prefer to carry on with using Font Lock Mode uninitialised. ;-) I think Glenn's patch achieves this painlessly. > Regards, > Achim. -- Alan Mackenzie (Nuremberg, Germany). From unknown Sat Jun 14 18:43:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14325: 24.3; cc-mode does not initialize correctly w/ -batch In-Reply-To: <878v3z29r2.fsf@Rainer.invalid> Resent-From: Achim Gratz 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 16:28:02 +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: To: 14325@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13674256403005 (code B ref -1); Wed, 01 May 2013 16:28:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 May 2013 16:27:20 +0000 Received: from localhost ([127.0.0.1]:54103 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXZsF-0000mP-It for submit@debbugs.gnu.org; Wed, 01 May 2013 12:27:20 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35271) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXZsB-0000mB-EF for submit@debbugs.gnu.org; Wed, 01 May 2013 12:27:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXZrg-0005k0-DZ for submit@debbugs.gnu.org; Wed, 01 May 2013 12:26:45 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-101.8 required=5.0 tests=BAYES_50, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD,USER_IN_WHITELIST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:51659) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXZrg-0005jw-Av for submit@debbugs.gnu.org; Wed, 01 May 2013 12:26:44 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXZre-0003Vz-Oy for bug-gnu-emacs@gnu.org; Wed, 01 May 2013 12:26:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXZrd-0005jU-9Y for bug-gnu-emacs@gnu.org; Wed, 01 May 2013 12:26:42 -0400 Received: from plane.gmane.org ([80.91.229.3]:46452) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXZrd-0005jI-2X for bug-gnu-emacs@gnu.org; Wed, 01 May 2013 12:26:41 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UXZra-0003ma-GF for bug-gnu-emacs@gnu.org; Wed, 01 May 2013 18:26:38 +0200 Received: from pd9eb25d4.dip0.t-ipconnect.de ([217.235.37.212]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 May 2013 18:26:38 +0200 Received: from Stromeko by pd9eb25d4.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 May 2013 18:26:38 +0200 X-Injected-Via-Gmane: http://gmane.org/ From: Achim Gratz Date: Wed, 01 May 2013 18:26:25 +0200 Organization: Linux Private Site Lines: 55 Message-ID: <87ip32oedq.fsf@Rainer.invalid> References: Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pd9eb25d4.dip0.t-ipconnect.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:/5FxTfkhmFlkbm/xK1G4ZP/k09M= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Alan Mackenzie writes: > Yes, the c-after-font-lock-init call will initialise everything properly, > though it's more a workaround than a solution. So what would be the solution, then? > Font Lock Mode is a minor mode, and part of its initialisation is calling > font-lock-mode-hook. (font-lock-mode-hook is here c-after-font-lock-init.) > If you run font-lock-fontify-buffer (etc.) without fully initialising Font > Lock Mode, you're liable to run into bugs. If that were all there were > to it, I'd have nothing more to say, but sadly it's not so simple. Well, Org requires font-lock, it switches font-lock off and on when it changes font-lock settings and it uses it for fontification with whatever major mode the content wants to have. If there is a code-path that enters cc-mode in uninitialized state, then shouldn't cc-mode check for nil instead of crashing Emacs by blindly assuming it can funcall the contents of that variable? > Font Lock Mode is, by default disabled in batch mode. If you enable it, > this also enables jit-lock-mode (which is surely wrong), which prevents > any fontification actually taking place, since the buffer is never > displayed on the screen to trigger the fontification. Since Org can use the results of the fontification, some of it must happen anyway? Besides, even if I stop jit-lock-mode from being used (by adding it to font-lock-inhibit-thing-lock), cc-mode still throws an error. > I think the following sequence of commands would fontify the buffer > properly in batch mode: > (c-mode) > (setq font-lock-support-mode nil) ; disable jit-lock-mode > (font-lock-mode 1) I've tried to put these (without switching to c-mode since selecting the mode is done elsewhere) into various places and still get the same error from cc-mode. > However, you'll probably prefer to carry on with using Font Lock Mode > uninitialised. ;-) I think Glenn's patch achieves this painlessly. I'd prefer if fontlock-fontify-* would work in batch mode without workarounds. I'll have no problem sticking (when noninteractive ...) into the intialization or Org itself if that's the ticket. I still don't have a clue where that should be done. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf Q+, Q and microQ: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds From unknown Sat Jun 14 18:43:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14325: 24.3; cc-mode does not initialize correctly w/ -batch In-Reply-To: <878v3z29r2.fsf@Rainer.invalid> Resent-From: Alan Mackenzie 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 17:25:02 +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: To: gnu-emacs-bug@moderators.isc.org Received: via spool by submit@debbugs.gnu.org id=B.136742907311272 (code B ref -1); Wed, 01 May 2013 17:25:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 May 2013 17:24:33 +0000 Received: from localhost ([127.0.0.1]:54122 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXalc-0002vj-E6 for submit@debbugs.gnu.org; Wed, 01 May 2013 13:24:32 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49044) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXalY-0002vY-Jr for submit@debbugs.gnu.org; Wed, 01 May 2013 13:24:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXal3-00074C-97 for submit@debbugs.gnu.org; Wed, 01 May 2013 13:23:58 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-104.2 required=5.0 tests=BAYES_50, RCVD_IN_DNSWL_HI, USER_IN_WHITELIST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:53135) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXal3-000745-5u for submit@debbugs.gnu.org; Wed, 01 May 2013 13:23:57 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXal1-0004JI-7p for bug-gnu-emacs@gnu.org; Wed, 01 May 2013 13:23:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXakz-000739-Q6 for bug-gnu-emacs@gnu.org; Wed, 01 May 2013 13:23:55 -0400 Received: from moderators.individual.net ([130.133.4.7]:58526) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXakz-000734-JL for bug-gnu-emacs@gnu.org; Wed, 01 May 2013 13:23:53 -0400 Received: from colin.muc.de ([193.149.48.1] helo=mail.muc.de) by moderators.individual.net (Exim 4.80.1) for gnu-emacs-bug@moderators.isc.org with esmtp (envelope-from ) id <1UXakz-002nHK-0G>; Wed, 01 May 2013 19:23:53 +0200 Received: (qmail 29726 invoked by uid 8); 1 May 2013 17:23:46 -0000 Path: not-for-mail From: Alan Mackenzie Newsgroups: gnu.emacs.bug Date: Wed, 1 May 2013 17:23:46 +0000 (UTC) Organization: muc.de e.V. Lines: 67 Message-ID: References: NNTP-Posting-Host: news.muc.de X-Trace: colin.muc.de 1367429026 29724 193.149.48.2 (1 May 2013 17:23:46 GMT) X-Complaints-To: news-admin@muc.de NNTP-Posting-Date: Wed, 1 May 2013 17:23:46 +0000 (UTC) User-Agent: tin/1.9.6-20101126 ("Burnside") (UNIX) (FreeBSD/8.4-PRERELEASE (amd64)) 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-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) Achim Gratz wrote: > Alan Mackenzie writes: >> Yes, the c-after-font-lock-init call will initialise everything properly, >> though it's more a workaround than a solution. > So what would be the solution, then? >> Font Lock Mode is a minor mode, and part of its initialisation is calling >> font-lock-mode-hook. (font-lock-mode-hook is here c-after-font-lock-init.) >> If you run font-lock-fontify-buffer (etc.) without fully initialising Font >> Lock Mode, you're liable to run into bugs. If that were all there were >> to it, I'd have nothing more to say, but sadly it's not so simple. > Well, Org requires font-lock, it switches font-lock off and on when it > changes font-lock settings and it uses it for fontification with > whatever major mode the content wants to have. OK. Could you possibly give the exact sequence of Font Lock and CC Mode calls which lead to the error? > If there is a code-path that enters cc-mode in uninitialized state, then > shouldn't cc-mode check for nil instead of crashing Emacs by blindly > assuming it can funcall the contents of that variable? The variable is (or should be) initialised by font-lock-mode-hook calling c-after-font-lock-init. This should happen when font-lock-mode is called. The question is why the switching on of Font Lock Mode here fails to do this. >> Font Lock Mode is, by default disabled in batch mode. If you enable it, >> this also enables jit-lock-mode (which is surely wrong), which prevents >> any fontification actually taking place, since the buffer is never >> displayed on the screen to trigger the fontification. > Since Org can use the results of the fontification, some of it must > happen anyway? Besides, even if I stop jit-lock-mode from being > used (by adding it to font-lock-inhibit-thing-lock), cc-mode still > throws an error. >> I think the following sequence of commands would fontify the buffer >> properly in batch mode: >> (c-mode) >> (setq font-lock-support-mode nil) ; disable jit-lock-mode >> (font-lock-mode 1) > I've tried to put these (without switching to c-mode since selecting the > mode is done elsewhere) into various places and still get the same error > from cc-mode. OK. >> However, you'll probably prefer to carry on with using Font Lock Mode >> uninitialised. ;-) I think Glenn's patch achieves this painlessly. > I'd prefer if fontlock-fontify-* would work in batch mode without > workarounds. I'll have no problem sticking (when noninteractive ...) > into the intialization or Org itself if that's the ticket. I still > don't have a clue where that should be done. I'd like to track this down, too. > Regards, > Achim. -- Alan Mackenzie (Nuremberg, Germany). From unknown Sat Jun 14 18:43:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14325: 24.3; cc-mode does not initialize correctly w/ -batch 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 18:01:02 +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: To: Alan Mackenzie Cc: 14325@debbugs.gnu.org Received: via spool by 14325-submit@debbugs.gnu.org id=B14325.136743122316100 (code B ref 14325); Wed, 01 May 2013 18:01:02 +0000 Received: (at 14325) by debbugs.gnu.org; 1 May 2013 18:00:23 +0000 Received: from localhost ([127.0.0.1]:54139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXbKI-0004Bc-Fl for submit@debbugs.gnu.org; Wed, 01 May 2013 14:00:22 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:49293) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXbKG-0004BT-Pb for 14325@debbugs.gnu.org; Wed, 01 May 2013 14:00:21 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1UXbJl-0003w7-Pc; Wed, 01 May 2013 13:59:49 -0400 From: Glenn Morris References: X-Spook: [Hello to all my friends and fans in domestic X-Ran: CS20Z:t03a%W@ITdYd7mA({.o.WPB;xm9>HA3~_?|D3MnKh;lQd|:(+Js^cZs;?^.@#j<7 X-Hue: blue X-Attribution: GM Date: Wed, 01 May 2013 13:59:49 -0400 In-Reply-To: (Alan Mackenzie's message of "Wed, 1 May 2013 12:53:28 +0000 (UTC)") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -8.1 (--------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -9.5 (---------) Alan Mackenzie wrote: > However, you'll probably prefer to carry on with using Font Lock Mode > uninitialised. ;-) I think Glenn's patch achieves this painlessly. That patch seems like TRT to me anyway. What problem is c-standard-font-lock-fontify-region-function supposed to solve? Someone changing the default value of font-lock-fontify-region-function in between font-lock-mode-hook being run and font-lock-fontify-region being called? That shouldn't happen, only the buffer-local value should ever be changed. It's not a user-variable. (I actually think you could safely just call font-lock-default-fontify-region .) From unknown Sat Jun 14 18:43:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14325: 24.3; cc-mode does not initialize correctly w/ -batch In-Reply-To: <878v3z29r2.fsf@Rainer.invalid> Resent-From: Achim Gratz 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 18:16: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: To: 14325@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.136743215418207 (code B ref -1); Wed, 01 May 2013 18:16:01 +0000 Received: (at submit) by debbugs.gnu.org; 1 May 2013 18:15:54 +0000 Received: from localhost ([127.0.0.1]:54150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXbZJ-0004jb-Gq for submit@debbugs.gnu.org; Wed, 01 May 2013 14:15:54 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33051) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXbZG-0004jT-Tn for submit@debbugs.gnu.org; Wed, 01 May 2013 14:15:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXbYl-0007K1-EY for submit@debbugs.gnu.org; Wed, 01 May 2013 14:15:20 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-101.8 required=5.0 tests=BAYES_50, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD,USER_IN_WHITELIST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:53727) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXbYl-0007Jx-B3 for submit@debbugs.gnu.org; Wed, 01 May 2013 14:15:19 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44412) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXbYk-000316-2u for bug-gnu-emacs@gnu.org; Wed, 01 May 2013 14:15:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXbYi-0007JY-Q1 for bug-gnu-emacs@gnu.org; Wed, 01 May 2013 14:15:18 -0400 Received: from plane.gmane.org ([80.91.229.3]:47512) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXbYi-0007JO-JQ for bug-gnu-emacs@gnu.org; Wed, 01 May 2013 14:15:16 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UXbYh-00079Q-Da for bug-gnu-emacs@gnu.org; Wed, 01 May 2013 20:15:15 +0200 Received: from pd9eb4779.dip0.t-ipconnect.de ([217.235.71.121]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 May 2013 20:15:15 +0200 Received: from Stromeko by pd9eb4779.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 May 2013 20:15:15 +0200 X-Injected-Via-Gmane: http://gmane.org/ From: Achim Gratz Date: Wed, 01 May 2013 20:15:03 +0200 Organization: Linux Private Site Lines: 21 Message-ID: <8761z2o9co.fsf@Rainer.invalid> References: Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pd9eb4779.dip0.t-ipconnect.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:LRvn0jg/xP0lRvNOgBv+px6SRT0= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Alan Mackenzie writes: > OK. Could you possibly give the exact sequence of Font Lock and CC Mode > calls which lead to the error? If you can tell me how to obtain a trace in batch mode? Or if you prefer to do this yourself, here's the call that makes the problem: emacs -batch -Q -l worgtest-local-init.el -l worgtest-init.el \ org-hacks.org -f toggle-debug-on-error -f org-html-export-to-html You need a local clone of Worg (or at least these three files), a recent Org mode and deactivate the workaround in worgtest-init.el of course. 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 From unknown Sat Jun 14 18:43:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14325: 24.3; cc-mode does not initialize correctly w/ -batch Resent-From: Alan Mackenzie 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 18:56:02 +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: To: Glenn Morris Cc: 14325@debbugs.gnu.org Received: via spool by 14325-submit@debbugs.gnu.org id=B14325.136743455523320 (code B ref 14325); Wed, 01 May 2013 18:56:02 +0000 Received: (at 14325) by debbugs.gnu.org; 1 May 2013 18:55:55 +0000 Received: from localhost ([127.0.0.1]:54180 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXcC3-000644-CW for submit@debbugs.gnu.org; Wed, 01 May 2013 14:55:55 -0400 Received: from colin.muc.de ([193.149.48.1]:57565 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXcBz-00063r-NP for 14325@debbugs.gnu.org; Wed, 01 May 2013 14:55:53 -0400 Received: (qmail 36529 invoked by uid 3782); 1 May 2013 18:55:19 -0000 Received: from acm.muc.de (p5492CF92.dip0.t-ipconnect.de [84.146.207.146]) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 01 May 2013 20:55:17 +0200 Received: (qmail 5238 invoked by uid 1000); 1 May 2013 18:55:04 -0000 Date: Wed, 1 May 2013 18:55:04 +0000 Message-ID: <20130501185504.GB2392@acm.acm> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -3.3 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.2 (-----) Hi, Glenn. On Wed, May 01, 2013 at 01:59:49PM -0400, Glenn Morris wrote: > Alan Mackenzie wrote: > > However, you'll probably prefer to carry on with using Font Lock Mode > > uninitialised. ;-) I think Glenn's patch achieves this painlessly. > That patch seems like TRT to me anyway. Yes. Give me another hour or two to consider, then I'll probably commit it. > 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. [I really don't want two alternative bits of code for this level of indirectness.] > Someone changing the default value of > font-lock-fontify-region-function in between font-lock-mode-hook being > run and font-lock-fontify-region being called? That shouldn't happen, > only the buffer-local value should ever be changed. It's not a > user-variable. Anybody changing the default value of font-l-f-r-function had better know what she's doing. ;-) > (I actually think you could safely just call > font-lock-default-fontify-region .) But somebody, somewhere, sometime _might_ change the default value of font-lock-fontify-region-function. Unlikely, but it's possible. -- Alan Mackenzie (Nuremberg, Germany). From unknown Sat Jun 14 18:43:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14325: 24.3; cc-mode does not initialize correctly w/ -batch 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 19:06:02 +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: To: Alan Mackenzie Cc: 14325@debbugs.gnu.org Received: via spool by 14325-submit@debbugs.gnu.org id=B14325.136743512324519 (code B ref 14325); Wed, 01 May 2013 19:06:02 +0000 Received: (at 14325) by debbugs.gnu.org; 1 May 2013 19:05:23 +0000 Received: from localhost ([127.0.0.1]:54186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXcLA-0006NM-Gm for submit@debbugs.gnu.org; Wed, 01 May 2013 15:05:23 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:50586) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXcL7-0006NE-Gb for 14325@debbugs.gnu.org; Wed, 01 May 2013 15:05:18 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1UXcKc-00089b-Fi; Wed, 01 May 2013 15:04:46 -0400 From: Glenn Morris References: <20130501185504.GB2392@acm.acm> X-Spook: IRA Al Jazeera Ruby Ridge CDC MILSATCOM Lon Horiuchi X-Ran: quE@j2zK?Nl[.&VWe90[]V_hg\7Q~WL~]=qhe*AE*_:efpNE*yZL#fHM0r?cw:FRBK/>MU X-Hue: cyan X-Attribution: GM Date: Wed, 01 May 2013 15:04:46 -0400 In-Reply-To: <20130501185504.GB2392@acm.acm> (Alan Mackenzie's message of "Wed, 1 May 2013 18:55:04 +0000") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -7.6 (-------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -9.5 (---------) 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. From unknown Sat Jun 14 18:43:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14325: 24.3; cc-mode does not initialize correctly w/ -batch Resent-From: Alan Mackenzie Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Thu, 02 May 2013 13:06:02 +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: To: Achim Gratz Cc: 14325@debbugs.gnu.org Received: via spool by 14325-submit@debbugs.gnu.org id=B14325.136749992511877 (code B ref 14325); Thu, 02 May 2013 13:06:02 +0000 Received: (at 14325) by debbugs.gnu.org; 2 May 2013 13:05:25 +0000 Received: from localhost ([127.0.0.1]:54763 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXtCO-00035W-Hr for submit@debbugs.gnu.org; Thu, 02 May 2013 09:05:25 -0400 Received: from colin.muc.de ([193.149.48.1]:12609 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXtCL-00035I-2k for 14325@debbugs.gnu.org; Thu, 02 May 2013 09:05:22 -0400 Received: (qmail 88400 invoked by uid 3782); 2 May 2013 13:04:45 -0000 Received: from acm.muc.de (pD95181B0.dip0.t-ipconnect.de [217.81.129.176]) by colin.muc.de (tmda-ofmipd) with ESMTP; Thu, 02 May 2013 15:04:42 +0200 Received: (qmail 4714 invoked by uid 1000); 2 May 2013 13:04:29 -0000 Date: Thu, 2 May 2013 13:04:29 +0000 Message-ID: <20130502130429.GA3300@acm.acm> References: <8761z2o9co.fsf@Rainer.invalid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8761z2o9co.fsf@Rainer.invalid> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -3.7 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.1 (-----) Hi, Achim. On Wed, May 01, 2013 at 08:15:03PM +0200, Achim Gratz wrote: > Alan Mackenzie writes: > > OK. Could you possibly give the exact sequence of Font Lock and CC Mode > > calls which lead to the error? > If you can tell me how to obtain a trace in batch mode? :-). I thought you knew the software. Never mind. I've installed Glenn's patch into the Emacs trunk. Could you please try it out, and see if it solves your problem. > Regards, > Achim. -- Alan Mackenzie (Nuremberg, Germany). From unknown Sat Jun 14 18:43:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14325: 24.3; cc-mode does not initialize correctly w/ -batch In-Reply-To: <878v3z29r2.fsf@Rainer.invalid> Resent-From: Achim Gratz Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Thu, 02 May 2013 18:46: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: To: 14325@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13675203195690 (code B ref -1); Thu, 02 May 2013 18:46:01 +0000 Received: (at submit) by debbugs.gnu.org; 2 May 2013 18:45:19 +0000 Received: from localhost ([127.0.0.1]:55596 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXyVK-0001Ti-9w for submit@debbugs.gnu.org; Thu, 02 May 2013 14:45:18 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35399) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXyVF-0001TR-Jw for submit@debbugs.gnu.org; Thu, 02 May 2013 14:45:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXyUe-0008OH-EP for submit@debbugs.gnu.org; Thu, 02 May 2013 14:44:37 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-101.7 required=5.0 tests=BAYES_50, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD,USER_IN_WHITELIST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:58704) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXyUe-0008OD-Bp for submit@debbugs.gnu.org; Thu, 02 May 2013 14:44:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXyUd-0001Lh-7T for bug-gnu-emacs@gnu.org; Thu, 02 May 2013 14:44:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXyUb-0008Nm-QY for bug-gnu-emacs@gnu.org; Thu, 02 May 2013 14:44:35 -0400 Received: from plane.gmane.org ([80.91.229.3]:36331) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXyUb-0008NX-Ju for bug-gnu-emacs@gnu.org; Thu, 02 May 2013 14:44:33 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UXyUY-0004jD-IZ for bug-gnu-emacs@gnu.org; Thu, 02 May 2013 20:44:30 +0200 Received: from pd9eb3c2a.dip0.t-ipconnect.de ([217.235.60.42]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 May 2013 20:44:30 +0200 Received: from Stromeko by pd9eb3c2a.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 May 2013 20:44:30 +0200 X-Injected-Via-Gmane: http://gmane.org/ From: Achim Gratz Date: Thu, 02 May 2013 20:44:20 +0200 Organization: Linux Private Site Lines: 22 Message-ID: <87hail9q7v.fsf@Rainer.invalid> References: <8761z2o9co.fsf@Rainer.invalid> <20130502130429.GA3300__33694.6791074753$1367499959$gmane$org@acm.acm> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pd9eb3c2a.dip0.t-ipconnect.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:4D6AZc9g0kCJ8yRJ1B40etcM0No= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Alan Mackenzie writes: >> If you can tell me how to obtain a trace in batch mode? > > :-). I thought you knew the software. Never mind. I do, but I don't know what are the differences in noninteractive mode. Stepping through the code in interactive mode is possible, but I wouldn't be able to tell if it goes through the same motions. > I've installed Glenn's patch into the Emacs trunk. Could you please try > it out, and see if it solves your problem. I'll give it a whirl over the weekend (I hope). Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Waldorf MIDI Implementation & additional documentation: http://Synth.Stromeko.net/Downloads.html#WaldorfDocs From unknown Sat Jun 14 18:43:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14325: 24.3; cc-mode does not initialize correctly w/ -batch In-Reply-To: <878v3z29r2.fsf@Rainer.invalid> Resent-From: Achim Gratz Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sun, 05 May 2013 14:20:04 +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: To: 14325@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.136776354824203 (code B ref -1); Sun, 05 May 2013 14:20:04 +0000 Received: (at submit) by debbugs.gnu.org; 5 May 2013 14:19:08 +0000 Received: from localhost ([127.0.0.1]:58910 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UYzmN-0006IG-E9 for submit@debbugs.gnu.org; Sun, 05 May 2013 10:19:08 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38859) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UYzmJ-0006Hv-J4 for submit@debbugs.gnu.org; Sun, 05 May 2013 10:19:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UYzlS-0003pn-Bo for submit@debbugs.gnu.org; Sun, 05 May 2013 10:18:11 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-101.2 required=5.0 tests=BAYES_20, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD,USER_IN_WHITELIST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:45996) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYzlS-0003pj-8Z for submit@debbugs.gnu.org; Sun, 05 May 2013 10:18:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50213) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYzlQ-0000sY-8r for bug-gnu-emacs@gnu.org; Sun, 05 May 2013 10:18:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UYzlP-0003ok-4o for bug-gnu-emacs@gnu.org; Sun, 05 May 2013 10:18:08 -0400 Received: from plane.gmane.org ([80.91.229.3]:60270) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYzlO-0003nQ-Up for bug-gnu-emacs@gnu.org; Sun, 05 May 2013 10:18:07 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UYzlM-000118-6t for bug-gnu-emacs@gnu.org; Sun, 05 May 2013 16:18:04 +0200 Received: from pd9eb0670.dip0.t-ipconnect.de ([217.235.6.112]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 05 May 2013 16:18:04 +0200 Received: from Stromeko by pd9eb0670.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 05 May 2013 16:18:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ From: Achim Gratz Date: Sun, 05 May 2013 16:17:53 +0200 Organization: Linux Private Site Lines: 15 Message-ID: <8738u1bje6.fsf@Rainer.invalid> References: <8761z2o9co.fsf@Rainer.invalid> <20130502130429.GA3300__33694.6791074753$1367499959$gmane$org@acm.acm> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pd9eb0670.dip0.t-ipconnect.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:iKhrX/uyTQ3ghVfoQ1OTSI94jQA= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Alan Mackenzie writes: > I've installed Glenn's patch into the Emacs trunk. Could you please > try it out, and see if it solves your problem. I've built a new Emacs from trunk today and the fix works as intended. Thanks to you and Glenn. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf microQ V2.22R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada From debbugs-submit-bounces@debbugs.gnu.org Sun May 05 14:12:11 2013 Received: (at control) by debbugs.gnu.org; 5 May 2013 18:12:11 +0000 Received: from localhost ([127.0.0.1]:59055 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UZ3Pv-0000c4-CI for submit@debbugs.gnu.org; Sun, 05 May 2013 14:12:11 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:53621) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UZ3Pt-0000by-RZ for control@debbugs.gnu.org; Sun, 05 May 2013 14:12:10 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1UZ3P2-00054B-Tt for control@debbugs.gnu.org; Sun, 05 May 2013 14:11:17 -0400 Date: Sun, 05 May 2013 14:11:16 -0400 Message-Id: Subject: control message for bug 14325 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.4 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) close 14325 24.4 From unknown Sat Jun 14 18:43:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14325: 24.3; cc-mode does not initialize correctly w/ -batch References: <878v3z29r2.fsf@Rainer.invalid> In-Reply-To: <878v3z29r2.fsf@Rainer.invalid> Resent-From: Alan Mackenzie Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Mon, 06 May 2013 13:27:02 +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: To: 14325-done@debbugs.gnu.org Received: via spool by 14325-done@debbugs.gnu.org id=D14325.136784681416458 (code D ref 14325); Mon, 06 May 2013 13:27:02 +0000 Received: (at 14325-done) by debbugs.gnu.org; 6 May 2013 13:26:54 +0000 Received: from localhost ([127.0.0.1]:59598 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UZLRE-0004H3-P2 for submit@debbugs.gnu.org; Mon, 06 May 2013 09:26:49 -0400 Received: from colin.muc.de ([193.149.48.1]:38050 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UZLR7-0004GW-Aj for 14325-done@debbugs.gnu.org; Mon, 06 May 2013 09:26:42 -0400 Received: (qmail 28845 invoked by uid 3782); 6 May 2013 13:25:38 -0000 Received: from acm.muc.de (p5492C88A.dip0.t-ipconnect.de [84.146.200.138]) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 06 May 2013 15:25:37 +0200 Received: (qmail 4232 invoked by uid 1000); 6 May 2013 13:25:24 -0000 Date: Mon, 6 May 2013 13:25:24 +0000 Message-ID: <20130506132524.GA4208@acm.acm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.8 (---) Bug fixed. -- Alan Mackenzie (Nuremberg, Germany).