Commit fab2e906 authored by Richard M. Stallman's avatar 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
...@@ -1372,11 +1372,17 @@ the file on the branch you are editing." ...@@ -1372,11 +1372,17 @@ the file on the branch you are editing."
(if (and changed (or vc-suppress-confirm (if (and changed (or vc-suppress-confirm
(not (yes-or-no-p "Discard changes? ")))) (not (yes-or-no-p "Discard changes? "))))
(progn (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")) (error "Revert cancelled"))
(set-buffer obuf)) (set-buffer obuf))
(if changed (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-backend-revert file)
(vc-resynch-window file t t) (vc-resynch-window file t t)
) )
......
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