From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark Lillibridge Newsgroups: gmane.emacs.bugs Subject: bug#9831: narrowing the bug down Date: Sat, 22 Oct 2011 13:45:05 -0700 Message-ID: References: Reply-To: mark.lillibridge@hp.com NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1319316352 17021 80.91.229.12 (22 Oct 2011 20:45:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 22 Oct 2011 20:45:52 +0000 (UTC) To: 9831@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 22 22:45:48 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RHiRv-00078Z-8u for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Oct 2011 22:45:47 +0200 Original-Received: from localhost ([::1]:44229 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHiRu-0006xP-EV for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Oct 2011 16:45:46 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHiRq-0006xD-4S for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2011 16:45:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RHiRo-0002mr-UW for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2011 16:45:42 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHiRo-0002mm-So for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2011 16:45:40 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RHiT8-0008F6-4L for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2011 16:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mark Lillibridge Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Oct 2011 20:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9831 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9831-submit@debbugs.gnu.org id=B9831.131931639831652 (code B ref 9831); Sat, 22 Oct 2011 20:47:01 +0000 Original-Received: (at 9831) by debbugs.gnu.org; 22 Oct 2011 20:46:38 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RHiSj-0008ER-Op for submit@debbugs.gnu.org; Sat, 22 Oct 2011 16:46:38 -0400 Original-Received: from gundega.hpl.hp.com ([192.6.19.190]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RHiSe-0008EF-PA for 9831@debbugs.gnu.org; Sat, 22 Oct 2011 16:46:34 -0400 Original-Received: from mailhub-pa1.hpl.hp.com (mailhub-pa1.hpl.hp.com [15.25.115.25]) by gundega.hpl.hp.com (8.14.4/8.14.4/HPL-PA Relay) with ESMTP id p9MKj7FL001424 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for <9831@debbugs.gnu.org>; Sat, 22 Oct 2011 13:45:08 -0700 Original-Received: from ts-rhel5 (ts-rhel5.hpl.hp.com [15.25.118.27]) by mailhub-pa1.hpl.hp.com (8.14.3/8.14.3/HPL-PA Hub) with ESMTP id p9MKj51s006052; Sat, 22 Oct 2011 13:45:06 -0700 In-reply-to: (message from Mark Lillibridge on Sat, 22 Oct 2011 13:06:18 -0700) X-Scanned-By: MIMEDefang 2.71 on 15.0.48.190 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 22 Oct 2011 16:47:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:53030 Archived-At: Some further tracking reveals: The problem is in rmail-update-summary; rmail-update-summary calls (indirectly) rmail-summary in the normal unfiltered summary case: (defun rmail-update-summary (&rest ignore) (apply (car rmail-summary-redo) (cdr rmail-summary-redo))) (defun rmail-summary () "Display a summary of all messages, one line per message." (interactive) (rmail-new-summary "All" '(rmail-summary) nil) (unless (get-buffer-window rmail-buffer) (rmail-summary-beginning-of-message))) Commenting out the last two lines of the above makes the bug go away (at least for unfiltered summaries): (defun rmail-summary () "Display a summary of all messages, one line per message." (interactive) (rmail-new-summary "All" '(rmail-summary) nil) ) ; (unless (get-buffer-window rmail-buffer) ; (rmail-summary-beginning-of-message))) A bit further tracking shows that the last call is the culprit: (defun rmail-summary-beginning-of-message () "Show current message from the beginning." (interactive) (rmail-summary-show-message 'BEG)) (defun rmail-summary-show-message (where) "Show current mail message. Position it according to WHERE which can be BEG or END" (if (and (one-window-p) (not pop-up-frames)) ;; If there is just one window, put the summary on the top. (let ((buffer rmail-buffer)) (split-window (selected-window) rmail-summary-window-size) (select-window (frame-first-window)) (rmail-pop-to-buffer rmail-buffer) ;; If pop-to-buffer did not use that window, delete that ;; window. (This can happen if it uses another frame.) (or (eq buffer (window-buffer (next-window (frame-first-window)))) (delete-other-windows))) (rmail-pop-to-buffer rmail-buffer)) (cond ((eq where 'BEG) (goto-char (point-min)) (search-forward "\n\n")) ((eq where 'END) (goto-char (point-max)) (recenter (1- (window-height)))) ) (rmail-pop-to-buffer rmail-summary-buffer)) I'm not sure how to go about fixing this; extra dynamically-bound variable that stops rmail-update-summary called functions from displaying the summary in a window? - Mark