From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel 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 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1378848066 6677 80.91.229.3 (10 Sep 2013 21:21:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Sep 2013 21:21:06 +0000 (UTC) Cc: emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 10 23:21:08 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VJVMx-00034D-Io for ged-emacs-devel@m.gmane.org; Tue, 10 Sep 2013 23:21:07 +0200 Original-Received: from localhost ([::1]:60049 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJVMw-0008RR-Ub for ged-emacs-devel@m.gmane.org; Tue, 10 Sep 2013 17:21:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJVMn-0008Qg-AX for emacs-devel@gnu.org; Tue, 10 Sep 2013 17:21:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJVMg-0000tq-0c for emacs-devel@gnu.org; Tue, 10 Sep 2013 17:20:57 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:37226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJVMY-0000rz-0k; Tue, 10 Sep 2013 17:20:42 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r8ALKekP031483; Tue, 10 Sep 2013 17:20:40 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 4EEECB40D6; Tue, 10 Sep 2013 17:20:40 -0400 (EDT) In-Reply-To: (Glenn Morris's message of "Tue, 10 Sep 2013 20:38:56 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4697=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4697> : inlines <79> : streams <1035116> : uri <1533012> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:163290 Archived-At: > +** 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