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:22:44 +0300 Message-ID: <83woudk6gr.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> <87sh52yiwf.fsf@gmail.com> <83d0w6ltm4.fsf@gnu.org> <87po06ye9q.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1530545877 8274 195.159.176.226 (2 Jul 2018 15:37:57 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 2 Jul 2018 15:37:57 +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:37:52 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 1fa0tj-00021W-Sd for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Jul 2018 17:37:52 +0200 Original-Received: from localhost ([::1]:33638 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fa0vr-0002BN-6o for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Jul 2018 11:40:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fa0gQ-00060M-SI for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2018 11:24:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fa0gM-0005v1-Qi for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2018 11:24:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35825) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fa0gM-0005ux-N8 for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2018 11:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fa0gM-0006G8-Db for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2018 11:24: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:24: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.153054499223999 (code B ref 31325); Mon, 02 Jul 2018 15:24:02 +0000 Original-Received: (at 31325) by debbugs.gnu.org; 2 Jul 2018 15:23:12 +0000 Original-Received: from localhost ([127.0.0.1]:43722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fa0fY-0006F0-5F for submit@debbugs.gnu.org; Mon, 02 Jul 2018 11:23:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33161) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fa0fW-0006Eo-6M for 31325@debbugs.gnu.org; Mon, 02 Jul 2018 11:23:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fa0fQ-0005dL-17 for 31325@debbugs.gnu.org; Mon, 02 Jul 2018 11:23:05 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59647) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fa0fK-0005bn-R8; Mon, 02 Jul 2018 11:22:58 -0400 Original-Received: from [176.228.60.248] (port=1196 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fa0fK-0001T9-8F; Mon, 02 Jul 2018 11:22:58 -0400 In-reply-to: <87po06ye9q.fsf@gmail.com> (message from John Shahid on Sun, 01 Jul 2018 18:58:09 +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:148097 Archived-At: > From: John Shahid > Cc: rudalics@gmx.at, 31325@debbugs.gnu.org, monnier@iro.umontreal.ca > Date: Sun, 01 Jul 2018 18:58:09 +0000 > > >From 3ac3d2d5f60593776563e27d4b406b2776de9b96 Mon Sep 17 00:00:00 2001 > From: John Shahid > Date: Sun, 1 Jul 2018 14:48:24 -0400 > Subject: [PATCH] Keep `recenter' behavior backward compatible when called > interactively > > * window.c (recenter): Change the interactive spec to always pass a > non-nil value to the REDISPLAY argument when called interactively. > * window.el (recenter-top-bottom): Make sure recenter's second > argument is non-nil everywhere. > * windows.texi (Textual Scrolling): Edit documentation of `recenter'. Bug number is missing. Also, we prefer to quite in documentation (as opposed to doc strings) 'like this', not `like this'. > --- a/doc/lispref/windows.texi > +++ b/doc/lispref/windows.texi > @@ -4154,7 +4154,8 @@ Textual Scrolling > @code{recenter} puts the line containing point in the middle of the > window. If @var{count} is @code{nil} and @var{redisplay} is > non-@code{nil}, this function may redraw the frame, according to the > -value of @code{recenter-redisplay}. > +value of @code{recenter-redisplay}. Interactive calls pass non-‘nil’ > +for @var{redisplay}. ^^ Two spaces between sentences. > -DEFUN ("recenter", Frecenter, Srecenter, 0, 2, "P", > +DEFUN ("recenter", Frecenter, Srecenter, 0, 2, "P\np", > doc: /* Center point in selected window and maybe redisplay frame. > With a numeric prefix argument ARG, recenter putting point on screen line ARG > relative to the selected window. If ARG is negative, it counts up from the > @@ -5910,7 +5910,7 @@ non-nil, also erase the entire frame and redraw it (when > `auto-resize-tool-bars' is set to `grow-only', this resets the > tool-bar's height to the minimum height needed); if > `recenter-redisplay' has the special value `tty', then only tty frames > -are redrawn. > +are redrawn. Interactive calls pass non-nil for REDISPLAY. I think this text is slightly more clear: Interactively, REDISPLAY is always non-nil. Thanks.