From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Regexps Date: Fri, 02 Jan 2009 12:19:54 +0200 Message-ID: <87iqoy57sl.fsf_-_@iki.fi> References: <87hc4j5cxt.fsf@iki.fi> <20524da70901011418k6fbcd788mb87dfa5bec2d4bfe@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1230891646 25958 80.91.229.12 (2 Jan 2009 10:20:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 2 Jan 2009 10:20:46 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Samuel Wales" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 02 11:21:55 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 1LIhAA-0006TR-3f for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Jan 2009 11:21:54 +0100 Original-Received: from localhost ([127.0.0.1]:48839 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LIh8u-0002Y0-O9 for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Jan 2009 05:20:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LIh8R-0002Xt-Lo for help-gnu-emacs@gnu.org; Fri, 02 Jan 2009 05:20:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LIh8Q-0002Xg-0S for help-gnu-emacs@gnu.org; Fri, 02 Jan 2009 05:20:07 -0500 Original-Received: from [199.232.76.173] (port=46155 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LIh8P-0002XY-PV for help-gnu-emacs@gnu.org; Fri, 02 Jan 2009 05:20:05 -0500 Original-Received: from mta-out.inet.fi ([195.156.147.13]:57997 helo=jenni2.inet.fi) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LIh8P-0005R7-Bn for help-gnu-emacs@gnu.org; Fri, 02 Jan 2009 05:20:05 -0500 Original-Received: from mithlond.arda.local (80.220.180.181) by jenni2.inet.fi (8.5.014) id 48FC5A88033BB21A; Fri, 2 Jan 2009 12:19:56 +0200 Original-Received: from dtw by mithlond.arda.local with local (Exim 4.69) (envelope-from ) id 1LIh8E-0001F4-4e; Fri, 02 Jan 2009 12:19:54 +0200 In-Reply-To: <20524da70901011418k6fbcd788mb87dfa5bec2d4bfe@mail.gmail.com> (Samuel Wales's message of "Thu\, 1 Jan 2009 15\:18\:58 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:61018 Archived-At: Samuel Wales (2009-01-01 15:18 -0700) wrote: > On Thu, Jan 1, 2009 at 07:16, Teemu Likonen wrote: >> (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) > > Maybe without the \ \ ' ? Or is that a special thing? The \' atom matches with zero-width at the end of string or end of buffer. As you know $ is a zero-width atom that matches at the end of line. In theory a filename may contain newlines (in Linux filesystems at least) and in such situations the $ atom wouldn't necessarily match the end of the whole filename string.