[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] trunk r114194: Treat interpreter-mode-alist as alist o
Re: [Emacs-diffs] trunk r114194: Treat interpreter-mode-alist as alist of regexps, not literals
Tue, 10 Sep 2013 17:20:40 -0400
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
> +;;; :type 'boolean
> +;;; :group 'cperl)
Please use only ";;", since the first line above ends up using the
format of major outline header.
- Re: [Emacs-diffs] trunk r114194: Treat interpreter-mode-alist as alist of regexps, not literals,
Stefan Monnier <=