aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/autoinsert.el4
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 526b47d23c1..c619e861f1c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12008-11-19 Lute Kamstra <lute@gnu.org>
2
3 * autoinsert.el (auto-insert-alist): Don't use match data.
4
12008-11-19 Glenn Morris <rgm@gnu.org> 52008-11-19 Glenn Morris <rgm@gnu.org>
2 6
3 * progmodes/f90.el (f90-mode-map): Add some menu :help. 7 * progmodes/f90.el (f90-mode-map): Add some menu :help.
@@ -15,7 +19,8 @@
15 * textmodes/ispell.el (ispell-dictionary-base-alist): Adjust to the 19 * textmodes/ispell.el (ispell-dictionary-base-alist): Adjust to the
16 case where the default dictionary is French, Spanish, younameit. 20 case where the default dictionary is French, Spanish, younameit.
17 21
18 * window.el (window--frame-usable-p): Consider dedicated windows as usable. 22 * window.el (window--frame-usable-p): Consider dedicated windows
23 as usable.
19 24
20 * files.el (confirm-nonexistent-file-or-buffer): 25 * files.el (confirm-nonexistent-file-or-buffer):
21 Rename from find-file-confirm-nonexistent-file. 26 Rename from find-file-confirm-nonexistent-file.
diff --git a/lisp/autoinsert.el b/lisp/autoinsert.el
index 2b4972bb11c..fb20a6c5b41 100644
--- a/lisp/autoinsert.el
+++ b/lisp/autoinsert.el
@@ -93,9 +93,9 @@ If this contains a %s, that will be replaced by the matching rule."
93(defcustom auto-insert-alist 93(defcustom auto-insert-alist
94 '((("\\.\\([Hh]\\|hh\\|hpp\\)\\'" . "C / C++ header") 94 '((("\\.\\([Hh]\\|hh\\|hpp\\)\\'" . "C / C++ header")
95 (upcase (concat (file-name-nondirectory 95 (upcase (concat (file-name-nondirectory
96 (substring buffer-file-name 0 (match-beginning 0))) 96 (file-name-sans-extension buffer-file-name))
97 "_" 97 "_"
98 (substring buffer-file-name (1+ (match-beginning 0))))) 98 (file-name-extension buffer-file-name)))
99 "#ifndef " str \n 99 "#ifndef " str \n
100 "#define " str "\n\n" 100 "#define " str "\n\n"
101 _ "\n\n#endif") 101 _ "\n\n#endif")