unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: 15847@debbugs.gnu.org
Subject: bug#15847: 24.3.50; auto-mode-alist: Tweak docstring
Date: Sun, 10 Nov 2013 09:46:12 +0530	[thread overview]
Message-ID: <87d2m8dh83.fsf@gmail.com> (raw)


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@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	other threads:[~2013-11-10  4:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-10  4:16 Jambunathan K [this message]
2013-11-15  4:40 ` bug#15847: 24.3.50; auto-mode-alist: Tweak docstring Jambunathan K

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d2m8dh83.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=15847@debbugs.gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).