summaryrefslogtreecommitdiff
path: root/lisp/vc.el
diff options
context:
space:
mode:
authorAndré Spiegel <spiegel@gnu.org>2002-07-22 18:52:04 +0000
committerAndré Spiegel <spiegel@gnu.org>2002-07-22 18:52:04 +0000
commitb4c4047461e792759949f171d43e8c45371a44eb (patch)
tree1367e598145c896cc5c6d22ab636f120337dc588 /lisp/vc.el
parent72b8c43455d5603ad8270b8a320e85e3472ed82f (diff)
downloademacs-b4c4047461e792759949f171d43e8c45371a44eb.tar.gz
(vc-next-action-on-file): Preserve find-file-literally.
Diffstat (limited to 'lisp/vc.el')
-rw-r--r--lisp/vc.el13
1 files changed, 7 insertions, 6 deletions
diff --git a/lisp/vc.el b/lisp/vc.el
index 750d0f168be..becfc4cdc4e 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -6,7 +6,7 @@
;; Maintainer: Andre Spiegel <spiegel@gnu.org>
;; Keywords: tools
-;; $Id: vc.el,v 1.333 2002/07/16 20:44:23 monnier Exp $
+;; $Id: vc.el,v 1.334 2002/07/19 13:20:02 spiegel Exp $
;; This file is part of GNU Emacs.
@@ -1105,15 +1105,16 @@ If VERBOSE is non-nil, query the user rather than using default parameters."
(let ((visited (get-file-buffer file))
state version)
(when visited
+ (if vc-dired-mode
+ (switch-to-buffer-other-window visited)
+ (set-buffer visited))
;; Check relation of buffer and file, and make sure
;; user knows what he's doing. First, finding the file
;; will check whether the file on disk is newer.
- (set-buffer visited)
- ;; ignore buffer-read-only during this test
+ ;; Ignore buffer-read-only during this test, and
+ ;; preserve find-file-literally.
(let ((buffer-read-only (not (file-writable-p file))))
- (if vc-dired-mode
- (find-file-other-window file)
- (find-file-noselect file)))
+ (find-file-noselect file nil find-file-literally))
(if (not (verify-visited-file-modtime (current-buffer)))
(if (yes-or-no-p "Replace file on disk with buffer contents? ")
(write-file (buffer-file-name))