From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#31115: 26.1; python shell flicker Date: Sat, 14 Apr 2018 10:42:12 -0400 Message-ID: <87lgdpkfy3.fsf@gmail.com> References: <4b3cf81a-bff1-2894-52ee-203782c4554b@easy-emacs.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1523716866 1407 195.159.176.226 (14 Apr 2018 14:41:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 14 Apr 2018 14:41:06 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: 31115@debbugs.gnu.org To: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 14 16:41:02 2018 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 1f7MMQ-0000E1-7l for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Apr 2018 16:41:02 +0200 Original-Received: from localhost ([::1]:39944 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f7MOW-0001RS-M4 for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Apr 2018 10:43:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f7MOP-0001Pg-QT for bug-gnu-emacs@gnu.org; Sat, 14 Apr 2018 10:43:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f7MOM-00037e-OI for bug-gnu-emacs@gnu.org; Sat, 14 Apr 2018 10:43:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44579) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f7MOM-00037Y-KS for bug-gnu-emacs@gnu.org; Sat, 14 Apr 2018 10:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f7MOM-0004ob-92 for bug-gnu-emacs@gnu.org; Sat, 14 Apr 2018 10:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Apr 2018 14:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31115 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31115-submit@debbugs.gnu.org id=B31115.152371694318461 (code B ref 31115); Sat, 14 Apr 2018 14:43:02 +0000 Original-Received: (at 31115) by debbugs.gnu.org; 14 Apr 2018 14:42:23 +0000 Original-Received: from localhost ([127.0.0.1]:52476 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f7MNi-0004nZ-5Z for submit@debbugs.gnu.org; Sat, 14 Apr 2018 10:42:22 -0400 Original-Received: from mail-io0-f172.google.com ([209.85.223.172]:43311) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f7MNg-0004nH-Am; Sat, 14 Apr 2018 10:42:20 -0400 Original-Received: by mail-io0-f172.google.com with SMTP id q84so13303052iod.10; Sat, 14 Apr 2018 07:42:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=O1uMghJj6px5B9hNyefhjTL2kAGWGLD90hibKdhff+8=; b=PRBU9Kc3VZIY+E+0WNWgUmO73uP1TlK85Hi4+0KEq0h5hFgGFfydpk7MhYiS8AFEM7 CqXk/J3vHbsT69FP3GHs08wjO/ZfrQIKgY41i4qqJbinTpjJ/6U7cGTvOafxVqUhgRBb fEdpYb4MUF+omOP82AoZENhyWyCh+NsORTbDkSTGkgfqIdMxL4Ia6zTcWREIyrYF4m24 R3TlTsqEGyA13D5WXppF72xSEtg61silU9Rp8H7aOsajnF1V+4JSze6kSA/ZJ3HXkY8c tZJqv3KCRUg7kVCk5knVhaxJ6kBVuINSdwZgJHICrAtRnFVTNzqj1OPUa3Qf+op/tELf g1Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=O1uMghJj6px5B9hNyefhjTL2kAGWGLD90hibKdhff+8=; b=TSPVMJ1MyTaPYG0LwTuNIsi9+fRuFvoVwjyNChHWA3/ryeVLD66fc7/d9J/IKBY8S7 sjQEAYDKRqnvSfasIA6Xj4JwaNxUYneZFKBJaGWjab4tJ8qJzBL3da1ObYiOJedFgQvH Rfgg/wrinnNC4r9cvGXvL9pTU/vd/0ILS3l0LBy2egL2mQzlNb2JEf2LPQ6/E4DCVomy 5vW8tTrMPZ2QJot4AHgX9T4V/YxSIbVVBy0LmfW9meNoG15wcj072j5UGvVTnctYyA7n UGuaN5sipysbRP6LvQlsAwODqHQGTD1SoueY8wIMdwruXha/yyudDXU9rBPc20ugkgTR E3qA== X-Gm-Message-State: ALQs6tB/skwvWiBIXbnY/rKGlDtVtsLc+Y/zg3PFqZM9gZPZnT5TDFCo gAAPOh/88/bAFbeaOQMUrtQQVA== X-Google-Smtp-Source: AIpwx4+dg0YS59HZe5Aj1h+UmLiPNXuMX7DscfxNfl6CTM/lSN0WNVBkZBsPa2ydTRZmRZB/+2jsTg== X-Received: by 10.107.51.207 with SMTP id z198mr18059206ioz.112.1523716934633; Sat, 14 Apr 2018 07:42:14 -0700 (PDT) Original-Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id g16-v6sm760883ita.0.2018.04.14.07.42.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 14 Apr 2018 07:42:13 -0700 (PDT) In-Reply-To: <4b3cf81a-bff1-2894-52ee-203782c4554b@easy-emacs.de> ("Andreas \=\?utf-8\?Q\?R\=C3\=B6hler\=22's\?\= message of "Thu, 12 Apr 2018 08:20:39 +0200") 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:145344 Archived-At: severity 31115 minor tags 31115 + confirmed quit Andreas R=C3=B6hler writes: > On 09.04.2018 20:19, Charles A. Roelli wrote: >> emacs -q >> M-x run-python RET C-x o >> >> Now press and hold down RET: a lot of prompts fly by, and as soon as >> point reaches the bottom of the window, there is some flicker where >> the cursor momentarily appears centered (as if `recenter' was run) and >> simultaneously all the text in the buffer blinks as if the whole >> screen was cleared and redrawn. In contrast, if you try this same >> recipe in a normal shell buffer from M-x shell, there won't be any >> flicker. > Can't reproduce with GNU Emacs 26.1 (build 1, i686-pc-linux-gnu, GTK+ > Version 3.14.5) of 2018-04-10 at Debian I can reproduce on Emacs 26, both lucid and GTK builds. Seems pretty straightforward: point reaches the end of buffer, so Emacs autoscrolls by half a window, then python-comint-postoutput-scroll-to-bottom kicks in and scrolls back to the bottom. >> A naive fix is to comment out the meat of python-comint-postoutput- >> scroll-to-bottom, and reevaluate it: >>=20 >> (defun python-comint-postoutput-scroll-to-bottom (output) >> "Faster version of `comint-postoutput-scroll-to-bottom'. >> Avoids `recenter' calls until OUTPUT is completely sent." >> ;; (when (and (not (string=3D "" output)) >> ;; (python-shell-comint-end-of-output-p >> ;; (ansi-color-filter-apply output))) >> ;; (comint-postoutput-scroll-to-bottom output)) >> output) Right, that help because Emacs no longer scrolls the window back to the bottom. Seems like (setq scroll-conservatively 1) works better to preserve the original behaviour (I feel like that's too easy, so I must be missing something though).