From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Saptarshi Newsgroups: gmane.emacs.help Subject: Re: Auto-mode-alist, issue with regexp Date: Fri, 22 May 2009 09:53:41 -0700 (PDT) Organization: http://groups.google.com Message-ID: <9045bbff-4184-473a-9c72-9a375642d163@n4g2000vba.googlegroups.com> References: <87iqjtjdgh.fsf@iki.fi> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1243015030 4972 80.91.229.12 (22 May 2009 17:57:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 May 2009 17:57:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 22 19:57:03 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 1M7YzO-000812-SI for geh-help-gnu-emacs@m.gmane.org; Fri, 22 May 2009 19:57:03 +0200 Original-Received: from localhost ([127.0.0.1]:53920 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M7YzO-0002LC-Ap for geh-help-gnu-emacs@m.gmane.org; Fri, 22 May 2009 13:57:02 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!n4g2000vba.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: 98.223.111.222 Original-X-Trace: posting.google.com 1243011221 1392 127.0.0.1 (22 May 2009 16:53:41 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 22 May 2009 16:53:41 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: n4g2000vba.googlegroups.com; posting-host=98.223.111.222; posting-account=X-QcEwoAAADUh3ahIw0DWrzMgadEc97H User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.10) Gecko/2009042315 Firefox/3.0.10,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:169397 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:64635 Archived-At: > > It has to match against full path name. I suggest you try this: > > =A0 =A0 (add-to-list 'auto-mode-alist > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0'("/mail\\.google\\.com\\'" . org-mode= )) Thank you, I tried this, but got a File Mode specification error: (invalid-regexp "Trailing Backslash") The file was called mail.google.com.23234 Emacs is 22.3.1 Thank you Saptarshi