Reset mtime of a buffer reverted "delicately"
* lisp/files.el (revert-buffer-insert-file-contents-delicately): Once buffer is reverted, reset its mtime to that of the file. (Bug#49893)
This commit is contained in:
parent
9d1c3c9830
commit
4ec10c80ab
1 changed files with 2 additions and 1 deletions
|
@ -6533,7 +6533,8 @@ see `replace-buffer-contents'."
|
|||
;; See comments in revert-buffer-with-fine-grain for an explanation.
|
||||
(defun revert-buffer-with-fine-grain-success-p ()
|
||||
success))
|
||||
(set-buffer-modified-p nil))))
|
||||
(set-buffer-modified-p nil)
|
||||
(set-visited-file-modtime))))
|
||||
|
||||
(defun revert-buffer-with-fine-grain (&optional ignore-auto noconfirm)
|
||||
"Revert buffer preserving markers, overlays, etc.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue