|
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:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |