From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eddward DeVilla" Subject: undo bug (plus a plain list bug) Date: Tue, 27 Mar 2007 14:06:53 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1596820063==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HWH2u-0005YJ-Ct for emacs-orgmode@gnu.org; Tue, 27 Mar 2007 15:09:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HWH2r-0005U5-G0 for emacs-orgmode@gnu.org; Tue, 27 Mar 2007 15:09:27 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWH2r-0005To-3M for emacs-orgmode@gnu.org; Tue, 27 Mar 2007 14:09:25 -0500 Received: from ug-out-1314.google.com ([66.249.92.174]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HWH0S-0008It-9W for emacs-orgmode@gnu.org; Tue, 27 Mar 2007 15:06:56 -0400 Received: by ug-out-1314.google.com with SMTP id j3so2170377ugf for ; Tue, 27 Mar 2007 12:06:54 -0700 (PDT) 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 --===============1596820063== Content-Type: multipart/alternative; boundary="----=_Part_24854_25474501.1175022413078" ------=_Part_24854_25474501.1175022413078 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I found a bug with undo and selection. While putting together a simple recreate, I also found a buglet involving A-left/A-right on plain lists. First I'll describe the list bug. If you have a plain list before the first heading you can't use A-left or A-right to promote or demote list items. So given the file: ==== test 1 ========= - Stooge - moe - larry - curly ================== If you got to the line with moe on it and use A-left to promote it I would expect to see ===== test 1 prime ======= - Stooge - moe - larry - curly ====================== It doesn't work because it's before the first heading. Not a big deal, but I though I'd mention it. 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'm assuming that regional undos are not a feature I'm unfamiliar with. This is with emacs 21.2.1 on cygwin running org 4.69a. I've seen similar on 21.1.1 on AIX and an older version org. Edd ------=_Part_24854_25474501.1175022413078 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,

   I found a bug with undo and selection.  While putting together a simple recreate, I also found a buglet involving A-left/A-right on plain lists.  First I'll describe the list bug.  If you have a plain list before the first heading you can't use A-left or A-right to promote or demote list items.  So given the file:

==== test 1 =========

  - Stooge
    - moe
    - larry
    - curly

==================

If you got to the line with moe on it and use A-left to promote it  I would expect to see

===== test 1 prime =======

  - Stooge
   - moe
    - larry
    - curly

======================

It doesn't work because it's before the first heading.  Not a big deal, but I though I'd mention it. 

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'm assuming that regional undos are not a feature I'm unfamiliar with.  This is with emacs 21.2.1 on cygwin running org 4.69a.  I've seen similar on 21.1.1 on AIX and an older version org.

Edd
------=_Part_24854_25474501.1175022413078-- --===============1596820063== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1596820063==--