>>>> "Carsten" == Carsten Dominik
<dominik(a)astro.uva.nl> writes:
Carsten> I have a question about my IDLWAVE package. Some time
Carsten> ago (1.5years?) I submitted a patch to files.el
Carsten> (auto-mode-alist) which would turn on IDLWAVE mode
Carsten> automatically for files with the extension ".pro".
The patch is already in 21.2.x, but not yet in 21.1.x.
I think this is _wrong_, but since that alist is already way out of
hand, I don't see anything horrible about adding it to 21.1, too.
This is Vin Shelton's area, though, since it's 21.1.
Carsten> This is not the way it should be.
This _is_ the way it _should_ be.[1] I setq auto-mode-alist to a
literal list in .emacs because I'm sick of being surprised at the mode
that Emacs decides on, and worse, having it change after an update.
Until the popularity of SUMOs dies out, which I don't think will
happen, we just will have too many packages adding too many
extensions. We already have several conflicts noted in the source
code, and only one can win. ".pro" strikes me as a very likely
candidate for conflicts of that kind; at least ".idl" seems pretty
specific to IDL.
Carsten> (setq auto-mode-alist (cons ("\.[Pp][Rr][Oo]\\'" .
idlwave-mode)
Carsten> auto-mode-alist))
Please, do not do it this way. Make the change in files.el, until we
have a standard way to handle it in the package.
Footnotes:
[1] But first we should find a way to deal with this constructively
(offhand a hook in package installation which checks for the package's
auto-modes, and offers to install them, seems like the way to go).
--
University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Institute of Policy and Planning Sciences Tel/fax: +81 (298) 53-5091
_________________ _________________ _________________ _________________
What are those straight lines for? "XEmacs rules."