On Mar 27, 2007, at 21:06, Eddward DeVilla wrote:
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
It doesn't work because it's before the first heading. Not a big
deal, but I though I'd mention it.
This is fixed now, thanks.
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?
- Carsten
_______________________________________________
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode