From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Xah <xahlee@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: why auto-mode-alist's regex ends in \\'
Date: Tue, 08 Jul 2008 01:58:56 +0200 [thread overview]
Message-ID: <4872ADC0.80608@gmail.com> (raw)
In-Reply-To: <0b38e8f0-a8e9-4cea-8fa3-ef1779c8cc4d@j22g2000hsf.googlegroups.com>
Xah wrote:
> By default, auto-mode-alist has a element:
>
> ("\\.png\\'" . image-mode)
>
> why is it not the following instead?
>
> ("\\.png$" . image-mode)
>
> I can't see how file name would end in a “'”, but apparently all
> regexes there is like that. Emacs's doc node Choosing Modes doesn't
> seems to explain this.
>
> Thanks.
>
> Xah
> ∑ http://xahlee.org/
See
(info "(elisp) Syntax of Regexps")
\' matches end of string
$ matches end of line
next prev parent reply other threads:[~2008-07-07 23:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-07 23:22 why auto-mode-alist's regex ends in \\' Xah
2008-07-07 23:58 ` Lennart Borgman (gmail) [this message]
[not found] ` <mailman.14358.1215475153.18990.help-gnu-emacs@gnu.org>
2008-07-08 1:47 ` Barry Margolin
2008-07-09 0:50 ` Xah
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4872ADC0.80608@gmail.com \
--to=lennart.borgman@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=xahlee@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.