3362 |
(funcall revert-buffer-insert-file-contents-function |
(funcall revert-buffer-insert-file-contents-function |
3363 |
file-name auto-save-p) |
file-name auto-save-p) |
3364 |
(if (not (file-exists-p file-name)) |
(if (not (file-exists-p file-name)) |
3365 |
(error "File %s no longer exists!" file-name)) |
(error (if buffer-file-number |
3366 |
|
"File %s no longer exists!" |
3367 |
|
"Cannot revert nonexistent file %s") |
3368 |
|
file-name)) |
3369 |
;; Bind buffer-file-name to nil |
;; Bind buffer-file-name to nil |
3370 |
;; so that we don't try to lock the file. |
;; so that we don't try to lock the file. |
3371 |
(let ((buffer-file-name nil)) |
(let ((buffer-file-name nil)) |