diff options
| author | Kenichi Handa | 2002-11-07 07:32:07 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2002-11-07 07:32:07 +0000 |
| commit | ba8972b69461ef31203517d70f1c51bcd1c01cd7 (patch) | |
| tree | ea5ea0575fae2a023630bc6eeca780fe0c59ed3f /lisp | |
| parent | 664557e219a2753d2001ff8d9fbfd3fb5469eada (diff) | |
| download | emacs-ba8972b69461ef31203517d70f1c51bcd1c01cd7.tar.gz emacs-ba8972b69461ef31203517d70f1c51bcd1c01cd7.zip | |
Fix previous change.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/composite.el | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/lisp/composite.el b/lisp/composite.el index cbaeb182d58..18c1cc02eee 100644 --- a/lisp/composite.el +++ b/lisp/composite.el | |||
| @@ -385,23 +385,19 @@ See also the command `toggle-auto-composition'.") | |||
| 385 | ;; We use this to preserve or protect things when modifying text properties. | 385 | ;; We use this to preserve or protect things when modifying text properties. |
| 386 | (defmacro save-buffer-state (varlist &rest body) | 386 | (defmacro save-buffer-state (varlist &rest body) |
| 387 | "Bind variables according to VARLIST and eval BODY restoring buffer state." | 387 | "Bind variables according to VARLIST and eval BODY restoring buffer state." |
| 388 | (let ((modified (make-symbol "modified"))) | 388 | `(let* ,(append varlist |
| 389 | `(let* ,(append varlist | 389 | '((modified (buffer-modified-p)) (buffer-undo-list t) |
| 390 | `((,modified (buffer-modified-p)) | 390 | (inhibit-read-only t) (inhibit-point-motion-hooks t) |
| 391 | (buffer-undo-list t) | 391 | (inhibit-modification-hooks t) |
| 392 | (inhibit-read-only t) | 392 | deactivate-mark buffer-file-name buffer-file-truename)) |
| 393 | (inhibit-point-motion-hooks t) | 393 | ,@body |
| 394 | (inhibit-modification-hooks t) | 394 | (unless modified |
| 395 | deactivate-mark | 395 | (restore-buffer-modified-p nil)))) |
| 396 | buffer-file-name | ||
| 397 | buffer-file-truename)) | ||
| 398 | (progn | ||
| 399 | ,@body) | ||
| 400 | (unless ,modified | ||
| 401 | (restore-buffer-modified-p nil))))) | ||
| 402 | (put 'save-buffer-state 'lisp-indent-function 1) | 396 | (put 'save-buffer-state 'lisp-indent-function 1) |
| 403 | (def-edebug-spec save-buffer-state let)) | 397 | ;; Fixme: This makes bootstrapping fails by this error. |
| 404 | 398 | ;; Symbol's function definition is void: eval-defun | |
| 399 | ;;(def-edebug-spec save-buffer-state let) | ||
| 400 | ) | ||
| 405 | 401 | ||
| 406 | (defvar auto-composition-chunk-size 500 | 402 | (defvar auto-composition-chunk-size 500 |
| 407 | "*Automatic composition chunks of this many characters, or smaller.") | 403 | "*Automatic composition chunks of this many characters, or smaller.") |