unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Making a command undoable
@ 2012-08-31 17:16 Raffaele Ricciardi
  2012-08-31 17:57 ` Doug Lewan
  0 siblings, 1 reply; 2+ messages in thread
From: Raffaele Ricciardi @ 2012-08-31 17:16 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

you have written a command and you want to make it undoable by using
`undo'.  How do you accomplish that?

Thanks.



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

* RE: Making a command undoable
  2012-08-31 17:16 Making a command undoable Raffaele Ricciardi
@ 2012-08-31 17:57 ` Doug Lewan
  0 siblings, 0 replies; 2+ messages in thread
From: Doug Lewan @ 2012-08-31 17:57 UTC (permalink / raw)
  To: Raffaele Ricciardi, help-gnu-emacs@gnu.org

The elisp info documentation (section 32.9 in emacs 24) tells you what kind of information you have to keep track of and how to do so.

I've also noticed that you very often get "undo" for free if your command make changes in "normal" ways. I assume that "the unit to undo" is a single M-x CMD, but I've never researched this.

,Doug

> -----Original Message-----
> From: help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org
> [mailto:help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org] On
> Behalf Of Raffaele Ricciardi
> Sent: Friday, 2012 August 31 13:17
> To: help-gnu-emacs@gnu.org
> Subject: Making a command undoable
> 
> Hello,
> 
> you have written a command and you want to make it undoable by using
> `undo'.  How do you accomplish that?
> 
> Thanks.




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

end of thread, other threads:[~2012-08-31 17:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-31 17:16 Making a command undoable Raffaele Ricciardi
2012-08-31 17:57 ` Doug Lewan

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).