summaryrefslogtreecommitdiff
path: root/lisp/vc
diff options
context:
space:
mode:
authorJuri Linkov <juri@linkov.net>2023-02-05 20:23:57 +0200
committerJuri Linkov <juri@linkov.net>2023-02-05 20:23:57 +0200
commit26e947ccb1453defcfce080cdc5ea7ca2cb8917e (patch)
treee4f6538520dfac7fc9810e57c419d95fc74b6690 /lisp/vc
parent948e343496bce96fcc5f2ccb702e4be2c549096e (diff)
downloademacs-26e947ccb1453defcfce080cdc5ea7ca2cb8917e.tar.gz
emacs-26e947ccb1453defcfce080cdc5ea7ca2cb8917e.tar.bz2
emacs-26e947ccb1453defcfce080cdc5ea7ca2cb8917e.zip
* lisp/vc/vc.el (vc-find-revision-no-save): Fix parens (bug#61256).
Move '(setq failed nil)' from UNWINDFORMS of 'unwind-protect' to BODYFORM.
Diffstat (limited to 'lisp/vc')
-rw-r--r--lisp/vc/vc.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index a181765eac3..4ba62c0b3c7 100644
--- 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))