unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 13816@debbugs.gnu.org
Subject: bug#13816: 24.3.50; turn-on-font-lock doesn't turn it on
Date: Tue, 26 Feb 2013 16:29:25 +0900	[thread overview]
Message-ID: <b4mk3pvednt.fsf@jpl.org> (raw)
In-Reply-To: <b4m8v6bg7dn.fsf@jpl.org>

Stefan Monnier wrote:
>> Recently turn-on-font-lock set to some hook turns font-lock
>> on but turns it off immediately regardless of the value of
>> global-font-lock-mode.  Here's a recipe:

>> emacs -Q
>> Eval: (add-hook 'emacs-lisp-mode-hook 'turn-on-font-lock)
>> and visit some .el file.

> Works fine on the trunk right now.  Can you confirm it was fixed if you
> try a recent enough build?

I build Emacs from the trunk almost everyday.  Now I use:

In GNU Emacs 24.3.50.1 (i686-pc-cygwin, X toolkit, Xaw3d scroll bars)
 of 2013-02-26 on localhost
Bzr revision: 111880 monnier@iro.umontreal.ca-20130225232750-8wmx78e4uz1u7tfk
Windowing system distributor `The Cygwin/X Project', version 11.0.11302000
Configured using:
 `configure --verbose --with-x-toolkit=lucid --without-imagemagick
 --without-dbus --without-gconf --without-gsettings'

I've reverted the 111870 change because of bug#13818, though.

According to my tracing of run-mode-hooks, it turns on font-lock
but turns it off by the last line:

(defun run-mode-hooks (&rest hooks)
[...]
    ;; ON
    (apply 'run-hooks (cons 'change-major-mode-after-body-hook hooks))
    ;; OFF
    (run-hooks 'after-change-major-mode-hook)))





  parent reply	other threads:[~2013-02-26  7:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-26  2:02 bug#13816: 24.3.50; turn-on-font-lock doesn't turn it on Katsumi Yamaoka
2013-02-26  3:01 ` Stefan Monnier
2013-02-26  6:05   ` Drew Adams
2013-02-26  6:45     ` Dmitry Gutov
2013-02-26  7:29   ` Katsumi Yamaoka [this message]
2013-02-26  7:51     ` Katsumi Yamaoka
2013-02-26 14:04       ` Stefan Monnier

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=b4mk3pvednt.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=13816@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).