From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#32839: 27.0.50; recenter doesn't redisplay Date: Sun, 30 Sep 2018 22:46:47 +0300 Organization: LINKOV.NET Message-ID: <87murysr88.fsf@mail.linkov.net> References: <8736txjvkg.fsf@mail.linkov.net> <83lg7p8hnf.fsf@gnu.org> <87va6tb8lo.fsf@mail.linkov.net> <83k1n895qv.fsf@gnu.org> <87tvmbq2pp.fsf@mail.linkov.net> <835zyr8mn8.fsf@gnu.org> <875zyqwnrb.fsf@mail.linkov.net> <83k1n66t0w.fsf@gnu.org> <87k1n3c0vo.fsf@mail.linkov.net> <838t3j5wto.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1538337799 847 195.159.176.226 (30 Sep 2018 20:03:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 30 Sep 2018 20:03:19 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 32839@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 30 22:03:15 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 1g6hvv-000070-81 for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Sep 2018 22:03:15 +0200 Original-Received: from localhost ([::1]:57160 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6hy1-0007Vo-U2 for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Sep 2018 16:05:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6hxk-0007T2-Sv for bug-gnu-emacs@gnu.org; Sun, 30 Sep 2018 16:05:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g6hxg-00036N-Rk for bug-gnu-emacs@gnu.org; Sun, 30 Sep 2018 16:05:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56025) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g6hxf-00034d-92 for bug-gnu-emacs@gnu.org; Sun, 30 Sep 2018 16:05:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g6hxf-00043P-2r for bug-gnu-emacs@gnu.org; Sun, 30 Sep 2018 16:05:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 Sep 2018 20:05:03 +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.153833787515523 (code B ref 32839); Sun, 30 Sep 2018 20:05:03 +0000 Original-Received: (at 32839) by debbugs.gnu.org; 30 Sep 2018 20:04:35 +0000 Original-Received: from localhost ([127.0.0.1]:60279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g6hxD-00042J-0R for submit@debbugs.gnu.org; Sun, 30 Sep 2018 16:04:35 -0400 Original-Received: from pop.dreamhost.com ([64.90.62.162]:59722 helo=pdx1-sub0-mail-a9.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g6hxB-00042A-QA for 32839@debbugs.gnu.org; Sun, 30 Sep 2018 16:04:34 -0400 Original-Received: from pdx1-sub0-mail-a9.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a9.g.dreamhost.com (Postfix) with ESMTP id 62F027E426; Sun, 30 Sep 2018 13:04:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=5z7RLKZZt15QOYIM02dIjii/rq0=; b= M8Q6Yo622L4hAj9d3/a5J0ppt4dS0bWok49VCugB3EWDi838/LdXkCZZ0298XFqo 9b9d5142xyyIcMJWuXCqK/dIWJscLW54n0OOTWq6eXyBIELbOOVPmV0ObwVp01xW L9UNc4BoBr5ZfoduIoBq7fz74OYaHlMgeSRvqfqt18g= Original-Received: from localhost.linkov.net (m91-129-107-184.cust.tele2.ee [91.129.107.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a9.g.dreamhost.com (Postfix) with ESMTPSA id 58E3080B4E; Sun, 30 Sep 2018 13:04:32 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a9 X-DH-BACKEND: pdx1-sub0-mail-a9 In-Reply-To: <838t3j5wto.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 30 Sep 2018 09:22:11 +0300") 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:150840 Archived-At: >> I grepped for window-scroll-functions, and see that the current situation >> is quite bad: >> >> 1. tabulated-list-window-scroll-function is not called on 'C-u -1 C-l' >> when the last window line is fully visible, so it doesn't adjust >> the width for display-line-numbers in this case. > > A bug report with a recipe would be appreciated. The recipe is essentially the same as for this bug report, but more complicated. >> probably at the same time when post-command-hook is called. > > That hook is not called from the display code. But in any case, if > post-command-hook is what you want, just use it. Why do we need > another hook at the same place? It sounds redundant. If window-scroll-functions can't be fixed, then indeed a workaround is to remember an old value of window-start in pre-command-hook, and compare it with a new value of window-start in post-command-hook.