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#23906: 25.0.95; Undo boundary after process output is not consistent Date: Wed, 06 Jul 2016 19:56:30 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1467827852 22107 80.91.229.3 (6 Jul 2016 17:57:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Jul 2016 17:57:32 +0000 (UTC) To: 23906@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 06 19:57:16 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 1bKr4T-0007bq-EL for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Jul 2016 19:57:13 +0200 Original-Received: from localhost ([::1]:35139 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKr4S-00056v-TK for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Jul 2016 13:57:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKr4M-00056m-Rf for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2016 13:57:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKr4I-00073Q-Fa for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2016 13:57:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55759) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKr4I-00073L-Bc for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2016 13:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bKr4I-0000No-6q for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2016 13:57: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: Wed, 06 Jul 2016 17:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23906 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14678278141456 (code B ref -1); Wed, 06 Jul 2016 17:57:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Jul 2016 17:56:54 +0000 Original-Received: from localhost ([127.0.0.1]:39863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bKr47-0000NN-4C for submit@debbugs.gnu.org; Wed, 06 Jul 2016 13:56:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35669) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bKr45-0000NA-K0 for submit@debbugs.gnu.org; Wed, 06 Jul 2016 13:56:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKr3w-00072I-9u for submit@debbugs.gnu.org; Wed, 06 Jul 2016 13:56:44 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:38487) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKr3w-000724-6l for submit@debbugs.gnu.org; Wed, 06 Jul 2016 13:56:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKr3t-0004TJ-Kw for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2016 13:56:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKr3o-00070p-FV for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2016 13:56:36 -0400 Original-Received: from metalevel.at ([78.46.218.83]:59533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKr3o-00070U-8e for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2016 13:56:32 -0400 Original-Received: from dawn.meta (localhost.localdomain [127.0.0.1]) by metalevel.at (Postfix) with ESMTP id A0B44A0097 for ; Wed, 6 Jul 2016 19:56:30 +0200 (CEST) Original-Received: by dawn.meta (Postfix, from userid 501) id D87C21A9C06A; Wed, 6 Jul 2016 19:56:30 +0200 (CEST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:120528 Archived-At: To reproduce this issue with emacs-25 git and cherry-picked commit 36e69bd82a0294b1f51d99a5eaf8e2c7661f7a16 from master, please do: 1) Download ediprolog.el from: https://www.metalevel.at/ediprolog/ediprolog.el 2) Download ceiled.pl from: https://www.metalevel.at/ei/ceiled.pl 3) Download simulans2.sh from: https://www.metalevel.at/ei/simulans2.sh and make it executable with: $ chmod +x simulans2.sh 4) Invoke Emacs with: emacs -Q ceiled.pl -fn "Bitstream Vera Sans Mono 15" \ --eval "(load \"$PWD/ediprolog.el\")" \ --eval "(setq ediprolog-program \"$PWD/simulans2.sh\")" \ --eval "(global-set-key [f9] 'ediprolog-dwim)" 5) To move point to the start of line 15, press: M-g M-g 15 RET 6) We are now ready for the recipe, showing that undo after process output is not consistent. The issue I want to show occurs about 1 out of 7 times on average. The steps we now repeat are two key presses: F9 C-/ In words, this is: "ediprolog-dwim, directly followed by undo". We repeat this over and over: F9 C-/ F9 C-/ F9 C-/ ... 7) Now the point: *Most* of the time, after undo, the buffer is exactly as it was before. But sometimes, about 1 out of 7 times, after undo is pressed, the characters "%@ " remain at the end of the buffer: %?- time(ceiled_square_root(2^10000, R)). %@ These three characters ("%@ ") are inserted by ediprolog before receiving process output, and in most cases removed after the undo. The issue in this case is not so much that the %@ appears in the buffer, but that it is not handled consistently. Most often (and preferably), a single undo removes both the process output _and_ the %@, but sometimes a single undo removes *only* the process output, and the %@ remains. The behaviour I desire is that C-/ consistently removes everything that was inserted in direct sequence, both the "%@ " _and_ the process output. Thank you for looking into this! All the best, Markus In GNU Emacs 25.0.95.4 (x86_64-apple-darwin15.5.0, X toolkit, Xaw scroll bars) of 2016-07-05 built on mt-imac Repository revision: e3b039d1a0e611d6619ed3ce67d125160d644ebc Windowing system distributor 'The X.Org Foundation', version 11.0.11502000 Configured using: 'configure --without-ns CFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix