]> git.eshelyaron.com Git - emacs.git/commitdiff
*** empty log message ***
authorRichard M. Stallman <rms@gnu.org>
Wed, 10 Aug 1994 06:38:39 +0000 (06:38 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 10 Aug 1994 06:38:39 +0000 (06:38 +0000)
lispref/modes.texi

index 749d53f245d58bd7122f7b693faa53b625d5fa2a..fb71606f925163c4a0024bc21c6de9cd9238e7ad 100644 (file)
@@ -567,13 +567,13 @@ For example,
 @smallexample
 @group
 (("^/tmp/fol/" . text-mode)
- ("\\.texinfo$" . texinfo-mode)
- ("\\.texi$" . texinfo-mode)
+ ("\\.texinfo\\'" . texinfo-mode)
+ ("\\.texi\\'" . texinfo-mode)
 @end group
 @group
- ("\\.el$" . emacs-lisp-mode)
- ("\\.c$" . c-mode) 
- ("\\.h$" . c-mode)
+ ("\\.el\\'" . emacs-lisp-mode)
+ ("\\.c\\'" . c-mode) 
+ ("\\.h\\'" . c-mode)
  @dots{})
 @end group
 @end smallexample
@@ -602,11 +602,11 @@ Here is an example of how to prepend several pattern pairs to
 (setq auto-mode-alist
   (append 
    ;; @r{File name starts with a dot.}
-   '(("/\\.[^/]*$" . fundamental-mode)  
+   '(("/\\.[^/]*\\'" . fundamental-mode)  
      ;; @r{File name has no dot.}
-     ("[^\\./]*$" . fundamental-mode)   
+     ("[^\\./]*\\'" . fundamental-mode)   
      ;; @r{File name ends in @samp{.C}.}
-     ("\\.C$" . c++-mode))
+     ("\\.C\\'" . c++-mode))
    auto-mode-alist))
 @end group
 @end smallexample