Mercurial > emacs
changeset 8764:878de309ab95
(auto-insert-alist): Add entries for C++.
(insert-auto-insert-files): Do case-sensitive match except on vms.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 15 Sep 1994 21:33:54 +0000 |
parents | 2b54e6deed2f |
children | 77933f36ddc2 |
files | lisp/autoinsert.el |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/autoinsert.el Thu Sep 15 21:30:21 1994 +0000 +++ b/lisp/autoinsert.el Thu Sep 15 21:33:54 1994 +0000 @@ -55,6 +55,9 @@ (defvar auto-insert-alist '(("\\.tex$" . "tex-insert.tex") ("\\.c$" . "c-insert.c") ("\\.h$" . "h-insert.c") + ("\\.cc$" . "c-insert.cc") + ("\\.C$" . "c-insert.cc") + ("\\.H$" . "h-insert.cc") ("[Mm]akefile" . "makefile.inc") ("\\.bib$" . "tex-insert.tex")) "A list specifying text to insert by default into a new file. @@ -75,10 +78,11 @@ (insert-file nil)) ;; find first matching alist entry - (while (and (not insert-file) alist) + (let ((case-fold-search (eq system-type 'vax-vms))) + (while (and (not insert-file) alist) (if (string-match (car (car alist)) name) (setq insert-file (cdr (car alist))) - (setq alist (cdr alist)))) + (setq alist (cdr alist))))) ;; Now, if we found an appropriate insert file, insert it (if insert-file