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

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

How does `undo` know that `keyboard-quit`has been called?


From: Raffaele Ricciardi
Subject: How does `undo` know that `keyboard-quit`has been called?
Date: Fri, 07 Nov 2014 22:36:51 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

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.


reply via email to

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