From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: PS file in org-mode distribution/auto-mode-alist and `$' Date: Mon, 16 Jul 2007 08:50:18 +0200 Message-ID: <17528d99cec250574f13485379496066@science.uva.nl> References: Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IAKPV-0007bg-PG for emacs-orgmode@gnu.org; Mon, 16 Jul 2007 02:50:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IAKPU-0007Zl-L1 for emacs-orgmode@gnu.org; Mon, 16 Jul 2007 02:50:20 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IAKPU-0007ZR-25 for emacs-orgmode@gnu.org; Mon, 16 Jul 2007 02:50:20 -0400 Received: from korteweg.uva.nl ([146.50.98.70]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IAKPT-0004IQ-M7 for emacs-orgmode@gnu.org; Mon, 16 Jul 2007 02:50:19 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: cs-usenet@arcor.de Cc: emacs-orgmode@gnu.org On Jul 15, 2007, at 22:51, Christian Schlauer wrote: > Hi Carsten, hi list! > > I noticed that orgcard_letter is included twice in the > zip-distribution: > > org-5.03/orgcard_letter.pdf > org-5.03/orgcard_letter.ps > > As you distribute only PDF files for the other documentation files, I > guess you didn't intend to include orgcard_letter.ps. Yes, thanks. > > Another (tiny) thing: in (info "(org)Activation"), you write > > (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) > > Long ago, I had noticed that most other authors use \\' instead of $ > in the above line (see for example C-h v auto-mode-alist RET). > Recently, Stefan Monnier wrote in a posting > the following > about adding to auto-mode-alist: > > ,---- > | The "end of string" mark should be "\\'" rather than "$" (which > | means "end of line"). > `---- Well, $ means end of line, and if the string being tested is a single line (as every single file name I have encountered so far is), the end of the string is the end of a line, by any reasonable definition. So while of course you have to be aware that $ can match somewhere in the middle of a multiline string, I completely disagree that one should not use use $ under such circumstances - it is such a nice and compact way to write things (too many backslashes in Emacs regular expressions anyway...). Anyway, as you point out, they do ask for this in the documentation, so I'll play along. - Carsten