From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.help Subject: Re: Auto-mode-alist, issue with regexp Date: Fri, 22 May 2009 19:14:19 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1243012572 30195 80.91.229.12 (22 May 2009 17:16:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 May 2009 17:16:12 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Saptarshi Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 22 19:16:06 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 1M7YLm-0007ht-8t for geh-help-gnu-emacs@m.gmane.org; Fri, 22 May 2009 19:16:06 +0200 Original-Received: from localhost ([127.0.0.1]:42764 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M7YLl-0000Jg-BE for geh-help-gnu-emacs@m.gmane.org; Fri, 22 May 2009 13:16:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M7YK9-00081S-F7 for help-gnu-emacs@gnu.org; Fri, 22 May 2009 13:14:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M7YK7-00081G-Nz for help-gnu-emacs@gnu.org; Fri, 22 May 2009 13:14:25 -0400 Original-Received: from [199.232.76.173] (port=55260 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M7YK7-00081D-Jn for help-gnu-emacs@gnu.org; Fri, 22 May 2009 13:14:23 -0400 Original-Received: from dd18200.kasserver.com ([85.13.138.168]:56452) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M7YK7-0003fb-7c for help-gnu-emacs@gnu.org; Fri, 22 May 2009 13:14:23 -0400 Original-Received: from thursday (g227071192.adsl.alicedsl.de [92.227.71.192]) by dd18200.kasserver.com (Postfix) with ESMTP id 85EC81809842D; Fri, 22 May 2009 19:14:25 +0200 (CEST) In-Reply-To: (Saptarshi's message of "Fri, 22 May 2009 09:32:59 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (darwin) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:64631 Archived-At: Saptarshi wrote: > I would like to open all files whose name starts with > "mail.google.com" in org-mode. > I tried, > 1) --> (add-to-list 'auto-mode-alist '("^mail\\.google\\.com" . org- > mode)) The entire path is matched against the expression, so the ^ is the problem. Try: "/mail\\.google\\.com" regards, Nikolaj Schumacher