From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#31325: 27.0.50; PROPOSAL: introduce a new function to recenter without redisplaying the frame Date: Mon, 07 May 2018 21:37:06 -0400 Message-ID: References: <87po2gkxpi.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1525743366 20550 195.159.176.226 (8 May 2018 01:36:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 8 May 2018 01:36:06 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 31325@debbugs.gnu.org To: John Shahid Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 08 03:36: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 1fFrXu-0005F1-71 for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 May 2018 03:36:02 +0200 Original-Received: from localhost ([::1]:48891 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fFra1-0000ID-Bq for geb-bug-gnu-emacs@m.gmane.org; Mon, 07 May 2018 21:38:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fFrZv-0000Hz-NQ for bug-gnu-emacs@gnu.org; Mon, 07 May 2018 21:38:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fFrZq-00007I-RA for bug-gnu-emacs@gnu.org; Mon, 07 May 2018 21:38:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45466) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fFrZq-000075-NL for bug-gnu-emacs@gnu.org; Mon, 07 May 2018 21:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fFrZq-0001a7-7w for bug-gnu-emacs@gnu.org; Mon, 07 May 2018 21:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 May 2018 01:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31325 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31325-submit@debbugs.gnu.org id=B31325.15257434466038 (code B ref 31325); Tue, 08 May 2018 01:38:02 +0000 Original-Received: (at 31325) by debbugs.gnu.org; 8 May 2018 01:37:26 +0000 Original-Received: from localhost ([127.0.0.1]:53363 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fFrZG-0001ZK-6V for submit@debbugs.gnu.org; Mon, 07 May 2018 21:37:26 -0400 Original-Received: from pmta21.teksavvy.com ([76.10.157.36]:57218) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fFrZC-0001Z5-L2 for 31325@debbugs.gnu.org; Mon, 07 May 2018 21:37:24 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2FABAAI/vBa/7SpSC1cGgEBAQEBAgEBAQEIAQEBAYNEgVuZDYF5E3yVHguEbAKCVCE4FAECAQEBAQEBAgICaCiFKwEEAW4LBQsLDQEmBwsUGDEuhH4IqigaAogqgkiIJYIThBqKRwKYKgiWECKEfZBMgSUzIoFSMxoIMDuCRIJHjiIjkXgBAQ X-IPAS-Result: A2FABAAI/vBa/7SpSC1cGgEBAQEBAgEBAQEIAQEBAYNEgVuZDYF5E3yVHguEbAKCVCE4FAECAQEBAQEBAgICaCiFKwEEAW4LBQsLDQEmBwsUGDEuhH4IqigaAogqgkiIJYIThBqKRwKYKgiWECKEfZBMgSUzIoFSMxoIMDuCRIJHjiIjkXgBAQ X-IronPort-AV: E=Sophos;i="5.49,376,1520913600"; d="scan'208";a="30769283" Original-Received: from unknown (HELO fmsmemgm.homelinux.net) ([45.72.169.180]) by smtp.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 May 2018 21:37:14 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id F2550AEC95; Mon, 7 May 2018 21:37:06 -0400 (EDT) In-Reply-To: <87po2gkxpi.fsf@gmail.com> (John Shahid's message of "Tue, 01 May 2018 00:48:25 +0000") 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:146070 Archived-At: > This BUG is a continuation of this help-gnu-emacs mailing list > thread [1]. As mentioned in the thread, I ran into a terminal flickering > issue in flycheck which turns out to be caused by `recenter' > redisplaying the frame when `recenter-redisplay' value is either `t' or > `tty'. I agree with the arguments in the thread to maintain the backward > compatible behavior. Instead, I'm proposing one of the following > alternatives: Indeed, most/all uses from Elisp shouldn't redisplay. > 1. introduce a new lisp function for recentering and discourage the use > of `recenter' from lisp (i.e. declaring it `interactive-only'), or > 2. add a new `recenter-and-redisplay' and bound it to C-l > Also, Stefan's suggestion/possible solution: > 3. adding an argument to `recenter' to control the redisplay behavior Either of those is OK. The benefit of the 3rd is that it would likely "magically fix" 99% of the existing uses (I'm thinking of adding an optional argument which we could call `and-redisplay` which when non-nil tells recenter to do a redisplay, so all existing Elisp calls would be implicitly modified not to cause a redisplay). Stefan