all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Doing the impossible: magic font-lock-keywords-only changes
Date: Thu, 4 Jun 2009 15:37:14 +0200	[thread overview]
Message-ID: <e01d8a50906040637t2c11444dl9faecfb4cdee81f8@mail.gmail.com> (raw)

Todays question:
Can You when You execute this

      (message "YY:before: font-lock-keywords-only =%s in buffer %s,
def=%s" font-lock-keywords-only (current-buffer) (default-value
font-lock-keywords-only))
      (if (nth 1 defaults)
          (set (make-local-variable 'font-lock-keywords-only) t)
        (kill-local-variable 'font-lock-keywords-only))
      (message "YY:after : font-lock-keywords-only =%s in buffer %s,
def=%s" font-lock-keywords-only (current-buffer) (default-value
font-lock-keywords-only))

and gett this output? :

    YY:before: font-lock-keywords-only =nil in buffer only-html.html, def=nil
    YY:after : font-lock-keywords-only =t in buffer only-html.html, def=t

I can. Unfortunately.

However I can only do this magic with MuMaMo. But I do not understand
how it does it. Anyone?

Hint: This is in a call from fontification-functions. And the function
where I added the trace above is font-lock-set-defaults.

I am taking a pause now. Some fresh air.




             reply	other threads:[~2009-06-04 13:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-04 13:37 Lennart Borgman [this message]
2009-06-05  0:17 ` Doing the impossible: magic font-lock-keywords-only changes Stefan Monnier
2009-06-05  0:45   ` Lennart Borgman
2009-06-05  0:46     ` Lennart Borgman
2009-06-05 19:39     ` Davis Herring
2009-06-05 21:41       ` Lennart Borgman

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e01d8a50906040637t2c11444dl9faecfb4cdee81f8@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=emacs-devel@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.