GNU bug report logs - #6135
font lock is not turned on in js-mode anymore

Previous Next

Package: emacs;

Reported by: Paul Pogonyshev <p.pogonyshev <at> anakreon.net>

Date: Fri, 7 May 2010 15:23:01 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 6135 in the body.
You can then email your comments to 6135 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6135; Package emacs. (Fri, 07 May 2010 15:23:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Paul Pogonyshev <p.pogonyshev <at> anakreon.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 07 May 2010 15:23:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Paul Pogonyshev <p.pogonyshev <at> anakreon.net>
To: bug-gnu-emacs <at> gnu.org
Subject: font lock is not turned on in js-mode anymore
Date: Fri, 7 May 2010 18:22:06 +0300
Since a few days, opening a .js file (js-mode) doesn't turn buffer
fontification on, despite `global-font-lock-mode' being t.  Directly
invoking `M-x font-lock-mode' in this new buffer does bring syntax
highlight back, so it's not like "fontification does not work" it is
"fontification is not turned on".

Paul





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6135; Package emacs. (Wed, 16 Jun 2010 03:53:01 GMT) Full text and rfc822 format available.

Message #8 received at 6135 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Paul Pogonyshev <p.pogonyshev <at> anakreon.net>
Cc: 6135 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#6135: font lock is not turned on in js-mode anymore
Date: Tue, 15 Jun 2010 23:52:17 -0400
Paul Pogonyshev wrote:

> Since a few days, opening a .js file (js-mode) doesn't turn buffer
> fontification on, despite `global-font-lock-mode' being t.  Directly
> invoking `M-x font-lock-mode' in this new buffer does bring syntax
> highlight back, so it's not like "fontification does not work" it is
> "fontification is not turned on".

It seems this is somehow due to
  
  2010-04-27  Stefan Monnier  <monnier at iro.umontreal.ca>
  
  * emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Avoid
  re-enabling a minor mode after the user turned the minor mode off if
  MODE-enable-in-buffers is run twice (typically once from
  fundamental-mode's after-change-major-mode-hook and a second time from
  run-mode-hook's own after-change-major-mode-hook).




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6135; Package emacs. (Wed, 16 Jun 2010 13:57:01 GMT) Full text and rfc822 format available.

Message #11 received at 6135 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 6135 <at> debbugs.gnu.org, Paul Pogonyshev <p.pogonyshev <at> anakreon.net>
Subject: Re: bug#6135: font lock is not turned on in js-mode anymore
Date: Wed, 16 Jun 2010 09:56:36 -0400
>> Since a few days, opening a .js file (js-mode) doesn't turn buffer
>> fontification on, despite `global-font-lock-mode' being t.  Directly
>> invoking `M-x font-lock-mode' in this new buffer does bring syntax
>> highlight back, so it's not like "fontification does not work" it is
>> "fontification is not turned on".

> It seems this is somehow due to
  
>   2010-04-27  Stefan Monnier  <monnier at iro.umontreal.ca>
  
>   * emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Avoid
>   re-enabling a minor mode after the user turned the minor mode off if
>   MODE-enable-in-buffers is run twice (typically once from
>   fundamental-mode's after-change-major-mode-hook and a second time from
>   run-mode-hook's own after-change-major-mode-hook).

What's the recipe to reproduce the problem?


        Stefan




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6135; Package emacs. (Wed, 16 Jun 2010 15:54:01 GMT) Full text and rfc822 format available.

Message #14 received at 6135 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 6135 <at> debbugs.gnu.org, Paul Pogonyshev <p.pogonyshev <at> anakreon.net>
Subject: Re: bug#6135: font lock is not turned on in js-mode anymore
Date: Wed, 16 Jun 2010 11:53:34 -0400
Stefan Monnier wrote:

> What's the recipe to reproduce the problem?

emacs -Q -f js-mode
C-h v font-lock-mode




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6135; Package emacs. (Wed, 16 Jun 2010 20:02:02 GMT) Full text and rfc822 format available.

Message #17 received at 6135 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 6135 <at> debbugs.gnu.org, Paul Pogonyshev <p.pogonyshev <at> anakreon.net>
Subject: Re: bug#6135: font lock is not turned on in js-mode anymore
Date: Wed, 16 Jun 2010 16:01:34 -0400
>> What's the recipe to reproduce the problem?
> emacs -Q -f js-mode
> C-h v font-lock-mode

Thanks.  I've installed a change in emacs-23 which seems to fix
this problem.  Part of the problem is that js-mode jumps through
some hoops to apply syntax-fontification to the whole buffer eagerly.


        Stefan




Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Wed, 16 Jun 2010 20:56:01 GMT) Full text and rfc822 format available.

Notification sent to Paul Pogonyshev <p.pogonyshev <at> anakreon.net>:
bug acknowledged by developer. (Wed, 16 Jun 2010 20:56:02 GMT) Full text and rfc822 format available.

Message #22 received at 6135-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 6135-done <at> debbugs.gnu.org
Subject: Re: bug#6135: font lock is not turned on in js-mode anymore
Date: Wed, 16 Jun 2010 16:55:42 -0400
Stefan Monnier wrote:

> I've installed a change in emacs-23 which seems to fix this problem.

Works for me, thanks.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 15 Jul 2010 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 346 days ago.

Previous Next


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