From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: undo bug (plus a plain list bug) Date: Wed, 28 Mar 2007 20:38:58 +0200 Message-ID: <90b18ba110f60d4abb952b7d3fabb565@science.uva.nl> References: Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HWdne-0002LU-Pl for emacs-orgmode@gnu.org; Wed, 28 Mar 2007 15:27:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HWdnd-0002IP-5X for emacs-orgmode@gnu.org; Wed, 28 Mar 2007 15:27:14 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWdnd-0002IH-3b for emacs-orgmode@gnu.org; Wed, 28 Mar 2007 14:27:13 -0500 Received: from korteweg.uva.nl ([146.50.98.70]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HWdkz-00046P-6U for emacs-orgmode@gnu.org; Wed, 28 Mar 2007 15:24:37 -0400 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: Eddward DeVilla Cc: emacs-orgmode On Mar 27, 2007, at 21:06, Eddward DeVilla wrote: > Hi, > > =A0=A0 I found a bug with undo and selection.=A0 While putting = together a=20 > simple recreate, I also found a buglet involving A-left/A-right on=20 > plain lists.=A0 First I'll describe the list bug.=A0 If you have a = plain=20 > list before the first heading you can't use A-left or A-right to=20 > promote or demote list items.=A0 So given the file: > > =3D=3D=3D=3D test 1 =3D=3D=3D=3D=3D=3D=3D=3D=3D > > =A0 - Stooge > =A0=A0=A0 - moe > =A0=A0=A0 - larry > =A0=A0=A0 - curly > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > If you got to the line with moe on it and use A-left to promote it=A0 = I=20 > would expect to see > > It doesn't work because it's before the first heading.=A0 Not a big=20 > deal, but I though I'd mention it.=A0 This is fixed now, thanks. > The second is more of an issue for someone like me who tends to live=20= > by undo and is also sloppy about have a selection.=A0 Given the file > > =3D=3D=3D=3D test 2 =3D=3D=3D=3D=3D=3D=3D=3D=3D > > * brilliant > =A0 - Stooge > =A0=A0=A0 - moe > =A0=A0=A0 - larry > =A0=A0=A0 - curly > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > Now go to the line with moe and press A-left twice to get the file:=A0=20= > (note: moe indented twice.=A0 larry and curly indented once) > > =3D=3D=3D=3D test 2 prime =3D=3D=3D=3D > > * brilliant > =A0 - Stooge > =A0 - moe > =A0=A0 - larry > =A0=A0 - curly > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > Now select the region containing lines with moe and larry using what=20= > ever method you like.=A0 (The mouse is easy.)=A0 Do two undos.=A0 I = would=20 > expect it to undo both promotes, restoring the file back to its=20 > contents in test 2.=A0 Instead I get:=A0 (curly never got demoted) > > =3D=3D=3D=3D test 2 double prime =3D=3D=3D=3D > > * brilliant > =A0 - Stooge > =A0=A0=A0 - moe > =A0=A0=A0 - larry > =A0=A0 - curly I think this result is correct, because Emacs only does undo in the=20 region. curley is notpart of the region, so its promotion (as subitem=20= of moe) should not be undone. Am I missing something? - Carsten