emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: cs-usenet@arcor.de
Cc: emacs-orgmode@gnu.org
Subject: Re: PS file in org-mode distribution/auto-mode-alist and `$'
Date: Mon, 16 Jul 2007 08:50:18 +0200	[thread overview]
Message-ID: <17528d99cec250574f13485379496066@science.uva.nl> (raw)
In-Reply-To: <f7e1c4$6q1$3@sea.gmane.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
> <news:jwvtztg8wjn.fsf-monnier+gnu.emacs.help@gnu.org> 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

  reply	other threads:[~2007-07-16  6:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-15 20:51 PS file in org-mode distribution/auto-mode-alist and `$' Christian Schlauer
2007-07-16  6:50 ` Carsten Dominik [this message]
2007-07-23 18:54   ` OT: Newlines in file names (was: PS file in org-mode distribution/auto-mode-alist and `$') Christian Schlauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17528d99cec250574f13485379496066@science.uva.nl \
    --to=dominik@science.uva.nl \
    --cc=cs-usenet@arcor.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).