[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#15847: closed (24.3.50; auto-mode-alist: Tweak doc

From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#15847: closed (24.3.50; auto-mode-alist: Tweak docstring)
Date: Fri, 15 Nov 2013 04:42:03 +0000

Your message dated Fri, 15 Nov 2013 10:10:42 +0530
with message-id <address@hidden>
and subject line Re: bug#15847: 24.3.50; auto-mode-alist: Tweak docstring
has caused the debbugs.gnu.org bug report #15847,
regarding 24.3.50; auto-mode-alist: Tweak docstring
to be marked as done.

(If you believe you have received this mail in error, please contact

15847: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15847
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.3.50; auto-mode-alist: Tweak docstring Date: Sun, 10 Nov 2013 09:46:12 +0530

perl-mode wasn't activated with just the first line below (on my perl
file).  It took sometime to figure out that `interpreter-mode-alist' is
taking precedence.

    ;; Use cperl-mode by default
    (setcdr (rassq 'perl-mode auto-mode-alist) 'cperl-mode)
    (setcdr (rassq 'perl-mode interpreter-mode-alist) 'cperl-mode)


C-h v auto-mode-alist says this

    See also `interpreter-mode-alist', which detects executable script
    modes based on the interpreters they specify to run, and
    `magic-mode-alist', which determines modes based on file contents.

Instead, of "See also", it should specifically say that
`interpreter-mode-alist' takes precedence.

(Btw, seeing other variales don't help either.  Please update docstrings
for `interpreter-mode-alist' and `magic-mode-alist' with their relative

NB: The info entry for `auto-mode-alist' seems to talk about the order.

In GNU Emacs (i686-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2013-11-09 on debian-6.05
Bzr revision: 115051 address@hidden
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
System Description:     Debian GNU/Linux 6.0.5 (squeeze)

--- End Message ---
--- Begin Message --- Subject: Re: bug#15847: 24.3.50; auto-mode-alist: Tweak docstring Date: Fri, 15 Nov 2013 10:10:42 +0530 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
OP here.  Closing it.

--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]