From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: 3 bugs in Rmail Date: Mon, 10 Jan 2011 15:02:31 -0500 Message-ID: <871v4kzfvs.fsf@stupidchicken.com> References: <8362twk3js.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1294689841 26344 80.91.229.12 (10 Jan 2011 20:04:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 10 Jan 2011 20:04:01 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 10 21:03:56 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PcNy3-0000fM-04 for ged-emacs-devel@m.gmane.org; Mon, 10 Jan 2011 21:03:51 +0100 Original-Received: from localhost ([127.0.0.1]:52964 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcNy2-00062k-88 for ged-emacs-devel@m.gmane.org; Mon, 10 Jan 2011 15:03:50 -0500 Original-Received: from [140.186.70.92] (port=53632 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcNxo-0005tL-Lz for emacs-devel@gnu.org; Mon, 10 Jan 2011 15:03:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PcNwn-0000gG-Ft for emacs-devel@gnu.org; Mon, 10 Jan 2011 15:02:34 -0500 Original-Received: from vm-emlprdomr-05.its.yale.edu ([130.132.50.146]:53325) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PcNwn-0000gC-Du; Mon, 10 Jan 2011 15:02:33 -0500 Original-Received: from furball (dhcp128036014187.central.yale.edu [128.36.14.187]) (authenticated bits=0) by vm-emlprdomr-05.its.yale.edu (8.14.4/8.14.4) with ESMTP id p0AK2Uae001921 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 10 Jan 2011 15:02:31 -0500 Original-Received: by furball (Postfix, from userid 1000) id 2A762161EB2; Mon, 10 Jan 2011 15:02:31 -0500 (EST) In-Reply-To: <8362twk3js.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 10 Jan 2011 20:37:59 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.146 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:134415 Archived-At: Eli Zaretskii writes: > http://lists.gnu.org/archive/html/help-gnu-emacs/2011-01/msg00315.html In mail-mode, C-c C-c deletes the window and returns to the Rmail buffer because of this specialized code in mail-bury: (with-current-buffer (window-buffer (next-window (selected-window) 'not)) (setq rmail-flag (eq major-mode 'rmail-mode)) ...) (if rmail-flag ;; If the Rmail buffer has a summary, show that. (if summary-buffer (switch-to-buffer summary-buffer) (delete-window)) (switch-to-buffer newbuf)))))) So, one solution is to add this to message-bury, or make message-bury an alias for mail-bury. But this code doesn't seem terribly clean. A better alternative may be to specify a `mail-bury-function' variable, let Rmail set that variable, and change both mail-mode and message-mode to respect `mail-bury-function'. Anyone have any better ideas?