HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1a052d
)
(revert-buffer): Different error message for reverting a nonexistent file.
author
Richard M. Stallman
<rms@gnu.org>
Sun, 23 Feb 2003 15:04:11 +0000
(15:04 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sun, 23 Feb 2003 15:04:11 +0000
(15:04 +0000)
lisp/files.el
patch
|
blob
|
blame
|
history
diff --git
a/lisp/files.el
b/lisp/files.el
index
909eba6
..
667de05
100644
(file)
--- a/
lisp/files.el
+++ b/
lisp/files.el
@@
-3362,7
+3362,10
@@
non-nil, it is called instead of rereading visited file contents."
(funcall revert-buffer-insert-file-contents-function
file-name auto-save-p)
(if (not (file-exists-p file-name))
- (error "File %s no longer exists!" file-name))
+ (error (if buffer-file-number
+ "File %s no longer exists!"
+ "Cannot revert nonexistent file %s")
+ file-name))
;; Bind buffer-file-name to nil
;; so that we don't try to lock the file.
(let ((buffer-file-name nil))