+2008-11-19 Lute Kamstra <lute@gnu.org>
+
+ * autoinsert.el (auto-insert-alist): Don't use match data.
+
2008-11-19 Glenn Morris <rgm@gnu.org>
* progmodes/f90.el (f90-mode-map): Add some menu :help.
* textmodes/ispell.el (ispell-dictionary-base-alist): Adjust to the
case where the default dictionary is French, Spanish, younameit.
- * window.el (window--frame-usable-p): Consider dedicated windows as usable.
+ * window.el (window--frame-usable-p): Consider dedicated windows
+ as usable.
* files.el (confirm-nonexistent-file-or-buffer):
Rename from find-file-confirm-nonexistent-file.
(defcustom auto-insert-alist
'((("\\.\\([Hh]\\|hh\\|hpp\\)\\'" . "C / C++ header")
(upcase (concat (file-name-nondirectory
- (substring buffer-file-name 0 (match-beginning 0)))
+ (file-name-sans-extension buffer-file-name))
"_"
- (substring buffer-file-name (1+ (match-beginning 0)))))
+ (file-name-extension buffer-file-name)))
"#ifndef " str \n
"#define " str "\n\n"
_ "\n\n#endif")