GNU bug report logs - #15847
24.3.50; auto-mode-alist: Tweak docstring

Previous Next

Package: emacs;

Reported by: Jambunathan K <kjambunathan <at> gmail.com>

Date: Sun, 10 Nov 2013 04:18:02 UTC

Severity: minor

Found in version 24.3.50

Done: Jambunathan K <kjambunathan <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 15847 in the body.
You can then email your comments to 15847 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#15847; Package emacs. (Sun, 10 Nov 2013 04:18:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jambunathan K <kjambunathan <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 10 Nov 2013 04:18:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jambunathan K <kjambunathan <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; auto-mode-alist: Tweak docstring
Date: Sun, 10 Nov 2013 09:46:12 +0530
Context:

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)

Request:

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
precedence.)

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



In GNU Emacs 24.3.50.4 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2013-11-09 on debian-6.05
Bzr revision: 115051 jan.h.d <at> swipnet.se-20131109111953-cysfi19meuidy96q
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
System Description:	Debian GNU/Linux 6.0.5 (squeeze)





Reply sent to Jambunathan K <kjambunathan <at> gmail.com>:
You have taken responsibility. (Fri, 15 Nov 2013 04:42:03 GMT) Full text and rfc822 format available.

Notification sent to Jambunathan K <kjambunathan <at> gmail.com>:
bug acknowledged by developer. (Fri, 15 Nov 2013 04:42:03 GMT) Full text and rfc822 format available.

Message #10 received at 15847-done <at> debbugs.gnu.org (full text, mbox):

From: Jambunathan K <kjambunathan <at> gmail.com>
To: 15847-done <at> debbugs.gnu.org
Subject: Re: bug#15847: 24.3.50; auto-mode-alist: Tweak docstring
Date: Fri, 15 Nov 2013 10:10:42 +0530
OP here.  Closing it.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 13 Dec 2013 12:24:18 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 243 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.