help-gnu-emacs
[Top][All Lists]
Advanced

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

Error on http://www.gnu.org/software/emacs/elisp/html_node/Auto-Major-Mo


From: Decebal
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)
User-agent: G2/1.0

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?


reply via email to

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