# HG changeset patch # User Kenichi Handa # Date 1036654327 0 # Node ID 2cf77d6e4261d7362fff8e36c8f662cf985ff755 # Parent 2eb2dbb9baac17572cb2e75e5cb66a0cea7b18e7 Fix previous change. diff -r 2eb2dbb9baac -r 2cf77d6e4261 lisp/composite.el --- a/lisp/composite.el Thu Nov 07 06:34:54 2002 +0000 +++ b/lisp/composite.el Thu Nov 07 07:32:07 2002 +0000 @@ -385,23 +385,19 @@ ;; We use this to preserve or protect things when modifying text properties. (defmacro save-buffer-state (varlist &rest body) "Bind variables according to VARLIST and eval BODY restoring buffer state." - (let ((modified (make-symbol "modified"))) - `(let* ,(append varlist - `((,modified (buffer-modified-p)) - (buffer-undo-list t) - (inhibit-read-only t) - (inhibit-point-motion-hooks t) - (inhibit-modification-hooks t) - deactivate-mark - buffer-file-name - buffer-file-truename)) - (progn - ,@body) - (unless ,modified - (restore-buffer-modified-p nil))))) + `(let* ,(append varlist + '((modified (buffer-modified-p)) (buffer-undo-list t) + (inhibit-read-only t) (inhibit-point-motion-hooks t) + (inhibit-modification-hooks t) + deactivate-mark buffer-file-name buffer-file-truename)) + ,@body + (unless modified + (restore-buffer-modified-p nil)))) (put 'save-buffer-state 'lisp-indent-function 1) - (def-edebug-spec save-buffer-state let)) - + ;; Fixme: This makes bootstrapping fails by this error. + ;; Symbol's function definition is void: eval-defun + ;;(def-edebug-spec save-buffer-state let) + ) (defvar auto-composition-chunk-size 500 "*Automatic composition chunks of this many characters, or smaller.")