From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/29558 Path: main.gmane.org!not-for-mail From: Daniel Pittman Newsgroups: gmane.emacs.gnus.general Subject: [BUG] 'gnus-configure-windows' makes cursor jump about :/ Date: 17 Mar 2000 22:09:04 +1100 Organization: Here, there and everywhere... Sender: owner-ding@hpc.uh.edu Message-ID: <87g0tpzwdr.fsf@inanna.danann.net> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035166209 3394 80.91.224.250 (21 Oct 2002 02:10:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:10:09 +0000 (UTC) Keywords: visible, buffer, xemacs, window-start, group Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by mailhost.sclp.com (Postfix) with ESMTP id 3DEBAD051E for ; Fri, 17 Mar 2000 06:22:02 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id FAB30457; Fri, 17 Mar 2000 05:21:45 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 17 Mar 2000 05:20:57 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id FAA03520 for ; Fri, 17 Mar 2000 05:20:45 -0600 (CST) Original-Received: from melancholia.danann.net (melancholia.danann.net [203.36.211.210]) by mailhost.sclp.com (Postfix) with ESMTP id 0C540D051E for ; Fri, 17 Mar 2000 06:20:51 -0500 (EST) Original-Received: from inanna.danann.net (inanna.danann.net [203.36.211.216]) by melancholia.danann.net (Postfix) with ESMTP id B54ED2A8EF for ; Fri, 17 Mar 2000 22:20:47 +1100 (EST) Original-Received: by inanna.danann.net (Postfix, from userid 1000) id 1DF7028005; Fri, 17 Mar 2000 22:20:40 +1100 (EST) Original-To: ding@gnus.org X-Homepage: http://danann.net/ X-spies: fissionable Ruby Ridge cracking White Water Kennedy explosion encryption Ortega arrangements Albania Lon Horiuchi genetic New World Order NSA [Hello to all my fans in domestic surveillance] Original-Lines: 41 User-Agent: Gnus/5.0804 (Gnus v5.8.4) XEmacs/21.2 (Iris) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:29558 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:29558 I am running pGnus from CVS, built (and updated) at Fri Mar 17 10:45:44 EST 2000, under XEmacs 21.2.31. The issue I have found is that the cursor in the group buffer can jump, caused by code in 'gnus-configure-windows'. The issue is that when 'gnus-configure-windows' calls 'delete-other-windows', and the next unread group is not visible at present[1], things go wrong. Under XEmacs, 'delete-other-windows' restores the starting line of the current buffer to the value of 'window-start' when it is called. Unfortunately, in the case I describe, the selected group is /not/ visible in the buffer when the position described by 'window-start' is visible. As a result, XEmacs politely makes the (now outdated) position visible, unconditionally. This has the side effect of making (point) off-screen, so that is politely dropped right into the middle of the buffer. This is, obviously, irritating. I have worked around this by adding a call of '(sit-for 0)' to the code, to force redisplay to occur and thus 'window-start' to be updated. This isn't particularly clean, I think, so a better solution is probably available. I am happy to test any fixes - I can reproduce this 100% here. Daniel Footnotes: [1] I have all groups, even those without unread mail, visible so this is not an uncommon situation for me. -- Paperwork is the embalming fluid of bureaucracy, maintaining an appearance of life where none exists. -- Robert J. Meltzer