From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Doug Lewan Newsgroups: gmane.emacs.help Subject: RE: Making a command undoable Date: Fri, 31 Aug 2012 17:57:30 +0000 Message-ID: <155DEC68569B714B86C2C7075F5EDA98268CDBD0@DAKIYA1.pegasus.local> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1346435837 12879 80.91.229.3 (31 Aug 2012 17:57:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Aug 2012 17:57:17 +0000 (UTC) To: Raffaele Ricciardi , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 31 19:57:17 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T7VSt-0005UV-NK for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Aug 2012 19:57:07 +0200 Original-Received: from localhost ([::1]:39370 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7VSr-0003tq-49 for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Aug 2012 13:57:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38437) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7VSm-0003tk-79 for help-gnu-emacs@gnu.org; Fri, 31 Aug 2012 13:57:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T7VSl-00043Z-BW for help-gnu-emacs@gnu.org; Fri, 31 Aug 2012 13:57:00 -0400 Original-Received: from webmail.shubertorg.com ([207.246.209.200]:40082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7VSl-000431-7s for help-gnu-emacs@gnu.org; Fri, 31 Aug 2012 13:56:59 -0400 Original-Received: from dakiya1.pegasus.local ([::1]) by DAKIYA1.pegasus.local ([::1]) with mapi id 14.01.0339.001; Fri, 31 Aug 2012 13:57:31 -0400 Thread-Topic: Making a command undoable Thread-Index: AQHNh5z4d+KG3uKYmE2vJr2FNiLlPpd0NCQg In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.21.202] X-detected-operating-system: by eggs.gnu.org: Windows XP/2000 (RFC1323+, w+, tstamp-) X-Received-From: 207.246.209.200 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86609 Archived-At: 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 m= ake 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=3Dshubertticketing.com@gnu.org > [mailto:help-gnu-emacs-bounces+dougl=3Dshubertticketing.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 >=20 > Hello, >=20 > you have written a command and you want to make it undoable by using > `undo'. How do you accomplish that? >=20 > Thanks.