From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Saptarshi Guha Newsgroups: gmane.emacs.help Subject: Re: Auto-mode-alist, issue with regexp Date: Fri, 22 May 2009 13:19:12 -0400 Message-ID: <1e7471d50905221019g308d7805k9345de104f933f28@mail.gmail.com> References: Reply-To: saptarshi.guha@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1243012855 30982 80.91.229.12 (22 May 2009 17:20:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 May 2009 17:20:55 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Nikolaj Schumacher Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 22 19:20:48 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 1M7YQK-0001A1-2y for geh-help-gnu-emacs@m.gmane.org; Fri, 22 May 2009 19:20:48 +0200 Original-Received: from localhost ([127.0.0.1]:35473 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M7YQJ-0002AP-BP for geh-help-gnu-emacs@m.gmane.org; Fri, 22 May 2009 13:20:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M7YOp-0001mW-OD for help-gnu-emacs@gnu.org; Fri, 22 May 2009 13:19:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M7YOp-0001mA-8k for help-gnu-emacs@gnu.org; Fri, 22 May 2009 13:19:15 -0400 Original-Received: from [199.232.76.173] (port=57032 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M7YOo-0001lp-Cg for help-gnu-emacs@gnu.org; Fri, 22 May 2009 13:19:14 -0400 Original-Received: from yx-out-1718.google.com ([74.125.44.155]:25935) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M7YOo-0004LC-6c for help-gnu-emacs@gnu.org; Fri, 22 May 2009 13:19:14 -0400 Original-Received: by yx-out-1718.google.com with SMTP id 3so1069057yxi.66 for ; Fri, 22 May 2009 10:19:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=m6PnMvIQou9yEdODpNc8cVw2umUnAWqyeHaa7y3V8u8=; b=B5n4v2qntl5VUZYNCa8KDvh3FR/QtymsCAOeciDso/FRXKYOZ1NKBEyAA0D7v7RexL kOvYIOXK6oqVfi1UtdrrQED3d83bplWLVbNJVb7M+2lXcimKAPgj9QvymTSGB5JQihrL m88z25Yi8oV/Zeg9MC1B74jHQdgXlkgKHGH7I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; b=GoSUduYOs36f+trb7aRuYOa2EazA0gNk8vzKcj3+KJH4jL4mwxVZXG34V3k4iF4e9w q+s1WNDzXk67twiYymrWDoEzTGXr0SoyttddixBaT48IZDTSon+E4pr8WlFCzXJ4mDc1 fI1IOxoPRMANcw+lJQalnmqruJfJRmgruH8c4= Original-Received: by 10.150.185.15 with SMTP id i15mr7515635ybf.266.1243012752571; Fri, 22 May 2009 10:19:12 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:64632 Archived-At: Perfect. Thank you to everybody. The explanation helped me understand where I was going wrong. I'm using ItsAllText firefox extension to compose replies/messages from GMAIL in Aquamacs. ItsAllText opens aquamacs with a file name like mail.google.com.[A-Za-z0-9]+.txt which i would ultimately like to open in message mode. Thanks again Regards Saptarshi Guha On Fri, May 22, 2009 at 1:14 PM, Nikolaj Schumacher wrote: > Saptarshi wrote: > >> I would like to open all files whose name starts with >> "mail.google.com" in org-mode. >> I tried, >> 1) --> =C2=A0(add-to-list 'auto-mode-alist '("^mail\\.google\\.com" . or= g- >> mode)) > > The entire path is matched against the expression, so the ^ is the > problem. =C2=A0Try: > > "/mail\\.google\\.com" > > > regards, > Nikolaj Schumacher >