Commit d607ebcc authored by André Spiegel's avatar André Spiegel
Browse files

(vc-revert-buffer): If the buffer is not saved, prompt the user to do

that first.
parent 4fff8c79
2002-02-28 Andre Spiegel <spiegel@gnu.org>
* vc.el (vc-revert-buffer): If the buffer is not saved, prompt
the user to do that first.
2002-02-28 Kim F. Storm <storm@cua.dk> 2002-02-28 Kim F. Storm <storm@cua.dk>
   
* simple.el (shell-command-on-region): Report non-zero exit * simple.el (shell-command-on-region): Report non-zero exit
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
;; Maintainer: Andre Spiegel <spiegel@gnu.org> ;; Maintainer: Andre Spiegel <spiegel@gnu.org>
;; Keywords: tools ;; Keywords: tools
;; $Id: vc.el,v 1.326 2002/02/21 21:00:35 spiegel Exp $ ;; $Id: vc.el,v 1.327 2002/02/25 22:00:51 spiegel Exp $
;; This file is part of GNU Emacs. ;; This file is part of GNU Emacs.
...@@ -2538,6 +2538,9 @@ to that version. This function does not automatically pick up newer ...@@ -2538,6 +2538,9 @@ to that version. This function does not automatically pick up newer
changes found in the master file; use \\[universal-argument] \\[vc-next-action] to do so." changes found in the master file; use \\[universal-argument] \\[vc-next-action] to do so."
(interactive) (interactive)
(vc-ensure-vc-buffer) (vc-ensure-vc-buffer)
;; Make sure buffer is saved. If the user says `no', abort since
;; we cannot show the changes and ask for confirmation to discard them.
(vc-buffer-sync nil)
(let ((file buffer-file-name) (let ((file buffer-file-name)
;; This operation should always ask for confirmation. ;; This operation should always ask for confirmation.
(vc-suppress-confirm nil) (vc-suppress-confirm nil)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment