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
fab2e906
Commit
fab2e906
authored
Aug 08, 1995
by
Richard M. Stallman
Browse files
(vc-revert-buffer): In a dedicated solitary window,
make the frame invisible instead of trying to delete window.
parent
d544c776
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
lisp/vc.el
lisp/vc.el
+8
-2
No files found.
lisp/vc.el
View file @
fab2e906
...
...
@@ -1372,11 +1372,17 @@ the file on the branch you are editing."
(if (and changed (or vc-suppress-confirm
(not (yes-or-no-p "
Discard
changes?
"))))
(progn
(delete-window)
(if (and (window-dedicated-p (selected-window))
(one-window-p t 'selected-frame))
(make-frame-invisible (selected-frame))
(delete-window))
(error "
Revert
cancelled
"))
(set-buffer obuf))
(if changed
(delete-window))
(if (and (window-dedicated-p (selected-window))
(one-window-p t 'selected-frame))
(make-frame-invisible (selected-frame))
(delete-window)))
(vc-backend-revert file)
(vc-resynch-window file t t)
)
...
...
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