From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#31325: 27.0.50; PROPOSAL: introduce a new function to recenter without redisplaying the frame Date: Mon, 02 Jul 2018 18:18:20 +0300 Message-ID: <83y3etk6o3.fsf@gnu.org> References: <87po2gkxpi.fsf@gmail.com> <87sh57yrax.fsf@gmail.com> <83lgawmwup.fsf@gnu.org> <878t6wxbzr.fsf@gmail.com> <5B38994B.2010605@gmx.at> <87va9zxfhe.fsf@gmail.com> <83in5zkjsk.fsf@gnu.org> <87tvpiyjz6.fsf@gmail.com> <83fu12lwh2.fsf@gnu.org> <83efgmlvya.fsf@gnu.org> <87r2kmyikh.fsf@gmail.com> <7ac98ea5-23c8-456a-8c40-18c703bea617@default> <87o9fqy8tb.fsf@gmail.com> <87muvaxth1.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1530545587 15790 195.159.176.226 (2 Jul 2018 15:33:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 2 Jul 2018 15:33:07 +0000 (UTC) Cc: 31325@debbugs.gnu.org, monnier@iro.umontreal.ca To: John Shahid Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 02 17:33:03 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 1fa0p3-0003vX-Hz for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Jul 2018 17:33:01 +0200 Original-Received: from localhost ([::1]:33586 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fa0rA-0006QO-NR for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Jul 2018 11:35:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fa0bb-0002AM-FY for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2018 11:19:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fa0bW-0003xi-Md for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2018 11:19:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35817) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fa0bW-0003xc-IT for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2018 11:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fa0bW-00068D-DY for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2018 11:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Jul 2018 15:19: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.153054473023551 (code B ref 31325); Mon, 02 Jul 2018 15:19:02 +0000 Original-Received: (at 31325) by debbugs.gnu.org; 2 Jul 2018 15:18:50 +0000 Original-Received: from localhost ([127.0.0.1]:43714 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fa0bK-00067n-9S for submit@debbugs.gnu.org; Mon, 02 Jul 2018 11:18:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60119) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fa0bJ-00067a-Aj for 31325@debbugs.gnu.org; Mon, 02 Jul 2018 11:18:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fa0bD-0003ps-1u for 31325@debbugs.gnu.org; Mon, 02 Jul 2018 11:18:44 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fa0b6-0003nB-Gd; Mon, 02 Jul 2018 11:18:36 -0400 Original-Received: from [176.228.60.248] (port=4901 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fa0b5-00018Z-R7; Mon, 02 Jul 2018 11:18:36 -0400 In-reply-to: <87muvaxth1.fsf@gmail.com> (message from John Shahid on Mon, 02 Jul 2018 02:27:22 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:148095 Archived-At: > From: John Shahid > Cc: Eli Zaretskii , 31325@debbugs.gnu.org, monnier@iro.umontreal.ca > Date: Mon, 02 Jul 2018 02:27:22 +0000 > > Are you confusing redisplaying the window that is displaying the buffer > with clearing and redisplaying the entire tty frame ? This patch > addresses the latter. To be clear, `recenter' will redisplay the window > displaying the buffer and this patch doesn't change that behavior. Indeed, I think there's some confusion here. Recentering a window will always trigger redisplay of that window if the new point is out of view, or if enters the display margins. But it doesn't necessarily clear and redraw the entire frame. For the record: historically, 'recenter' always cleared the entire frame and drew it anew. Then, almost exactly 9 years ago, we changed the default behavior to clear and redraw frame only on TTYs, and introduced a variable, recenter-redisplay, to disable redrawing even of TTY frames. The current change goes a step further in the same direction: it modifies the behavior of non-interactive calls of 'recenter', such that even on a TTY it doesn't by default redraw the entire frame, unless the caller explicitly requests that. If not specifically requested, 'recenter' called non-interactively will just recenter (and trigger redisplay of the window which it recentered, if necessary). The rationale for this change is that the vast majority of non-interactive callers of 'recenter' have no reason to redraw the entire frame, and recenter-redisplay is a knob meant to control only the interactive behavior.