Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
d607ebcc
Commit
d607ebcc
authored
Feb 28, 2002
by
André Spiegel
Browse files
(vc-revert-buffer): If the buffer is not saved, prompt the user to do
that first.
parent
4fff8c79
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/vc.el
lisp/vc.el
+4
-1
No files found.
lisp/ChangeLog
View file @
d607ebcc
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>
* simple.el (shell-command-on-region): Report non-zero exit
...
...
lisp/vc.el
View file @
d607ebcc
...
...
@@ -6,7 +6,7 @@
;; Maintainer: Andre Spiegel <spiegel@gnu.org>
;; Keywords: tools
;; $Id: vc.el,v 1.32
6
2002/02/2
1
2
1
:00:
3
5 spiegel Exp $
;; $Id: vc.el,v 1.32
7
2002/02/2
5
2
2
:00:5
1
spiegel Exp $
;; This file is part of GNU Emacs.
...
...
@@ -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."
(
interactive
)
(
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
)
;; This operation should always ask for confirmation.
(
vc-suppress-confirm
nil
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment