From 24675e99f4a1085240937203b25f136df3c5e50f Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 10 Aug 1994 06:38:39 +0000 Subject: [PATCH] *** empty log message *** --- lispref/modes.texi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lispref/modes.texi b/lispref/modes.texi index 749d53f245d..fb71606f925 100644 --- a/lispref/modes.texi +++ b/lispref/modes.texi @@ -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 -- 2.39.5