From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: "Eric M. Ludlam" <eric@siege-engine.com>
Cc: Alan Mackenzie <acm@muc.de>, emacs-devel@gnu.org
Subject: Re: font-lock patch for automated edits
Date: Wed, 15 Apr 2009 17:16:19 -0400 [thread overview]
Message-ID: <jwvbpqxaadx.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <200812281312.mBSDCMma011059@projectile.siege-engine.com> (Eric M. Ludlam's message of "Sun, 28 Dec 2008 08:12:22 -0500")
> I updated my version of Emacs from CVS recently, and this problem
> still occurs. I also have a simplified reproduction step. Start with
> this C++ file:
> ----------
> /* A comment */
> /*
> * A multi-line comment
> */
> -----------
> Make sure font lock has fontified this entire buffer.
> Mark the entirety of the multi-line comment, and use C-w to kill the
> region. Font lock will throw an error and stop auto-updating.
I see now. It appears to be a bug in c-extend-after-change-region
(assigned to font-lock-extend-after-change-region-function) which
returns a region that extends past the end of the buffer.
Alan, can you take a look at it? In the above recipe, it helps to do:
M-: (setq fnt-lock-support-mode nil debug-on-error t) RET and then
toggle font-lock-mode OFF and back ON before doing the C-w.
Stefan
next prev parent reply other threads:[~2009-04-15 21:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-30 14:56 font-lock patch for automated edits Eric M. Ludlam
2008-08-31 6:15 ` Stefan Monnier
2008-09-01 3:07 ` Re[2]: " Eric M. Ludlam
2008-12-28 13:12 ` Eric M. Ludlam
2009-04-15 21:16 ` Stefan Monnier [this message]
2009-04-15 22:57 ` Eric M. Ludlam
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=jwvbpqxaadx.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=acm@muc.de \
--cc=emacs-devel@gnu.org \
--cc=eric@siege-engine.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 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).