bug-gnu-emacs
[Top][All Lists]
Advanced

[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: 13 Nov 2001 15:44:53 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

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.  (BTW, 'e' also invokes
todo-multiline-edit if the item contains multiple lines, hence 'E' is
in fact superfluous.)

--Steve Berman

Attachment: todo-edit-multiline.patch
Description: todo-multiline-edit patch


reply via email to

[Prev in Thread] Current Thread [Next in Thread]