unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Glenn Morris <rgm@gnu.org>
Cc: 14325@debbugs.gnu.org
Subject: bug#14325: 24.3; cc-mode does not initialize correctly w/ -batch
Date: Wed, 1 May 2013 18:55:04 +0000	[thread overview]
Message-ID: <20130501185504.GB2392@acm.acm> (raw)
In-Reply-To: <nk61z2vawa.fsf@fencepost.gnu.org>

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).





  reply	other threads:[~2013-05-01 18:55 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 ` bug#14325: 24.3; cc-mode does not initialize correctly w/ -batch Achim Gratz
2013-05-01  0:51   ` 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 [this message]
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=20130501185504.GB2392@acm.acm \
    --to=acm@muc.de \
    --cc=14325@debbugs.gnu.org \
    --cc=rgm@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).