[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/subr.el
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/subr.el |
Date: |
Thu, 20 Feb 2003 15:07:41 -0500 |
Index: emacs/lisp/subr.el
diff -c emacs/lisp/subr.el:1.340 emacs/lisp/subr.el:1.341
*** emacs/lisp/subr.el:1.340 Tue Feb 4 07:06:43 2003
--- emacs/lisp/subr.el Thu Feb 20 15:07:41 2003
***************
*** 1709,1715 ****
parent))
(defmacro with-syntax-table (table &rest body)
! "Evaluate BODY with syntax table of current buffer set to a copy of 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."
--- 1709,1715 ----
parent))
(defmacro with-syntax-table (table &rest body)
! "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,1725 ****
(,old-buffer (current-buffer)))
(unwind-protect
(progn
! (set-syntax-table (copy-syntax-table ,table))
,@body)
(save-current-buffer
(set-buffer ,old-buffer)
--- 1719,1725 ----
(,old-buffer (current-buffer)))
(unwind-protect
(progn
! (set-syntax-table ,table)
,@body)
(save-current-buffer
(set-buffer ,old-buffer)