# HG changeset patch # User Stefan Monnier # Date 1045771661 0 # Node ID c0dd4de41e918927d4612ec5f5ee6fd6046ad733 # Parent 68ca3f7b109d4ff62cc362d36ef0fcff0e37dc44 (with-syntax-table): Don't copy the table any more. diff -r 68ca3f7b109d -r c0dd4de41e91 lisp/subr.el --- 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)