mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-27 16:51:06 -07:00
(after-insert-file-set-coding):
If VISIT, don't let set-buffer-multibyte make undo info.
This commit is contained in:
parent
2fc739195a
commit
fa601de5de
1 changed files with 7 additions and 1 deletions
|
|
@ -1864,7 +1864,13 @@ The optional second arg VISIT non-nil means that we are visiting a file."
|
|||
(let ((pos-marker (copy-marker (+ (point) inserted)))
|
||||
;; Prevent locking.
|
||||
(buffer-file-name nil))
|
||||
(set-buffer-multibyte nil)
|
||||
(if visit
|
||||
;; If we're doing this for find-file,
|
||||
;; don't record undo info; this counts as
|
||||
;; part of producing the buffer's initial contents.
|
||||
(let ((buffer-undo-list t))
|
||||
(set-buffer-multibyte nil))
|
||||
(set-buffer-multibyte nil))
|
||||
(setq inserted (- pos-marker (point)))))
|
||||
(set-buffer-modified-p modified-p))))
|
||||
inserted)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue