all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How does `undo` know that `keyboard-quit`has been called?
@ 2014-11-07 21:36 Raffaele Ricciardi
  2014-11-07 22:02 ` Stefan Monnier
  2014-11-07 22:02 ` Drew Adams
  0 siblings, 2 replies; 3+ messages in thread
From: Raffaele Ricciardi @ 2014-11-07 21:36 UTC (permalink / raw)
  To: help-gnu-emacs

I would like to write a command that behaves like `undo`, that is: a 
command that reverses its behaviour when the user calls `keyboard-quit`. 
  I have read the Lisp code for both `undo` and `keyboard-quit` and I 
can't understand how `undo` achieves such behaviour. (I know that I 
could always advise `keyboard-quit`.)

Thank you.


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

end of thread, other threads:[~2014-11-07 22:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-07 21:36 How does `undo` know that `keyboard-quit`has been called? Raffaele Ricciardi
2014-11-07 22:02 ` Stefan Monnier
2014-11-07 22:02 ` Drew Adams

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.