From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#15957: 24.3.50; Follow mode scrolling broken on Emacs trunk Date: Sat, 23 Nov 2013 12:58:47 +0100 Message-ID: <52909877.1070203@gmx.at> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1385208018 15455 80.91.229.3 (23 Nov 2013 12:00:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Nov 2013 12:00:18 +0000 (UTC) Cc: 15957@debbugs.gnu.org To: Anders Lindgren Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 23 13:00:22 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VkBss-0007zJ-8j for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Nov 2013 13:00:22 +0100 Original-Received: from localhost ([::1]:43179 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VkBsr-0005fm-JZ for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Nov 2013 07:00:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42730) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VkBsh-0005fH-P5 for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2013 07:00:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VkBsa-0000Uf-F0 for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2013 07:00:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53755) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VkBsa-0000Tk-CI for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2013 07:00:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VkBsY-0000vP-Dz for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2013 07:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Nov 2013 12:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15957 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15957-submit@debbugs.gnu.org id=B15957.13852079443450 (code B ref 15957); Sat, 23 Nov 2013 12:00:02 +0000 Original-Received: (at 15957) by debbugs.gnu.org; 23 Nov 2013 11:59:04 +0000 Original-Received: from localhost ([127.0.0.1]:39539 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VkBrb-0000tZ-2Z for submit@debbugs.gnu.org; Sat, 23 Nov 2013 06:59:03 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:62983) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VkBrX-0000t2-Ae for 15957@debbugs.gnu.org; Sat, 23 Nov 2013 06:59:00 -0500 Original-Received: from [62.47.47.218] ([62.47.47.218]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0Ma1pn-1W5ytv2w63-00LnqS for <15957@debbugs.gnu.org>; Sat, 23 Nov 2013 12:58:52 +0100 In-Reply-To: X-Provags-ID: V03:K0:KGPISzMlPyT2UjfatAr+tMrVAdZ9cQVC+gUPArfEgCmux1hFOyP jEGPHOAgL0vLDLuVnGUkJ2NcjuzGE0zW3x/WuRLdntqBqZFmn3cTyo94UPu+3elwMAi3iTZ Mpkt7JDG1n9x6CZLFArXTKe4OUyI6OTST6BNe3cVRRhRZEj9vJctpAXZ2ujSD1BjwFJEkOF lvUgTzUEXbEtNS1EQiUdQ== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:80877 Archived-At: Hi Anders > Scrolling multiple pages when Follow mode is enabled sometimes fails. > > Steps to repeat: > > Emacs -Q > C-h t > ESC : (set-frame-size (selected-frame) 200 70) RET Is this really necessary? 70 lines means I can't see my echo area any more. > M-x follow-delete-other-windows-and-split RET > C-c . C-v > > The intent is to scroll the entire document two pages down, the left > window should still be selected (this causes Follow mode to arrange the > right window after it). Instead, the right window is selected, Can you tell when and where the window on the right is selected? > which causes > the left to be arranged after it, effectively undoing the scroll. IIUC `follow-scroll-up' should select the proper window via (let* ((windows (follow-all-followers)) (end (window-end (car (reverse windows))))) (if (eq end (point-max)) (signal 'end-of-buffer nil) (select-window (car windows)) which seems to imply that `follow-all-followers' doesn't return what it is supposed to. Am I correct that the first window returned by the latter should be `frame-first-window'? In that case try to replace the last line of `follow-all-followers' by something like (prog1 (setq windows (sort windows 'follow--window-sorter)) (unless (eq (car windows) (frame-first-window (window-frame win))) (error "Bad windows %s" windows))))) and maybe this way we can find out whether the problem is there. > The problem seems to be sometimes intermittent, sometimes the scroll works, > sometimes it don't. > > An interesting effect is that the problem only occurs when > follow-scroll-up is bound to a key. When issuing M-x follow-scroll-up > RET, the command seems to be working properly. I have no idea why this could change the course of things because ARG should be nil in both cases. > By the way, I'm the original author of Follow mode, even tough I haven't > touched it for many years. I suppose you should touch it again ;-) martin