summaryrefslogtreecommitdiff
path: root/lisp/autoinsert.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-09-15 21:33:54 +0000
committerRichard M. Stallman <rms@gnu.org>1994-09-15 21:33:54 +0000
commitc5b31142c707e93fa437b8e7b0f63f1bd1b903c9 (patch)
treeda70317cf1072da0a5a722077d512c745465fb19 /lisp/autoinsert.el
parentf914dc91cbd28111a52a42e46b97563a94208e5b (diff)
downloademacs-c5b31142c707e93fa437b8e7b0f63f1bd1b903c9.tar.gz
(auto-insert-alist): Add entries for C++.
(insert-auto-insert-files): Do case-sensitive match except on vms.
Diffstat (limited to 'lisp/autoinsert.el')
-rw-r--r--lisp/autoinsert.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/autoinsert.el b/lisp/autoinsert.el
index 9851ded2cdb..9851cdee31a 100644
--- a/lisp/autoinsert.el
+++ b/lisp/autoinsert.el
@@ -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 @@ Matches the visited file name against the elements of `auto-insert-alist'."
(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