From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general,gmane.emacs.devel,gmane.mail.mh-e.devel Subject: Re: default mode for email drafts Date: Mon, 05 Dec 2005 15:36:59 +0100 Message-ID: References: <87r78wx3jd.fsf@escher.local.home> Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1133793599 28071 80.91.229.2 (5 Dec 2005 14:39:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 5 Dec 2005 14:39:59 +0000 (UTC) Cc: Stephen Berman , ding@gnus.org, emacs-devel@gnu.org, mh-e-devel@lists.sourceforge.net Original-X-From: ding-owner+m9997@lists.math.uh.edu Mon Dec 05 15:39:56 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EjHTb-00062W-02 for ding-account@gmane.org; Mon, 05 Dec 2005 15:37:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1EjHTW-0003hS-00; Mon, 05 Dec 2005 08:37:54 -0600 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EjHSm-0003hN-00 for ding@lists.math.uh.edu; Mon, 05 Dec 2005 08:37:08 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1EjHSj-0000l5-FL for ding@lists.math.uh.edu; Mon, 05 Dec 2005 08:37:08 -0600 Original-Received: from mail.uni-ulm.de ([134.60.1.1]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EjHSi-0001aH-00 for ; Mon, 05 Dec 2005 15:37:04 +0100 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.123]) by mail.uni-ulm.de (8.13.4/8.13.4) with ESMTP id jB5EaxOF020607; Mon, 5 Dec 2005 15:36:59 +0100 (MET) Original-Received: by bridgekeeper.physik.uni-ulm.de (Postfix, from userid 170) id 28CCB10D7D; Mon, 5 Dec 2005 15:36:59 +0100 (CET) Original-To: rms@gnu.org Mail-Followup-To: rms@gnu.org, Stephen Berman , ding@gnus.org, emacs-devel@gnu.org, mh-e-devel@lists.sourceforge.net X-Face: :6KQZ[nyoS_edmB.%gw-=)BYth^|2+Y+^cu%I$FSx!&>-'om>3H7A|M&n(V7fIo3P.;yo.b yq4$p;ZaBtkv)\}biaiBQe"mD}iib1AA@99-fZ7i*bLhNRVC&0Wkxg9)SH?oWc@{ In-Reply-To: (Richard M. Stallman's message of "Sun, 04 Dec 2005 16:19:04 -0500") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-DCC-meer-Metrics: gemini 1086; Body=5 Fuz1=5 Fuz2=5 X-Spam-Score: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61466 gmane.emacs.devel:46996 gmane.mail.mh-e.devel:11010 Archived-At: On Sun, Dec 04 2005, Richard M. Stallman wrote: > I visited with C-x C-f a file whose file-name is an integer and whose > immediate directory is named "drafts", and to my surprise I found > myself in mh-letter-mode. I was surprised because I not only don't > use mh-e but I don't even have MH installed on my system. I use Gnus > to read and send email messages, and Gnus has a special group for > drafts, and of course visiting a draft within Gnus DTRT. The problem > is that Gnus uses a file structure for drafts that matches the regexp > which auto-mode-alist associates exclusively with mh-letter-mode, > which takes effect when visiting drafts outside of Gnus. > > I think that Gnus should change the file name so that mh-e won't > be triggered. Is there any obstacle to this? Gnus uses "/drafts/[0-9]+" filenames at least since 1997. We can't change then [0-9]+ part in Gnus because the filenames need to be integers. Changing "/drafts/" might be possible but it break compatibility with previous versions. I'm quite sure it's not worth the trouble. Couldn't the regexp be made more specific to match only the MH files? [ Cc-ing mh-e-devel. ] 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") call-process(".../drafts/drafts/install-mh" nil t nil "-auto") apply(call-process ".../drafts/drafts/install-mh" nil t nil "-auto") mh-exec-cmd(".../drafts/drafts/install-mh" "-auto") mh-install("/home/dept/ste/.mh_profile" (file-error "Opening input file" "no such file or directory" "/home/dept/ste/.mh_profile")) mh-find-path() mh-letter-mode() set-auto-mode-0(mh-letter-mode nil) set-auto-mode() normal-mode(t) after-find-file(nil t) find-file-noselect-1(# ".../drafts/drafts/1240" nil nil ".../drafts/drafts/1240" (935129 64775)) find-file-noselect(".../drafts/drafts/1240" nil nil t) find-file(".../drafts/drafts/1240" t) call-interactively(find-file) Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/