]> code.delx.au - gnu-emacs/commitdiff
(autoconf-current-defun-function): Copy the syntax table before modifying it.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 13 May 2003 20:59:15 +0000 (20:59 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 13 May 2003 20:59:15 +0000 (20:59 +0000)
lisp/progmodes/autoconf.el

index 51e23980ff8e16ee8b04e2bbca2d2a2e34d948e2..a2a2b63a85a17306fc235ca88a3fdc6f9151c8d9 100644 (file)
@@ -4,7 +4,7 @@
 
 ;; Author: Dave Love <fx@gnu.org>
 ;; Keywords: languages
-;; $Revision: 1.2 $
+;; $Revision: 1.3 $
 
 ;; This file is part of GNU Emacs.
 
@@ -73,7 +73,7 @@
 This version looks back for an AC_DEFINE or AC_SUBST.  It will stop
 searching backwards at another AC_... command."
   (save-excursion
-    (with-syntax-table autoconf-mode-syntax-table
+    (with-syntax-table (copy-syntax-table autoconf-mode-syntax-table)
       (modify-syntax-entry ?_ "w")
       (if (re-search-backward autoconf-definition-regexp
                              (save-excursion (beginning-of-defun) (point))