From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel,gmane.mail.mh-e.devel,gmane.emacs.gnus.general Subject: Re: default mode for email drafts Date: Wed, 07 Dec 2005 02:59:12 +0200 Organization: JURTA Message-ID: <87hd9lu1rn.fsf@jurta.org> References: <87r78wx3jd.fsf@escher.local.home> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1133921796 9348 80.91.229.2 (7 Dec 2005 02:16:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Dec 2005 02:16:36 +0000 (UTC) Cc: stephen.berman@gmx.net, mh-e-devel@lists.sourceforge.net, ding@gnus.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 07 03:16:31 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ejoqr-0003rK-SM for ged-emacs-devel@m.gmane.org; Wed, 07 Dec 2005 03:16:14 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ejor4-00067z-Ig for ged-emacs-devel@m.gmane.org; Tue, 06 Dec 2005 21:16:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ejoqr-00067m-V9 for emacs-devel@gnu.org; Tue, 06 Dec 2005 21:16:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ejoqr-00067X-DB for emacs-devel@gnu.org; Tue, 06 Dec 2005 21:16:13 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ejoqr-00067U-9S for emacs-devel@gnu.org; Tue, 06 Dec 2005 21:16:13 -0500 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ejorb-0001iv-TO; Tue, 06 Dec 2005 21:17:00 -0500 Original-Received: from mail.neti.ee (80-235-33-19-dsl.mus.estpak.ee [80.235.33.19]) by Relayhost1.neti.ee (Postfix) with ESMTP id 760CB1FB8; Wed, 7 Dec 2005 04:16:13 +0200 (EET) Original-To: rms@gnu.org In-Reply-To: (Reiner Steib's message of "Mon, 05 Dec 2005 15:36:59 +0100") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee 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:47097 gmane.mail.mh-e.devel:11013 gmane.emacs.gnus.general:61472 Archived-At: > False positives in `auto-mode-alist' cannot be avoided completely. > IIRC the policy is to make it work correctly in the common cases. > > BTW, when I do `C-x C-f .../drafts/drafts/1240 RET' with `emacs -Q', > I get: > > Debugger entered--Lisp error: (file-error "Searching for program" "no such file or directory" ".../drafts/drafts/install-mh") > [...] Perhaps `auto-mode-alist' shouldn't contain ("/drafts/[0-9]+\\'" . mh-letter-mode) in its default value. mh-e.el could add it after loading, e.g. by using a top-level form in mh-e.el: (setq auto-mode-alist (cons '("/drafts/[0-9]+\\'" . mh-letter-mode) auto-mode-alist)) I suppose the users who want to visit draft files in mh-letter mode already have (require 'mh-e) in .emacs or load it by other means. It seems it is the right thing to do because MH-E's ChangeLog has the following entry: * mh-comp.el (autoload): Don't set auto-mode-alist. This could screw things up for users that don't use MH-E (closes SF #1032353). This means that mh-letter-mode was removed from auto-mode-alist only in the autoloaded form in mh-comp.el, but not from files.el. So what about removing it from files.el too? Please see also for more information SF #1032353 and http://lists.gnu.org/archive/html/emacs-pretest-bug/2004-04/msg00023.html. -- Juri Linkov http://www.jurta.org/emacs/