branch: externals/vc-jj
commit 413f8dfdf7f01c147a0dd1111911cb0cd377801e
Author: Kristoffer Balintona <krisbalint...@gmail.com>
Commit: Kristoffer Balintona <krisbalint...@gmail.com>

    fix: Erroneous argument to `with-current-buffer’
    
    `with-current-buffer’ accepts a buffer object or buffer name as its
    first argument.  Previously we were passing the result of
    `(revert-buffer)’ as the first argument.
    
    Regardless, `with-current-buffer' is unnecessary since
    `vc-jj--reload-log-buffers’ is already called inside
    `vc-jj-log-view-mode' buffers.
---
 vc-jj.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vc-jj.el b/vc-jj.el
index cb42a504f4..005f89ea28 100644
--- a/vc-jj.el
+++ b/vc-jj.el
@@ -601,7 +601,7 @@ If REV is not specified, revert the file as with 
`vc-jj-revert'."
   (and vc-parent-buffer
     (with-current-buffer vc-parent-buffer
       (revert-buffer)))
-  (with-current-buffer (revert-buffer)))
+  (revert-buffer))
 
 (defun vc-jj-edit-change ()
   (interactive)

Reply via email to