[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why auto-mode-alist's regex ends in \\'

From: Lennart Borgman (gmail)
Subject: Re: why auto-mode-alist's regex ends in \\'
Date: Tue, 08 Jul 2008 01:58:56 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20071031 Thunderbird/ Mnenhy/

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.




  (info "(elisp) Syntax of Regexps")

\' matches end of string
$ matches end of line

reply via email to

[Prev in Thread] Current Thread [Next in Thread]