From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alexander Pohoyda Newsgroups: gmane.emacs.bugs Subject: Re: RMAIL, summary/message focus switching with `h' button Date: Thu, 13 Feb 2003 10:37:48 +0100 (MET) Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <22787.1045129068@www8.gmx.net> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1045129118 1330 80.91.224.249 (13 Feb 2003 09:38:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 13 Feb 2003 09:38:38 +0000 (UTC) Cc: ttn@glug.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18jFmi-0000A8-00 for ; Thu, 13 Feb 2003 10:36:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18jFog-0001Av-02 for gnu-bug-gnu-emacs@m.gmane.org; Thu, 13 Feb 2003 04:38:02 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18jFoV-0001AN-00 for bug-gnu-emacs@gnu.org; Thu, 13 Feb 2003 04:37:51 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18jFoU-00019j-00 for bug-gnu-emacs@gnu.org; Thu, 13 Feb 2003 04:37:50 -0500 Original-Received: from mx0.gmx.de ([213.165.64.100] helo=mx0.gmx.net) by monty-python.gnu.org with smtp (Exim 4.10.13) id 18jFoT-00019S-00 for bug-gnu-emacs@gnu.org; Thu, 13 Feb 2003 04:37:49 -0500 Original-Received: (qmail 23744 invoked by uid 0); 13 Feb 2003 09:37:48 -0000 Original-To: Andreas Schwab X-Priority: 3 (Normal) X-Authenticated-Sender: #0014602519@gmx.net X-Authenticated-IP: [194.39.131.40] X-Mailer: WWW-Mail 1.6 (Global Message Exchange) X-Flags: 0001 Original-cc: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4452 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4452 > |> + (let ((was-in-summary) (eq major-mode 'rmail-summary-mode)) > ^ > This paren is misplaced, see above. Right. My bad. Thanks. Corrected patch: --- rmailsum.el.orig Sun Jan 5 23:01:28 2003 +++ rmailsum.el Sun Jan 5 23:40:13 2003 @@ -66,7 +66,10 @@ (defun rmail-summary () "Display a summary of all messages, one line per message." (interactive) - (rmail-new-summary "All" '(rmail-summary) nil)) + (let ((was-in-summary (eq major-mode 'rmail-summary-mode)) + (rmail-new-summary "All" '(rmail-summary) nil) + ;; Swap the focus. + (if was-in-summary (other-window 1)))) ;;;###autoload (defun rmail-summary-by-labels (labels) -- Alexander Pohoyda