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: Fri, 01 Jul 2016 23:21:01 +0100 Message-ID: <877fd5q9te.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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1467411747 18057 80.91.229.3 (1 Jul 2016 22:22:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Jul 2016 22:22:27 +0000 (UTC) Cc: 23871@debbugs.gnu.org To: Markus Triska Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 02 00:22: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 1bJ6pB-0002Io-Gt for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Jul 2016 00:22:13 +0200 Original-Received: from localhost ([::1]:35986 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJ6pA-0008Rd-NM for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Jul 2016 18:22:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJ6p3-0008RX-F7 for bug-gnu-emacs@gnu.org; Fri, 01 Jul 2016 18:22:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bJ6p0-0007V0-6c for bug-gnu-emacs@gnu.org; Fri, 01 Jul 2016 18:22:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50113) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJ6p0-0007Uw-3U for bug-gnu-emacs@gnu.org; Fri, 01 Jul 2016 18:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bJ6oz-0004qQ-WB for bug-gnu-emacs@gnu.org; Fri, 01 Jul 2016 18:22:02 -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: Fri, 01 Jul 2016 22:22: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.146741167018530 (code B ref 23871); Fri, 01 Jul 2016 22:22:01 +0000 Original-Received: (at 23871) by debbugs.gnu.org; 1 Jul 2016 22:21:10 +0000 Original-Received: from localhost ([127.0.0.1]:34217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bJ6oA-0004oo-Bu for submit@debbugs.gnu.org; Fri, 01 Jul 2016 18:21:10 -0400 Original-Received: from cloud103.planethippo.com ([31.216.48.48]:57497) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bJ6o8-0004oa-RR for 23871@debbugs.gnu.org; Fri, 01 Jul 2016 18:21:09 -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=MseQ8Cc3pbk28yK92VUgzd6rbZ2NYKyQ3N/7De6kPzQ=; b=p0/XIOzvoq6w4l0VakE7o++P8q NJ8EtAjLlPlywybU9ct4UGqRjZPP3etZnvGVrttQtnhkDOoWDJvdD+5zRH9zUdRQmM4LLMXnt2go6 9+CciYDNUgrPvgHPtpJnbcTCZeabNLUJ05JL/a+uIcCC/ylQwkZXhoEbqsx7GOughTjMUon7GVJLD LzYgkz8672So2jI8m/4Q1XxFncSnS2R6BBybfiIWOeLpm2ppKS/AW3O2OgvU+hshVP4DTltGRITLS iLxx45ibabDLzXD7O52FzYUfZRpIPZI2uZdt3VnuI2oehmA+S7XK1dfpnT1SiJmhYELVRG5R+claI b4oIbe/A==; Original-Received: from cpc1-benw10-2-0-cust373.gate.cable.virginm.net ([77.98.219.118]:43473 helo=russet.org.uk) by cloud103.planethippo.com with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.86_1) (envelope-from ) id 1bJ6o3-000nc4-1k; Fri, 01 Jul 2016 23:21:03 +0100 In-Reply-To: <87furtccdv.fsf@metalevel.at> (Markus Triska's message of "Fri, 01 Jul 2016 22:49:16 +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:120269 Archived-At: Markus Triska writes: > phillip.lord@russet.org.uk (Phillip Lord) writes: > >> The following patch (attempts) to address the issue which is, >> unfortunately, a bit more extensive than the last. > > Your patch leads to the following regression though: > > 1) Download bc.el from: > > https://www.metalevel.at/ei/bc.el > > 2) emacs -Q bc.el > > 3) Press: C-M-x C-/ > > 4) Point is unexpectedly placed at the end of the buffer. > Without your patch, point is placed at the beginning. As an aside, probably would have been easier to include this in the original message, rather than add a link. bc.el looks like this: (let ((p (start-process "bc" (current-buffer) "bc"))) (process-send-string p "2^10\n") (goto-char (point-max))) The strange thing here is that it's not specifically an undo problem. Point doesn't move after eval-defun. You don't need to do undo to see the difference. This on the other hand: (let ((p (start-process "bc" (current-buffer) "bc"))) (process-send-string p "2^10\n") (sit-for 1) (goto-char (point-max))) Works fine. I will investigate. Phil