changeset 49888:c0dd4de41e91

(with-syntax-table): Don't copy the table any more.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 20 Feb 2003 20:07:41 +0000
parents 68ca3f7b109d
children 0193c3b80488
files lisp/subr.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/subr.el	Thu Feb 20 18:47:49 2003 +0000
+++ b/lisp/subr.el	Thu Feb 20 20:07:41 2003 +0000
@@ -1709,7 +1709,7 @@
     parent))
 
 (defmacro with-syntax-table (table &rest body)
-  "Evaluate BODY with syntax table of current buffer set to a copy of TABLE.
+  "Evaluate BODY with syntax table of current buffer set to TABLE.
 The syntax table of the current buffer is saved, BODY is evaluated, and the
 saved table is restored, even in case of an abnormal exit.
 Value is what BODY returns."
@@ -1719,7 +1719,7 @@
 	   (,old-buffer (current-buffer)))
        (unwind-protect
 	   (progn
-	     (set-syntax-table (copy-syntax-table ,table))
+	     (set-syntax-table ,table)
 	     ,@body)
 	 (save-current-buffer
 	   (set-buffer ,old-buffer)