diff options
Diffstat (limited to 'lisp/format.el')
-rw-r--r-- | lisp/format.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/format.el b/lisp/format.el index 2c368b8f9c7..5cd2d4bfb49 100644 --- a/lisp/format.el +++ b/lisp/format.el @@ -440,10 +440,9 @@ a list (ABSOLUTE-FILE-NAME SIZE)." (file-name-nondirectory file))))) (list file fmt))) (let (value size old-undo) - ;; Record only one undo entry for the insertion. Inhibit point-motion and - ;; modification hooks as with `insert-file-contents'. - (let ((inhibit-point-motion-hooks t) - (inhibit-modification-hooks t)) + ;; Record only one undo entry for the insertion. + ;; Inhibit modification hooks as with `insert-file-contents'. + (let ((inhibit-modification-hooks t)) ;; Don't bind `buffer-undo-list' to t here to assert that ;; `insert-file-contents' may record whether the buffer was unmodified ;; before. |