From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Lennart Borgman <lennart.borgman@gmail.com>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: Mark for refontification
Date: Thu, 08 Apr 2010 22:53:11 -0400 [thread overview]
Message-ID: <jwviq818hr5.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <l2he01d8a51004051747r547dcfcfx8d9f6883db1710d5@mail.gmail.com> (Lennart Borgman's message of "Tue, 6 Apr 2010 02:47:21 +0200")
> Please also move the definition of the defmacro save-buffer-state
> outside of eval-when-compile so that it could be used in other places
> than font-lock.el.
We have with-silent-modifications.
> ;;;###autoload
> (defun mumamo-mark-for-refontification (min max)
> "Mark region between MIN and MAX for refontification."
> (save-restriction
> (widen)
> ;;(mumamo-with-buffer-prepared-for-jit-lock
> (mumamo-save-buffer-state nil
> (put-text-property min max 'fontified nil)
> )))
Why widen?
Stefan
next prev parent reply other threads:[~2010-04-09 2:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-06 0:47 Mark for refontification Lennart Borgman
2010-04-09 2:53 ` Stefan Monnier [this message]
2010-04-09 6:42 ` Lennart Borgman
2010-04-10 0:57 ` Stefan Monnier
2010-04-10 1:12 ` Lennart Borgman
2010-04-10 15:02 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwviq818hr5.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=lennart.borgman@gmail.com \
/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.