[Top][All Lists]

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

Re: [Emacs-diffs] trunk r114194: Treat interpreter-mode-alist as alist o

From: Stefan Monnier
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
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> +** 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.


reply via email to

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