projects
/
chise
/
xemacs-chise.git-
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update.
[chise/xemacs-chise.git-]
/
lisp
/
files.el
diff --git
a/lisp/files.el
b/lisp/files.el
index
8591d86
..
6d85246
100644
(file)
--- a/
lisp/files.el
+++ b/
lisp/files.el
@@
-2709,6
+2709,7
@@
Revert only if they differ."
(funcall revert-buffer-function ignore-auto noconfirm)
(let* ((opoint (point))
(newbuf nil)
(funcall revert-buffer-function ignore-auto noconfirm)
(let* ((opoint (point))
(newbuf nil)
+ (found nil)
(delay-prompt nil)
(auto-save-p (and (not ignore-auto)
(recent-auto-save-p)
(delay-prompt nil)
(auto-save-p (and (not ignore-auto)
(recent-auto-save-p)
@@
-2723,10
+2724,9
@@
Revert only if they differ."
(error "Buffer does not seem to be associated with any file"))
((or noconfirm
(and (not (buffer-modified-p))
(error "Buffer does not seem to be associated with any file"))
((or noconfirm
(and (not (buffer-modified-p))
- (let (found)
- (dolist (rx revert-without-query found)
- (when (string-match rx file-name)
- (setq found t)))))
+ (dolist (rx revert-without-query found)
+ (when (string-match rx file-name)
+ (setq found t))))
;; If we will call revert-buffer-internal, delay prompting
(and (not auto-save-p)
(not (buffer-modified-p))
;; If we will call revert-buffer-internal, delay prompting
(and (not auto-save-p)
(not (buffer-modified-p))
@@
-2740,7
+2740,7
@@
Revert only if they differ."
(and (setq newbuf (revert-buffer-internal
file-name))
;; ... and if different, prompt
(and (setq newbuf (revert-buffer-internal
file-name))
;; ... and if different, prompt
- (or noconfirm
+ (or noconfirm found
(and delay-prompt
(yes-or-no-p
(format "Revert buffer from file %s? "
(and delay-prompt
(yes-or-no-p
(format "Revert buffer from file %s? "