unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Glenn Morris <rgm@gnu.org>
Cc: 6135@debbugs.gnu.org, Paul Pogonyshev <p.pogonyshev@anakreon.net>
Subject: bug#6135: font lock is not turned on in js-mode anymore
Date: Wed, 16 Jun 2010 09:56:36 -0400	[thread overview]
Message-ID: <jwvhbl36pzd.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <yg631j4osu.fsf@fencepost.gnu.org> (Glenn Morris's message of "Tue, 15 Jun 2010 23:52:17 -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





  reply	other threads:[~2010-06-16 13:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-07 15:22 bug#6135: font lock is not turned on in js-mode anymore Paul Pogonyshev
2010-06-16  3:52 ` Glenn Morris
2010-06-16 13:56   ` Stefan Monnier [this message]
2010-06-16 15:53     ` Glenn Morris
2010-06-16 20:01       ` Stefan Monnier
2010-06-16 20:55         ` 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=jwvhbl36pzd.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=6135@debbugs.gnu.org \
    --cc=p.pogonyshev@anakreon.net \
    --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).