From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: Re: RMAIL, summary/message focus switching with `h' button Date: Thu, 13 Feb 2003 11:51:27 +0100 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <22787.1045129068@www8.gmx.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1045133625 15779 80.91.224.249 (13 Feb 2003 10:53:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 13 Feb 2003 10:53:45 +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 18jGw4-0003ul-00 for ; Thu, 13 Feb 2003 11:49:44 +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 18jGxt-00086D-03 for gnu-bug-gnu-emacs@m.gmane.org; Thu, 13 Feb 2003 05:51:37 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18jGxm-00085z-00 for bug-gnu-emacs@gnu.org; Thu, 13 Feb 2003 05:51:30 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18jGxk-00085j-00 for bug-gnu-emacs@gnu.org; Thu, 13 Feb 2003 05:51:29 -0500 Original-Received: from ns.suse.de ([213.95.15.193] helo=Cantor.suse.de) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18jGxk-00085e-00 for bug-gnu-emacs@gnu.org; Thu, 13 Feb 2003 05:51:28 -0500 Original-Received: from Hermes.suse.de (Hermes.suse.de [213.95.15.136]) by Cantor.suse.de (Postfix) with ESMTP id E4FB614519; Thu, 13 Feb 2003 11:51:27 +0100 (MET) Original-To: Alexander Pohoyda X-Yow: I'd like TRAINED SEALS and a CONVERTIBLE on my doorstep by NOON!! In-Reply-To: <22787.1045129068@www8.gmx.net> (Alexander Pohoyda's message of "Thu, 13 Feb 2003 10:37:48 +0100 (MET)") User-Agent: Gnus/5.090014 (Oort Gnus v0.14) Emacs/21.3.50 (ia64-suse-linux) 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:4455 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4455 Alexander Pohoyda writes: |> > |> + (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) You didn't test your change, did you? There is a paren missing now. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."