emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: font-lock patch for automated edits


From: Stefan Monnier
Subject: Re: font-lock patch for automated edits
Date: Wed, 15 Apr 2009 17:16:19 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux)

>   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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]