From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eddward DeVilla" Subject: Re: undo bug (plus a plain list bug) Date: Wed, 28 Mar 2007 20:49:58 -0500 Message-ID: References: <90b18ba110f60d4abb952b7d3fabb565@science.uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HWjoe-00067r-9w for emacs-orgmode@gnu.org; Wed, 28 Mar 2007 21:52:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HWjoc-00067a-AC for emacs-orgmode@gnu.org; Wed, 28 Mar 2007 21:52:39 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWjoc-00067X-3W for emacs-orgmode@gnu.org; Wed, 28 Mar 2007 20:52:38 -0500 Received: from wr-out-0506.google.com ([64.233.184.228]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HWjm4-0000A0-Sv for emacs-orgmode@gnu.org; Wed, 28 Mar 2007 21:50:01 -0400 Received: by wr-out-0506.google.com with SMTP id i23so50518wra for ; Wed, 28 Mar 2007 18:50:00 -0700 (PDT) In-Reply-To: <90b18ba110f60d4abb952b7d3fabb565@science.uva.nl> Content-Disposition: inline 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: Carsten Dominik Cc: emacs-orgmode On 3/28/07, Carsten Dominik wrote: > On Mar 27, 2007, at 21:06, Eddward DeVilla wrote: > > The second is more of an issue for someone like me who tends to live > > by undo and is also sloppy about have a selection. Given the file > > > > ==== test 2 ========= > > > > * brilliant > > - Stooge > > - moe > > - larry > > - curly > > > > ================== > > > > Now go to the line with moe and press A-left twice to get the file: > > (note: moe indented twice. larry and curly indented once) > > > > ==== test 2 prime ==== > > > > * brilliant > > - Stooge > > - moe > > - larry > > - curly > > > > ================= > > > > Now select the region containing lines with moe and larry using what > > ever method you like. (The mouse is easy.) Do two undos. I would > > expect it to undo both promotes, restoring the file back to its > > contents in test 2. Instead I get: (curly never got demoted) > > > > ==== test 2 double prime ==== > > > > * brilliant > > - Stooge > > - moe > > - larry > > - curly > > I think this result is correct, because Emacs only does undo in the > region. curley is notpart of the region, so its promotion (as subitem > of moe) should not be undone. Am I missing something? I guess it could be a feature of emacs. I've never noticed outside of org-mode and found it confusing. I should be able to get rid of the region and try undos from there and cycle back to the original state then right? I'll play with it some more. Thanks, Edd