# HG changeset patch # User Richard M. Stallman # Date 776500719 0 # Node ID d3f7cadf8c959d7bc30161467e1511e4c77d0dff # Parent 8c492f23ee2878eb7b1ed7c03abd62373db4ebf1 *** empty log message *** diff -r 8c492f23ee28 -r d3f7cadf8c95 lispref/modes.texi --- a/lispref/modes.texi Wed Aug 10 04:08:26 1994 +0000 +++ b/lispref/modes.texi Wed Aug 10 06:38:39 1994 +0000 @@ -567,13 +567,13 @@ @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 @@ (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