unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Glenn Morris <rgm@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] trunk r114194: Treat interpreter-mode-alist as alist of regexps, not literals
Date: Tue, 10 Sep 2013 17:20:40 -0400	[thread overview]
Message-ID: <jwvob805qed.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <E1VJUi8-0007d6-Q4@vcs.savannah.gnu.org> (Glenn Morris's message of "Tue, 10 Sep 2013 20:38:56 +0000")

> +** The cars of the elements in `interpreter-mode-alist' are now treated
> +as regexps rather than literal strings.  For the time being, any
> +element whose car does not start with "\\" is still treated as a
> +literal string, so this change should not cause any incompatibilities
> +if you have code that just adds elements to the list, only if you are
> +actually using interpreter-mode-alist for something.

How 'bout simply adding \\` and \\' around the string (without quoting it)?
All the entries I've seen so far are equal to their
regexp-quoted version, anyway.

> +;;; (defcustom cperl-clobber-mode-lists
> +;;;   (not
> +;;;    (and
> +;;;     (boundp 'interpreter-mode-alist)
> +;;;     (assoc "miniperl" interpreter-mode-alist)
> +;;;     (assoc "\\.\\([pP][Llm]\\|al\\)$" auto-mode-alist)))
> +;;;   "*Whether to install us into `interpreter-' and `extension' mode lists."
> +;;;   :type 'boolean
> +;;;   :group 'cperl)

Please use only ";;", since the first line above ends up using the
format of major outline header.


        Stefan



       reply	other threads:[~2013-09-10 21:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1VJUi8-0007d6-Q4@vcs.savannah.gnu.org>
2013-09-10 21:20 ` Stefan Monnier [this message]
2013-09-11  0:04   ` [Emacs-diffs] trunk r114194: Treat interpreter-mode-alist as alist of regexps, not literals Glenn Morris
2013-09-11  1:09     ` Stefan Monnier
2013-09-11  1:34       ` Glenn Morris
2013-09-11  1:56         ` Stefan Monnier

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=jwvob805qed.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=rgm@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).