From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.bugs Subject: bug#23871: 25.1.50; Undo unexpectedly leads to blank buffer Date: Tue, 05 Jul 2016 23:09:18 +0100 Message-ID: <87furnd9f5.fsf@russet.org.uk> References: <83h9cavdgj.fsf@gnu.org> <87poqyy2tc.fsf@metalevel.at> <87vb0qqrkz.fsf@russet.org.uk> <87h9c9zx75.fsf@metalevel.at> <834m89vmyv.fsf@gnu.org> <878txlsbdb.fsf@russet.org.uk> <87furtccdv.fsf@metalevel.at> <877fd5q9te.fsf@russet.org.uk> <83bn2gtruk.fsf@gnu.org> <87k2h37pvb.fsf@russet.org.uk> <87vb0lta67.fsf@russet.org.uk> <87d1mscw58.fsf@russet.org.uk> <87h9c3g70o.fsf@metalevel.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1467756628 29229 80.91.229.3 (5 Jul 2016 22:10:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Jul 2016 22:10:28 +0000 (UTC) Cc: 23871@debbugs.gnu.org, Stefan Monnier To: Markus Triska Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 06 00:10:15 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bKYXm-0005wK-5K for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Jul 2016 00:10:14 +0200 Original-Received: from localhost ([::1]:58320 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKYXl-00082E-0C for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Jul 2016 18:10:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKYXf-00080c-Mk for bug-gnu-emacs@gnu.org; Tue, 05 Jul 2016 18:10:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKYXa-00023C-0d for bug-gnu-emacs@gnu.org; Tue, 05 Jul 2016 18:10:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKYXZ-000233-Te for bug-gnu-emacs@gnu.org; Tue, 05 Jul 2016 18:10:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bKYXZ-0001GJ-Mg for bug-gnu-emacs@gnu.org; Tue, 05 Jul 2016 18:10:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: phillip.lord@russet.org.uk (Phillip Lord) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Jul 2016 22:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23871 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23871-submit@debbugs.gnu.org id=B23871.14677565684803 (code B ref 23871); Tue, 05 Jul 2016 22:10:01 +0000 Original-Received: (at 23871) by debbugs.gnu.org; 5 Jul 2016 22:09:28 +0000 Original-Received: from localhost ([127.0.0.1]:38674 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bKYX2-0001FP-0a for submit@debbugs.gnu.org; Tue, 05 Jul 2016 18:09:28 -0400 Original-Received: from cloud103.planethippo.com ([31.216.48.48]:55243) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bKYWz-0001FB-Pj for 23871@debbugs.gnu.org; Tue, 05 Jul 2016 18:09:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=russet.org.uk; s=default; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From; bh=HIwd3R9zYvRLZV72sy36GXwOZ4hebsxeS3mDaKqo9I4=; b=ojlYNUPXgrAyXJREGk11LfWR9U t5huVMGOThOT2S8+Z+e4lE0CGIXaxfJGCxzjXIcWkTOvMJtTENsAhPZPzMIGImKsej45sT/f1wN6T 1zXgYBCoJlMC5vrJg0ECjqh1DHGkvEtkE01pCBz2HSZYv9Lcxp9NeEMsylBaskWmpu7DxtXLJFi0N VfcvWHgFKX12WilF3r7Lz4Cc8Unz3lDWfAKXTZSY8QKVXx1Bt+wcrL5FCZ4H2bRKStdVvfT+TgTxy re8olCOZabie/4/PAFVSXxH8OMKVwjY65qpvknhOgSA9z3rv3V7pVOdQ0hkUg/VkACmDNEdY3ZaI4 B94qQ7Ew==; Original-Received: from cpc1-benw10-2-0-cust373.gate.cable.virginm.net ([77.98.219.118]:53267 helo=russet.org.uk) by cloud103.planethippo.com with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.86_1) (envelope-from ) id 1bKYWt-0022mF-Hy; Tue, 05 Jul 2016 23:09:19 +0100 In-Reply-To: <87h9c3g70o.fsf@metalevel.at> (Markus Triska's message of "Tue, 05 Jul 2016 22:32:55 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.95 (gnu/linux) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cloud103.planethippo.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - russet.org.uk X-Get-Message-Sender-Via: cloud103.planethippo.com: authenticated_id: phillip.lord@russet.org.uk X-Authenticated-Sender: cloud103.planethippo.com: phillip.lord@russet.org.uk 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:120469 Archived-At: Markus Triska writes: >> I have pushed this to emacs-25, since Eli was happy with the last >> version, and you're happy with this. > > One issue I noticed with the current undo system is that it behaves > differently if the command that inserts text is invoked via a keyboard > shortcut instead of via M-x ... RET. > > For example, in the recipe I gave, if you invoke Emacs via: > > $ emacs -Q ceiled.pl -fn "Bitstream Vera Sans Mono 15" \ > --eval "(progn (load \"$PWD/ediprolog.el\") \ > (global-set-key [f9] 'ediprolog-dwim))" > > (note the use of F9 as a shortcut for ediprolog-dwim), and then press F9 > instead of M-x ediprolog-dwim RET to invoke the query, then, after undo, > point is placed at the *beginning* of line 15 instead of at the end. > > In fact, I find the former behaviour desirable since it puts point > exactly where it was before the whole insertion started, and I hope that > this can also be adopted if the command is invoked with M-x ... RET. I'm amazed at how you spot all of these! Can we start a new bug for this? We've been discussing about 4 different bugs on this thread, and IIUC, Eli's fixed this one. Phil