unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Raffaele Ricciardi <rfflrccrd@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: How does `undo` know that `keyboard-quit`has been called?
Date: Fri, 07 Nov 2014 22:36:51 +0100	[thread overview]
Message-ID: <cc4sbmF8oioU1@mid.individual.net> (raw)

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	other threads:[~2014-11-07 21:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-07 21:36 Raffaele Ricciardi [this message]
2014-11-07 22:02 ` How does `undo` know that `keyboard-quit`has been called? Stefan Monnier
2014-11-07 22:02 ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cc4sbmF8oioU1@mid.individual.net \
    --to=rfflrccrd@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).