From 7ec51784bb5bf081a967823a1fcc5c5a4fba3a9a Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Thu, 20 Feb 2003 20:07:41 +0000 Subject: [PATCH] (with-syntax-table): Don't copy the table any more. --- lisp/subr.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/subr.el b/lisp/subr.el index 01d317238de..39240b601ec 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -1709,7 +1709,7 @@ Uses the `derived-mode-parent' property of the symbol to trace backwards." 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 @@ Value is what BODY returns." (,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) -- 2.39.2