From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.bugs Subject: bug#23871: 25.1.50; Undo unexpectedly leads to blank buffer Date: Tue, 05 Jul 2016 22:32:55 +0200 Message-ID: <87h9c3g70o.fsf@metalevel.at> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1467750896 31415 80.91.229.3 (5 Jul 2016 20:34:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Jul 2016 20:34:56 +0000 (UTC) Cc: 23871@debbugs.gnu.org, Stefan Monnier To: phillip.lord@russet.org.uk (Phillip Lord) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 05 22:34:46 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 1bKX3N-0000Pa-U3 for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Jul 2016 22:34:46 +0200 Original-Received: from localhost ([::1]:57928 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKX3M-0007ZH-Qf for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Jul 2016 16:34:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50067) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKX1k-0005XV-BF for bug-gnu-emacs@gnu.org; Tue, 05 Jul 2016 16:33:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKX1i-0004RU-DJ for bug-gnu-emacs@gnu.org; Tue, 05 Jul 2016 16:33:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54543) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKX1i-0004RM-9H for bug-gnu-emacs@gnu.org; Tue, 05 Jul 2016 16:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bKX1i-0007TW-3m for bug-gnu-emacs@gnu.org; Tue, 05 Jul 2016 16:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Markus Triska Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Jul 2016 20:33:02 +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.146775077728723 (code B ref 23871); Tue, 05 Jul 2016 20:33:02 +0000 Original-Received: (at 23871) by debbugs.gnu.org; 5 Jul 2016 20:32:57 +0000 Original-Received: from localhost ([127.0.0.1]:38647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bKX1d-0007TD-Fe for submit@debbugs.gnu.org; Tue, 05 Jul 2016 16:32:57 -0400 Original-Received: from metalevel.at ([78.46.218.83]:53416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bKX1b-0007T5-MG for 23871@debbugs.gnu.org; Tue, 05 Jul 2016 16:32:55 -0400 Original-Received: by metalevel.at (Postfix, from userid 1000) id 1AAE2A0251; Tue, 5 Jul 2016 22:32:55 +0200 (CEST) In-Reply-To: <87d1mscw58.fsf@russet.org.uk> (Phillip Lord's message of "Tue, 05 Jul 2016 09:43:47 +0100") User-Agent: Emacs/24.4 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:120465 Archived-At: Hi Phillip, phillip.lord@russet.org.uk (Phillip Lord) 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. All the best, Markus