[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: todo-mode: after an "E" buffer edit, the cursor should return to the
From: |
Stephen Berman |
Subject: |
Re: todo-mode: after an "E" buffer edit, the cursor should return to the same todo item |
Date: |
14 Nov 2001 23:44:14 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
Stephen Berman <steve@IMS.Uni-Stuttgart.DE> writes:
> Daniel Ortmann <dortmann@lsil.com> writes:
>
> [...]
> > In GNU Emacs 21.1.1 (sparc-sun-solaris2.7, X toolkit)
> [...]
> > After an "E" buffer edit, the cursor should return to the same todo item
> > rather than to the top of the todo buffer.
>
> I don't get this behavior with todo-mode version 1.34 under Emacs 20.7
> -- for me, the cursor remains after editing just where it was prior to
> invoking 'E', i.e., within the edited item. Could there be a
> difference between 1.34 and the version in Emacs 21.1? Be that as it
> may, I notice there is a difference of behavior (in version 1.34)
> between todo-multiline-edit ('E') and todo-edit ('e') for single-line
> items: when you edit a single line, the cursor is located in the
> minibuffer at the end of the item, and when you return, it is located
> at the beginning of that item; but with multiline editing, the cursor
> enters the editing buffer at the location it is in when you invoke
> 'E', and when you exit the editing buffer it is still in that location
> (regardless of where it last was in the editing buffer). The attached
> patch makes the behavior of todo-multiline-edit uniform in this
> respect with that of todo-edit. [...]
On reconsideration, I think the original behavior of
todo-multiline-edit is preferable to that of todo-edit-item; that is,
I think you should enter the editing buffer with the cursor at the
position you place it in within the item, so you can start editing
right there. So I would like to withdraw the todo-multiline-edit
patch I submitted (also, it contained a useless use of progn).
However, I still think the behavior of todo-edit-item and
todo-multiline-edit should be unified, but in the other direction:
todo-edit-item should also have the cursor upon entering and exiting
the editing buffer (here, the minibuffer) in the position you placed
it in; the attached patch does this.
--Steve Berman
todo-edit-item.patch
Description: todo-edit-item patch