help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Problem Undoing Text Properties In Gnu Emacs 24, Is this a bug?


From: Michael Heerdegen
Subject: Re: Problem Undoing Text Properties In Gnu Emacs 24, Is this a bug?
Date: Sun, 14 Dec 2014 06:06:42 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Hello,

> (add-hook 'post-command-hook
>      (function 
>        (lambda ()
>        (do-syntax))))

With this code, after you undo, `do-syntax' is called immediately and
may add the text properties anew where the undo may have had removed
them, so it is no surprise if you encounter a "loop" sometimes, I guess.

BTW, what is the purpose of your code, and why is font-lock-mode not
sufficient for your needs?


Michael.




reply via email to

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