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

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

bug#1431: Error on http://www.gnu.org/software/emacs/elisp/html_node/Aut


From: Cecil Westerhof
Subject: bug#1431: Error on http://www.gnu.org/software/emacs/elisp/html_node/Auto-Major-Mode.html
Date: Wed, 26 Nov 2008 11:11:21 +0100

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)

-- 
Cecil Westerhof







reply via email to

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