From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Subject: undo in org.el Date: Mon, 12 Nov 2007 21:23:23 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IrgnR-0006AD-Qc for emacs-orgmode@gnu.org; Mon, 12 Nov 2007 16:26:17 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IrgnQ-000664-9L for emacs-orgmode@gnu.org; Mon, 12 Nov 2007 16:26:17 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IrgnP-00065Z-TG for emacs-orgmode@gnu.org; Mon, 12 Nov 2007 16:26:15 -0500 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IrgnP-0001Hr-Ep for emacs-orgmode@gnu.org; Mon, 12 Nov 2007 16:26:15 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IrgnF-0007YI-Eg for emacs-orgmode@gnu.org; Mon, 12 Nov 2007 21:26:06 +0000 Received: from sl392.st-edmunds.cam.ac.uk ([131.111.223.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Nov 2007 21:26:05 +0000 Received: from sdl.web by sl392.st-edmunds.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Nov 2007 21:26:05 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Dear all, [a suggestion] I seem to recall some time ago there were some discussions about undo changes. for example, if I archive a subtree and then undo, the archived substree will be restored to its original .org file but is also archived in the _archive.org file. i.e. the undo is incomplete. We can use the following to make the archive action one atomic change. ,----[ (info "(elisp)Atomic Changes") ] | If you need something more sophisticated, such as to make changes in | various buffers constitute one atomic group, you must directly call | lower-level functions that `atomic-change-group' uses. `---- HTH, -- .: Leo :. [ sdl.web AT gmail.com ] .: [ GPG Key: 9283AA3F ] :. Use the most powerful email client -- http://gnus.org/