diff options
| author | Stefan Monnier | 2003-05-13 20:59:15 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2003-05-13 20:59:15 +0000 |
| commit | f4103aec45930a9daf55960f5f81c778be3d83c5 (patch) | |
| tree | dc38cf9e21be30b764ff82f10a72dda6c329f5e1 | |
| parent | f7a2f2c6543d35057fa994c91f47271d6c951ec3 (diff) | |
| download | emacs-f4103aec45930a9daf55960f5f81c778be3d83c5.tar.gz emacs-f4103aec45930a9daf55960f5f81c778be3d83c5.zip | |
(autoconf-current-defun-function): Copy the syntax table before modifying it.
| -rw-r--r-- | lisp/progmodes/autoconf.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/autoconf.el b/lisp/progmodes/autoconf.el index 51e23980ff8..a2a2b63a85a 100644 --- a/lisp/progmodes/autoconf.el +++ b/lisp/progmodes/autoconf.el | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | ;; Author: Dave Love <fx@gnu.org> | 5 | ;; Author: Dave Love <fx@gnu.org> |
| 6 | ;; Keywords: languages | 6 | ;; Keywords: languages |
| 7 | ;; $Revision: 1.2 $ | 7 | ;; $Revision: 1.3 $ |
| 8 | 8 | ||
| 9 | ;; This file is part of GNU Emacs. | 9 | ;; This file is part of GNU Emacs. |
| 10 | 10 | ||
| @@ -73,7 +73,7 @@ | |||
| 73 | This version looks back for an AC_DEFINE or AC_SUBST. It will stop | 73 | This version looks back for an AC_DEFINE or AC_SUBST. It will stop |
| 74 | searching backwards at another AC_... command." | 74 | searching backwards at another AC_... command." |
| 75 | (save-excursion | 75 | (save-excursion |
| 76 | (with-syntax-table autoconf-mode-syntax-table | 76 | (with-syntax-table (copy-syntax-table autoconf-mode-syntax-table) |
| 77 | (modify-syntax-entry ?_ "w") | 77 | (modify-syntax-entry ?_ "w") |
| 78 | (if (re-search-backward autoconf-definition-regexp | 78 | (if (re-search-backward autoconf-definition-regexp |
| 79 | (save-excursion (beginning-of-defun) (point)) | 79 | (save-excursion (beginning-of-defun) (point)) |