all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* `after-change-functions' and undo
@ 2004-11-27 23:43 Paul Pogonyshev
  2004-11-28 11:48 ` David Kastrup
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Pogonyshev @ 2004-11-27 23:43 UTC (permalink / raw)


Hi.

I'm having a problem with `after-change-functions' and undo
interference.  My `after-change' hook does magic things to
allow special property inheritance.  So, it can set certain
text properties on an inserted text chunk.

Everything works fine till I start undoing in the buffer.
It seems that `after-change' hook is invoked and, when
undoing a deletion, it sees an insertion and happily starts
mangling text properties.

So, the question is: can I prevent my `after-change' hook
from running while undo is in effect?  I couldn't figure out
from the manual.

Paul

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-11-29  6:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-27 23:43 `after-change-functions' and undo Paul Pogonyshev
2004-11-28 11:48 ` David Kastrup
2004-11-28 14:51   ` Paul Pogonyshev
2004-11-29  6:11     ` Richard Stallman

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.