aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Spiegel2002-02-28 10:00:44 +0000
committerAndré Spiegel2002-02-28 10:00:44 +0000
commitd607ebcc094fc322c9462d0d52e99a5f7efb9f9e (patch)
treefab10ccf9345a5562a1f50cc0254e477f5dfd336
parent4fff8c79ea5b9eacdeadc6ebbf1204bbccecf1fc (diff)
downloademacs-d607ebcc094fc322c9462d0d52e99a5f7efb9f9e.tar.gz
emacs-d607ebcc094fc322c9462d0d52e99a5f7efb9f9e.zip
(vc-revert-buffer): If the buffer is not saved, prompt the user to do
that first.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/vc.el5
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f979bcfcc25..8f34d8921c9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12002-02-28 Andre Spiegel <spiegel@gnu.org>
2
3 * vc.el (vc-revert-buffer): If the buffer is not saved, prompt
4 the user to do that first.
5
12002-02-28 Kim F. Storm <storm@cua.dk> 62002-02-28 Kim F. Storm <storm@cua.dk>
2 7
3 * simple.el (shell-command-on-region): Report non-zero exit 8 * simple.el (shell-command-on-region): Report non-zero exit
diff --git a/lisp/vc.el b/lisp/vc.el
index a6c5b47e7fd..f538a6050d6 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -6,7 +6,7 @@
6;; Maintainer: Andre Spiegel <spiegel@gnu.org> 6;; Maintainer: Andre Spiegel <spiegel@gnu.org>
7;; Keywords: tools 7;; Keywords: tools
8 8
9;; $Id: vc.el,v 1.326 2002/02/21 21:00:35 spiegel Exp $ 9;; $Id: vc.el,v 1.327 2002/02/25 22:00:51 spiegel Exp $
10 10
11;; This file is part of GNU Emacs. 11;; This file is part of GNU Emacs.
12 12
@@ -2538,6 +2538,9 @@ to that version. This function does not automatically pick up newer
2538changes found in the master file; use \\[universal-argument] \\[vc-next-action] to do so." 2538changes found in the master file; use \\[universal-argument] \\[vc-next-action] to do so."
2539 (interactive) 2539 (interactive)
2540 (vc-ensure-vc-buffer) 2540 (vc-ensure-vc-buffer)
2541 ;; Make sure buffer is saved. If the user says `no', abort since
2542 ;; we cannot show the changes and ask for confirmation to discard them.
2543 (vc-buffer-sync nil)
2541 (let ((file buffer-file-name) 2544 (let ((file buffer-file-name)
2542 ;; This operation should always ask for confirmation. 2545 ;; This operation should always ask for confirmation.
2543 (vc-suppress-confirm nil) 2546 (vc-suppress-confirm nil)