Commit a3610f0c authored by Lute Kamstra's avatar Lute Kamstra
Browse files

(auto-insert-alist): Don't use match data.

parent 688d0744
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.
......@@ -15,7 +19,8 @@
* 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.
......
......@@ -93,9 +93,9 @@ If this contains a %s, that will be replaced by the matching rule."
(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")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment