emacs-devel
[Top][All Lists]
Advanced

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

Re: CC mode 5.31.4: c-{beginning, end}-of-defun try to modify buffer


From: Lennart Borgman (gmail)
Subject: Re: CC mode 5.31.4: c-{beginning, end}-of-defun try to modify buffer
Date: Tue, 08 Jan 2008 21:22:02 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

martin rudalics wrote:
As I say, that's just a guess.  I'll take a closer look at it sometime.
I suspect it is one of these irritating little bugs whose solution
demands extensive redesign - here, perhaps, by using overlays/extents
instead of text properties.

Do you bind `buffer-file-name' to nil when applying text properties?


There is a macro in font-lock.el called save-buffer-state that font lock uses when it changes the text properties. Unfortunately that macro is not available for anyone else to use since it is in an eval-when-compile. Maybe that macro should be made available outside of font-lock.el -- for changing text properties?




reply via email to

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