all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Error on http://www.gnu.org/software/emacs/elisp/html_node/Auto-Major-Mode.html
@ 2008-11-24 14:47 Decebal
  2008-11-25 14:17 ` Xah Lee
  0 siblings, 1 reply; 4+ messages in thread
From: Decebal @ 2008-11-24 14:47 UTC (permalink / raw)
  To: help-gnu-emacs

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?


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-11-26 13:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-24 14:47 Error on http://www.gnu.org/software/emacs/elisp/html_node/Auto-Major-Mode.html Decebal
2008-11-25 14:17 ` Xah Lee
2008-11-26 10:09   ` Decebal
2008-11-26 13:39     ` Xah Lee

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.