changeset 50982:5ba37a8fa075

(autoconf-current-defun-function): Copy the syntax table before modifying it.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 13 May 2003 20:59:15 +0000
parents b4fef1c0c73b
children e496049a6234
files lisp/progmodes/autoconf.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/autoconf.el	Tue May 13 20:48:15 2003 +0000
+++ b/lisp/progmodes/autoconf.el	Tue May 13 20:59:15 2003 +0000
@@ -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))