From: Richard M. Stallman Date: Wed, 10 Aug 1994 06:38:39 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: emacs-19.34~7348 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=24675e99f4a1085240937203b25f136df3c5e50f;p=emacs.git *** empty log message *** --- 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