]> code.delx.au - gnu-emacs/blobdiff - lisp/progmodes/mantemp.el
CC Mode now uses the new :after-hook feature of define-derived-mode
[gnu-emacs] / lisp / progmodes / mantemp.el
index a0f50fc0f19ae7a5d32b90e55971c60496e73541..ea9d400dd9e01683c4fa686a894df4c842be08f0 100644 (file)
@@ -1,6 +1,6 @@
 ;;; mantemp.el --- create manual template instantiations from g++ 2.7.2 output
 
-;; Copyright (C) 1996, 2001-2015 Free Software Foundation, Inc.
+;; Copyright (C) 1996, 2001-2016 Free Software Foundation, Inc.
 
 ;; Author: Tom Houlder <thoulder@icor.fr>
 ;; Created: 10 Dec 1996
 
 (defun mantemp-insert-cxx-syntax ()
   "Insert C++ syntax around each template class and function.
-Insert 'template class' for classes, 'template' for
+Insert `template class' for classes, `template' for
 functions and add the statement delimiter `;' at the end of
 the lines."
   (save-excursion
@@ -157,8 +157,8 @@ the lines."
            "^template class [A-z :&*<>~=,0-9+!]*(" nil t nil)
       (progn
        (beginning-of-line)
-       (forward-word 1)
-       (delete-region (point) (progn (forward-word 1) (point)))))))
+       (forward-word-strictly 1)
+       (delete-region (point) (progn (forward-word-strictly 1) (point)))))))
 
 (defun mantemp-make-mantemps ()
   "Gathering interface to the functions modifying the buffer."