]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/vc/vc.el (vc-find-revision-no-save): Fix parens (bug#61256).
authorJuri Linkov <juri@linkov.net>
Sun, 5 Feb 2023 18:23:57 +0000 (20:23 +0200)
committerJuri 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

index a181765eac350b17565efa56275862f2b5bade14..4ba62c0b3c7dde2ffb8987338ce1ec0f2e13aa32 100644 (file)
@@ -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))