From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Decebal Newsgroups: gmane.emacs.help Subject: auto-mode-alist and regular expression Date: Wed, 14 Jan 2009 02:27:59 -0800 (PST) Organization: http://groups.google.com Message-ID: <185efdc3-05ae-45c4-af14-9706cd99f275@p2g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1231929783 13723 80.91.229.12 (14 Jan 2009 10:43:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Jan 2009 10:43:03 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 14 11:44:16 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LN3EL-0000Bb-PQ for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Jan 2009 11:44:13 +0100 Original-Received: from localhost ([127.0.0.1]:38995 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LN3D5-0005gC-Ci for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Jan 2009 05:42:55 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!p2g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 12 Original-NNTP-Posting-Host: 85.158.139.99 Original-X-Trace: posting.google.com 1231928879 10920 127.0.0.1 (14 Jan 2009 10:27:59 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 14 Jan 2009 10:27:59 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p2g2000prf.googlegroups.com; posting-host=85.158.139.99; posting-account=K-cdeAoAAAD_0d505kUtHXJaT5LFIu-3 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 proxy-25:8080 (squid/2.5.STABLE8), 1.0 netcache-1 (NetCache NetApp/6.0.5), 1.0 netcache-1 (NetCache NetApp/6.0.5), 1.1 cache-3:80 Original-Xref: news.stanford.edu gnu.emacs.help:165992 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 Xref: news.gmane.org gmane.emacs.help:61319 Archived-At: Because files with names like 'adm[a-z]{3}' (admapp, admenv, admchk, ...) really are shell-scripts, I have in my auto-mode-alist: ("/adm[a-z]*\\'" . shell-script-mode) But I would like something like: ("/adm[a-z]{3}\\'" . shell-script-mode) The problem is that this not work. Offcourse I could do something like: ("/adm[a-z][a-z][a-z]\\'" . shell-script-mode) But I would prefer a neater solution. Is this possible?