From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: undo in org.el Date: Tue, 13 Nov 2007 10:03:38 +0100 Message-ID: <5C8B63FD-C596-4FBA-A8E5-DA0262F222BA@science.uva.nl> References: Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IrrgQ-0004PT-08 for emacs-orgmode@gnu.org; Tue, 13 Nov 2007 04:03:46 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IrrgN-0004Nd-4b for emacs-orgmode@gnu.org; Tue, 13 Nov 2007 04:03:44 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IrrgM-0004NM-Od for emacs-orgmode@gnu.org; Tue, 13 Nov 2007 04:03:42 -0500 Received: from smtp.science.uva.nl ([146.50.4.84]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IrrgM-0001Vm-29 for emacs-orgmode@gnu.org; Tue, 13 Nov 2007 04:03:42 -0500 In-Reply-To: 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: Leo Cc: emacs-orgmode@gnu.org Dammit, if I only had know about this earlier! I implemented multibuffer undo for the agenda, sort-of by hand. This looks much easier, but on this other hand it will not work on XEmacs. Sometimes I wander how many XEmacs users are out there, and if it is still worth supporting it.... - Carsten On 12Nov2007, at 10:23 PM, Leo wrote: > 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/ > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode