From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: perl-mode.el file in Mac OS X Date: Wed, 02 Feb 2005 17:01:17 +0100 Organization: Organization?!? Message-ID: References: <87c8e99.0502011954.6e3ca099@posting.google.com> <87brb3vww1.fsf-monnier+gnu.emacs.help@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1107360169 8700 80.91.229.2 (2 Feb 2005 16:02:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 2 Feb 2005 16:02:49 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 02 17:02:48 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1CwMxN-0006s9-9a for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Feb 2005 17:02:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CwNAV-0007xE-1H for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Feb 2005 11:15:51 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-X-Trace: individual.net 3xUW2pczcBWbpbrwAUZ5cAlWAwQlxEk1xfpFm6jDY7blS02LxU X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:Vk0b34fONawsDGatIJs1U6Iwnco= Original-Xref: shelby.stanford.edu gnu.emacs.help:128351 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: main.gmane.org gmane.emacs.help:23862 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23862 Stefan Monnier writes: > If you feel like shortening such a list, you can also use things like: > > (setq auto-mode-alist > (append > '(("\\.\\(xsl\\|plist\\|id[de]\\)\\'" . sgml-mode) > ("\\.\\(xml\\|xsl\\|fo\\)\\'" . xml-mode) > ("\\.nw\\'" . noweb-mode) > ("\\.f90\\'" . f90-mode) > ("\\.\\(pl\\|pod\\)\\'" . perl-mode) > ("\\.\\(tgz\\|tar.\\(gz\\|bz2\\)\\)\\'" . tar-mode)) > auto-mode-alist)) I don't think a file named woozle.tarigz should trigger tar-mode. And regexp-opt suggests "\\.t\\(?:ar\\.\\(?:bz2\\|gz\\)\\|gz\\)\\'" -- David Kastrup, Kriemhildstr. 15, 44793 Bochum