From: Juri Linkov <juri@jurta.org>
Cc: stephen.berman@gmx.net, mh-e-devel@lists.sourceforge.net,
ding@gnus.org, emacs-devel@gnu.org
Subject: Re: default mode for email drafts
Date: Wed, 07 Dec 2005 02:59:12 +0200 [thread overview]
Message-ID: <87hd9lu1rn.fsf@jurta.org> (raw)
In-Reply-To: <v9zmnfsj90.fsf@marauder.physik.uni-ulm.de> (Reiner Steib's message of "Mon, 05 Dec 2005 15:36:59 +0100")
> 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/
next prev parent reply other threads:[~2005-12-07 0:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87r78wx3jd.fsf@escher.local.home>
2005-12-04 21:19 ` default mode for email drafts Richard M. Stallman
2005-12-05 14:36 ` Reiner Steib
2005-12-06 1:43 ` Richard M. Stallman
2005-12-06 21:55 ` Richard M. Stallman
2005-12-07 0:59 ` Juri Linkov [this message]
2005-12-07 3:11 ` Stefan Monnier
2005-12-07 19:03 ` Xavier Maillard
2005-12-07 22:58 ` Richard M. Stallman
2005-12-08 1:14 ` Bill Wohler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87hd9lu1rn.fsf@jurta.org \
--to=juri@jurta.org \
--cc=ding@gnus.org \
--cc=emacs-devel@gnu.org \
--cc=mh-e-devel@lists.sourceforge.net \
--cc=stephen.berman@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.