GNU bug report logs - #13816
24.3.50; turn-on-font-lock doesn't turn it on

Previous Next

Package: emacs;

Reported by: Katsumi Yamaoka <yamaoka <at> jpl.org>

Date: Tue, 26 Feb 2013 02:05:01 UTC

Severity: normal

Tags: confirmed, patch

Merged with 13730, 13751, 13806, 13812

Found in version 24.3.50

Done: Katsumi Yamaoka <yamaoka <at> jpl.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Katsumi Yamaoka <yamaoka <at> jpl.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#13812: closed (24.3.50; cperl-hairy turns OFF font-lock)
Date: Tue, 26 Feb 2013 07:54:04 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 26 Feb 2013 16:51:10 +0900
with message-id <b4mbob74ioh.fsf <at> jpl.org>
and subject line Re: bug#13816: 24.3.50; turn-on-font-lock doesn't turn it on
has caused the debbugs.gnu.org bug report #13816,
regarding 24.3.50; cperl-hairy turns OFF font-lock
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
13816: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13816
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Sam Steingold <sds <at> gnu.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; cperl-hairy turns OFF font-lock
Date: Mon, 25 Feb 2013 11:16:03 -0500
I have had

--8<---------------cut here---------------start------------->8---
(fset 'perl-mode 'cperl-mode)
(custom-set-variables '(cperl-hairy t))
--8<---------------cut here---------------end--------------->8---

in my .emacs.el for a long time.
today, after a "bzr update" and "make bootstrap", this turns font lock
_off_ instead of on.

specifically:

emacs -Q
(fset 'perl-mode 'cperl-mode)
(custom-set-variables '(cperl-hairy t))
C-x C-f foo.pl RET
==> font lock is off

emacs -Q
(fset 'perl-mode 'cperl-mode)
C-x C-f foo.pl RET
==> font lock is on.


In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.2)
 of 2013-02-25 on t520sds
Bzr revision: 111872 rgm <at> gnu.org-20130225111736-s2oyv4twhwl4r6hn
Windowing system distributor `The X.Org Foundation', version 11.0.11103000
System Description:	Ubuntu 12.04.2 LTS

Configured using:
 `configure --with-wide-int'

Important settings:
  value of $LC_COLLATE: C
  value of $LANG: C
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

-- 
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
http://www.childpsy.net/ http://jihadwatch.org http://palestinefacts.org
http://iris.org.il http://openvotingconsortium.org http://memri.org
The only intuitive interface is the nipple.  The rest has to be learned.


[Message part 3 (message/rfc822, inline)]
From: Katsumi Yamaoka <yamaoka <at> jpl.org>
To: 13816-done <at> debbugs.gnu.org
Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#13816: 24.3.50; turn-on-font-lock doesn't turn it on
Date: Tue, 26 Feb 2013 16:51:10 +0900
I confirmed it has been fixed on:

In GNU Emacs 24.3.50.1 (i686-pc-cygwin, X toolkit, Xaw3d scroll bars)
 of 2013-02-26 on yamaoka-PC
Bzr revision: 111882 eggert <at> cs.ucla.edu-20130226030908-c65ivknn1bm5hjru
Windowing system distributor `The Cygwin/X Project', version 11.0.11302000

Sorry for the noise.

Katsumi Yamaoka wrote:
> 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 <at> 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)))


This bug report was last modified 12 years and 90 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.