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#32839: 27.0.50; recenter doesn't redisplay Date: Tue, 25 Sep 2018 23:08:04 +0300 Message-ID: <83lg7p8hnf.fsf@gnu.org> References: <8736txjvkg.fsf@mail.linkov.net> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1537906028 25841 195.159.176.226 (25 Sep 2018 20:07:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 25 Sep 2018 20:07:08 +0000 (UTC) Cc: 32839@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 25 22:07:04 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 1g4tbr-0006bg-Of for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Sep 2018 22:07:03 +0200 Original-Received: from localhost ([::1]:55084 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g4tdy-0002y3-2p for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Sep 2018 16:09:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g4tdr-0002xv-86 for bug-gnu-emacs@gnu.org; Tue, 25 Sep 2018 16:09:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g4tdm-00054r-Sq for bug-gnu-emacs@gnu.org; Tue, 25 Sep 2018 16:09:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49828) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g4tdm-00052q-NX for bug-gnu-emacs@gnu.org; Tue, 25 Sep 2018 16:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g4tdm-0001i0-EV for bug-gnu-emacs@gnu.org; Tue, 25 Sep 2018 16:09: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: Tue, 25 Sep 2018 20:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32839 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32839-submit@debbugs.gnu.org id=B32839.15379061076522 (code B ref 32839); Tue, 25 Sep 2018 20:09:02 +0000 Original-Received: (at 32839) by debbugs.gnu.org; 25 Sep 2018 20:08:27 +0000 Original-Received: from localhost ([127.0.0.1]:54086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g4tdC-0001h7-NY for submit@debbugs.gnu.org; Tue, 25 Sep 2018 16:08:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33801) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g4td9-0001gr-UZ for 32839@debbugs.gnu.org; Tue, 25 Sep 2018 16:08:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g4td0-0004Ly-Ds for 32839@debbugs.gnu.org; Tue, 25 Sep 2018 16:08:18 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37771) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g4td0-0004Ls-9y; Tue, 25 Sep 2018 16:08:14 -0400 Original-Received: from [176.228.60.248] (port=3538 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1g4tcy-0002Wd-PG; Tue, 25 Sep 2018 16:08:14 -0400 In-reply-to: <8736txjvkg.fsf@mail.linkov.net> (message from Juri Linkov on Tue, 25 Sep 2018 22:11:59 +0300) 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:150667 Archived-At: > From: Juri Linkov > Date: Tue, 25 Sep 2018 22:11:59 +0300 > > 1. Eval: > > (setq recenter-redisplay t) > > (add-to-list 'window-scroll-functions > (lambda (window display-start) > (message "window-scroll-functions %S %S %S" > window (window-buffer window) display-start))) > > 2. Open *Messages* in adjacent window with 'C-h e' > > 3. Put point in *scratch* preferably not on the first line > > 4. Type 'C-l' (recenter-top-bottom) with different arguments, e.g. > C-0 C-l > C-1 C-l > C-2 C-l > etc. > > The *Messages* buffer is not refreshed to show new logged messages > from the calls of the window-scroll-functions. > > This means that C-l (recenter-top-bottom) doesn't redisplay the frame - > which is strange since it calls 'recenter' with non-nil arg REDISPLAY. 'recenter' doesn't redisplay the frame, it only redisplays the window which you recenter. > 5. Typein *scratch* again: C-l C-l C-l > only when C-l puts point to the center of the window, > the *Messages* buffer gets redisplayed (but then for some reason > window-scroll-functions is not called in this case). That's a feature: you set recenter-redisplay to t, which causes a complete redraw of the frame when you type C-l. And window-scroll-functions aren't called when the window is not scrolled. Bottom line: I'm unsure what is a bug here, if any.