From: Decebal <CLDWesterhof@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Error on http://www.gnu.org/software/emacs/elisp/html_node/Auto-Major-Mode.html
Date: Mon, 24 Nov 2008 06:47:29 -0800 (PST) [thread overview]
Message-ID: <3f5924ac-1b17-4a12-82a0-d84340ede46c@v13g2000yqm.googlegroups.com> (raw)
On this page there is the following code:
(setq auto-mode-alist
(append
;; File name (within directory) starts with a dot.
'(("/\\.[^/]*\\'" . fundamental-mode)
;; File name has no dot.
("[^\\./]*\\'" . fundamental-mode)
;; File name ends in `.C'.
("\\.C\\'" . c++-mode))
auto-mode-alist))
But the rule for a file name without a dot should be:
("/[^\\./]*\\'" . fundamental-mode)
Where should I tell this so that the error could be modified?
Also on some places end of the filename is written like \\' and on
other places like $. What is the difference between those two?
next reply other threads:[~2008-11-24 14:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-24 14:47 Decebal [this message]
2008-11-25 14:17 ` Error on http://www.gnu.org/software/emacs/elisp/html_node/Auto-Major-Mode.html Xah Lee
2008-11-26 10:09 ` Decebal
2008-11-26 13:39 ` Xah Lee
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3f5924ac-1b17-4a12-82a0-d84340ede46c@v13g2000yqm.googlegroups.com \
--to=cldwesterhof@gmail.com \
--cc=help-gnu-emacs@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.
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).