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 17:13:43 +0100 (CET) Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <200302131613.h1DGDhTZ042034@oak.pohoyda.family> References: <22787.1045129068@www8.gmx.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1045153650 27939 80.91.224.249 (13 Feb 2003 16:27:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 13 Feb 2003 16:27:30 +0000 (UTC) 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 18jLyE-00069g-00 for ; Thu, 13 Feb 2003 17:12:18 +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 18jM0C-0006TL-01 for gnu-bug-gnu-emacs@m.gmane.org; Thu, 13 Feb 2003 11:14:20 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18jLzg-0005aL-00 for bug-gnu-emacs@gnu.org; Thu, 13 Feb 2003 11:13:48 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18jLzb-0005S3-00 for bug-gnu-emacs@gnu.org; Thu, 13 Feb 2003 11:13:44 -0500 Original-Received: from pop.gmx.de ([213.165.64.20] helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.10.13) id 18jLzY-0005Ih-00 for bug-gnu-emacs@gnu.org; Thu, 13 Feb 2003 11:13:41 -0500 Original-Received: (qmail 18163 invoked by uid 0); 13 Feb 2003 16:13:39 -0000 Original-Received: from internet-cafe-227.sapinternetcafe.de (HELO oak.pohoyda.family) (155.56.24.227) by mail.gmx.net (mp016-rz3) with SMTP; 13 Feb 2003 16:13:39 -0000 Original-Received: from oak.pohoyda.family (oak.pohoyda.family [127.0.0.1]) by oak.pohoyda.family (8.12.6/8.12.6) with ESMTP id h1DGDilX042037 for ; Thu, 13 Feb 2003 17:13:44 +0100 (CET) (envelope-from apog@oak.pohoyda.family) Original-Received: (from apog@localhost) by oak.pohoyda.family (8.12.6/8.12.6/Submit) id h1DGDhTZ042034; Thu, 13 Feb 2003 17:13:43 +0100 (CET) Original-To: bug-gnu-emacs@gnu.org In-reply-to: (message from Andreas Schwab on Thu, 13 Feb 2003 11:51:27 +0100) 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:4459 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4459 Sorry, quite busy at work. This should be OK. --- 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