projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
948e343
)
* lisp/vc/vc.el (vc-find-revision-no-save): Fix parens (bug#61256).
author
Juri Linkov
<juri@linkov.net>
Sun, 5 Feb 2023 18:23:57 +0000
(20:23 +0200)
committer
Juri Linkov
<juri@linkov.net>
Sun, 5 Feb 2023 18:23:57 +0000
(20:23 +0200)
Move '(setq failed nil)' from UNWINDFORMS of 'unwind-protect' to BODYFORM.
lisp/vc/vc.el
patch
|
blob
|
history
diff --git
a/lisp/vc/vc.el
b/lisp/vc/vc.el
index a181765eac350b17565efa56275862f2b5bade14..4ba62c0b3c7dde2ffb8987338ce1ec0f2e13aa32 100644
(file)
--- a/
lisp/vc/vc.el
+++ b/
lisp/vc/vc.el
@@
-2342,8
+2342,8
@@
Unlike `vc-find-revision-save', doesn't save the buffer to the file."
(ignore-errors (delay-mode-hooks (set-auto-mode))))
(normal-mode))
(set-buffer-modified-p nil)
- (setq buffer-read-only t)
)
-
(setq failed nil
)
+ (setq buffer-read-only t)
+
(setq failed nil)
)
(when (and failed (unless buffer (get-file-buffer filename)))
(with-current-buffer (get-file-buffer filename)
(set-buffer-modified-p nil))