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: RMAIL, summary/message focus switching with `h' button Date: Wed, 12 Feb 2003 22:13:14 +0100 (CET) Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <200302122113.h1CLDEVI000599@oak.pohoyda.family> 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 1045085952 29573 80.91.224.249 (12 Feb 2003 21:39:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 12 Feb 2003 21:39:12 +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 18j4Um-0007AE-00 for ; Wed, 12 Feb 2003 22:32:45 +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 18j4W2-0002BR-07 for gnu-bug-gnu-emacs@m.gmane.org; Wed, 12 Feb 2003 16:34:02 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18j4Vc-0001pK-00 for bug-gnu-emacs@gnu.org; Wed, 12 Feb 2003 16:33:36 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18j4VX-0001fN-00 for bug-gnu-emacs@gnu.org; Wed, 12 Feb 2003 16:33:31 -0500 Original-Received: from mail.gmx.net ([213.165.65.60]) by monty-python.gnu.org with smtp (Exim 4.10.13) id 18j4VO-0001YU-00 for bug-gnu-emacs@gnu.org; Wed, 12 Feb 2003 16:33:22 -0500 Original-Received: (qmail 23430 invoked by uid 0); 12 Feb 2003 21:33:21 -0000 Original-Received: from p508BE736.dip.t-dialin.net (HELO oak.pohoyda.family) (80.139.231.54) by mail.gmx.net (mp008-rz3) with SMTP; 12 Feb 2003 21:33:21 -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 h1CLDEsN000602 for ; Wed, 12 Feb 2003 22:13:15 +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 h1CLDEVI000599; Wed, 12 Feb 2003 22:13:14 +0100 (CET) Original-To: 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:4440 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4440 Hi, As a user of Gnus, I'm used to switch the focus (switch-to-buffer) typing `h'. This is fixed with the following patch. --- rmailsum.el.orig Sun Jan 5 23:01:28 2003 +++ rmailsum.el Sun Jan 5 23:40:13 2003 @@ -66,7 +66,13 @@ (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) + (if (eq major-mode 'rmail-summary-mode) + (setq was-in-summary t)) + (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