GNU bug report logs - #25433
undo should restore cursor position too

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Fri, 13 Jan 2017 00:22:02 UTC

Severity: wishlist

Done: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 25433 in the body.
You can then email your comments to 25433 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#25433; Package emacs. (Fri, 13 Jan 2017 00:22:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 13 Jan 2017 00:22:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <bug-gnu-emacs <at> gnu.org>
Subject: undo should restore cursor position too
Date: Fri, 13 Jan 2017 08:20:47 +0800
1. Accidentally paste (C-y) many many lines into the middle of the file
on the middle of your screen.

2. Your first reaction of course is to hit undo (C-/).

3. What you are looking at still leaves you worried. It sure doesn't
look like what you were looking at before the accident happened.

4. Your second reaction might be to hit undo again. Ahh, but that will
only make things worse!

Actually the first undo fixed everything back up. It just left the
cursor at a different position on the screen leaving you disoriented! It
shouldn't do that. Undo should restore cursor position too.

I bet that's how the undo found in browser menus works.

OK it might restore the cursor position, but does it restore the file
position in the whole window?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#25433; Package emacs. (Fri, 13 Jan 2017 08:37:02 GMT) Full text and rfc822 format available.

Message #8 received at 25433 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 25433 <at> debbugs.gnu.org
Subject: Re: bug#25433: undo should restore cursor position too
Date: Fri, 13 Jan 2017 10:36:52 +0200
> From: 積丹尼 Dan Jacobson
> 	<jidanni <at> jidanni.org>
> Date: Fri, 13 Jan 2017 08:20:47 +0800
> 
> 1. Accidentally paste (C-y) many many lines into the middle of the file
> on the middle of your screen.
> 
> 2. Your first reaction of course is to hit undo (C-/).
> 
> 3. What you are looking at still leaves you worried. It sure doesn't
> look like what you were looking at before the accident happened.
> 
> 4. Your second reaction might be to hit undo again. Ahh, but that will
> only make things worse!
> 
> Actually the first undo fixed everything back up. It just left the
> cursor at a different position on the screen leaving you disoriented! It
> shouldn't do that. Undo should restore cursor position too.

I cannot reproduce this here: undo does restore the position of point
for me, as it should.  Do you see this in "emacs -Q"?  If so, please
provide a more detailed recipe, including the lines one needs to yank.




Reply sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
You have taken responsibility. (Tue, 18 Jul 2017 00:09:01 GMT) Full text and rfc822 format available.

Notification sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
bug acknowledged by developer. (Tue, 18 Jul 2017 00:09:02 GMT) Full text and rfc822 format available.

Message #13 received at 25433-done <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 25433-done <at> debbugs.gnu.org
Subject: Re: bug#25433: undo should restore cursor position too
Date: Tue, 18 Jul 2017 08:07:55 +0800
Indeed this is hard to reproduce. So I'll close it.
Instead I'll open a similar bug: http://debbugs.gnu.org/27745 .




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 15 Aug 2017 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 256 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.