From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#25433: undo should restore cursor position too Date: Fri, 13 Jan 2017 08:20:47 +0800 Message-ID: <87a8av95eo.fsf@jidanni.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1484266949 15472 195.159.176.226 (13 Jan 2017 00:22:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 13 Jan 2017 00:22:29 +0000 (UTC) To: 25433@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 13 01:22:25 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cRpdD-0002GB-Su for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Jan 2017 01:22:12 +0100 Original-Received: from localhost ([::1]:38364 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRpdF-00064C-3Z for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Jan 2017 19:22:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56937) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRpd8-0005zk-Or for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2017 19:22:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRpd4-0001oC-N0 for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2017 19:22:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36488) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cRpd4-0001o8-JF for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2017 19:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cRpd4-0000bc-Dz for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2017 19:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Jan 2017 00:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25433 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.14842668692265 (code B ref -1); Fri, 13 Jan 2017 00:22:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Jan 2017 00:21:09 +0000 Original-Received: from localhost ([127.0.0.1]:51887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cRpcC-0000aT-O3 for submit@debbugs.gnu.org; Thu, 12 Jan 2017 19:21:08 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37611) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cRpcA-0000Zf-KI for submit@debbugs.gnu.org; Thu, 12 Jan 2017 19:21:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRpc4-00015O-Ie for submit@debbugs.gnu.org; Thu, 12 Jan 2017 19:21:01 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:41522) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cRpc4-00015F-FX for submit@debbugs.gnu.org; Thu, 12 Jan 2017 19:21:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRpc3-0005gj-20 for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2017 19:21:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRpbx-0000yl-2b for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2017 19:20:59 -0500 Original-Received: from homie.mail.dreamhost.com ([208.97.132.208]:49736 helo=homiemail-a38.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cRpbw-0000yV-Ps for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2017 19:20:53 -0500 Original-Received: from homiemail-a38.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a38.g.dreamhost.com (Postfix) with ESMTP id 8339A10AFBE for ; Thu, 12 Jan 2017 16:20:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=keLmqTNDz141kYnajkHXw2b5wo8=; b=fR+u2IXBjDZtCEQC p3RrvPptSNokCZfXb0vannSZFaQAdlRZLPQCz3fz9RbkU5Az7jIikvhj6piX8y3L a4DducMe4dd+LFXuohrxN8o9VwSsLmXfd+b2lERe3QW9RihosonQZ+BpKrFN4vPv LL2pIGYIDqkCAy5oBcvjZrM3xm0= Original-Received: from jidanni.org (114-26-41-44.dynamic.hinet.net [114.26.41.44]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a38.g.dreamhost.com (Postfix) with ESMTPSA id 3812E10AF7E for ; Thu, 12 Jan 2017 16:20:50 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:128045 Archived-At: 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?