From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: buffer-offer-save, gnus and mh-e Date: Sun, 17 Apr 2005 15:25:58 -0500 (CDT) Message-ID: <200504172025.j3HKPwV24187@raven.dms.auburn.edu> References: <200504171500.j3HF0Ha22225@raven.dms.auburn.edu> <21194.1113759889@olgas.newt.com> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1113769530 16585 80.91.229.2 (17 Apr 2005 20:25:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 17 Apr 2005 20:25:30 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 17 22:25:28 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DNGJt-0008EI-67 for ged-emacs-devel@m.gmane.org; Sun, 17 Apr 2005 22:24:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DNGNr-0000MR-E5 for ged-emacs-devel@m.gmane.org; Sun, 17 Apr 2005 16:28:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DNGNi-0000M0-Te for emacs-devel@gnu.org; Sun, 17 Apr 2005 16:28:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DNGNd-0000JM-J2 for emacs-devel@gnu.org; Sun, 17 Apr 2005 16:28:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DNGNd-0000J5-FO for emacs-devel@gnu.org; Sun, 17 Apr 2005 16:28:33 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DNGOG-0006ov-4z for emacs-devel@gnu.org; Sun, 17 Apr 2005 16:29:12 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id j3HKRl9N008095; Sun, 17 Apr 2005 15:27:47 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id j3HKPwV24187; Sun, 17 Apr 2005 15:25:58 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: wohler@newt.com In-reply-to: <21194.1113759889@olgas.newt.com> (message from Bill Wohler on Sun, 17 Apr 2005 10:44:49 -0700) 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:36064 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36064 Bill Wohler wrote: Just to be sure I'm understanding correctly, you'd like to see the following code in mh-e.el:(mh-folder-mode), right? (if (or mh-xemacs-flag (< emacs-major-version 22)) (setq buffer-offer-save t)) Please wait a little bit with this. After taking a closer look at the code involved, I realized that things are more complex than I thought. `compose-mail' is the wrong place to set `buffer-offer-save', since it can easily be bypassed. I believe that the various return values of (get mail-user-agent 'composefunc) should be handled separately. I do not know the various mail modes sufficiently to reliable take care of this and the backward and XEmacs compatibility issues complicate things and could make the involved code needlessly ugly. So I now believe that I will leave `buffer-offer-save' a non-permanent local. (But maybe someone else could volunteer to do it and solve all involved problems) It would be easier if one did not adhere as strictly to the principle that major modes never should touch permanent locals. Then everything that would be needed would be to add one single line in files.el. But Richard told me that there were absolutely no exceptions to that rule. Sincerely, Luc.