]> git.eshelyaron.com Git - emacs.git/commitdiff
make `vc-log-operation' buffer local to allow multiple simultaneous editing
authorSam Steingold <sds@gnu.org>
Thu, 17 Mar 2016 19:42:15 +0000 (15:42 -0400)
committerSam Steingold <sds@gnu.org>
Thu, 17 Mar 2016 19:42:15 +0000 (15:42 -0400)
lisp/vc/vc-dispatcher.el

index 59f2ae329ed8f64e2ef8c1fe554fdb0f3521bf31..a5515420a1bc3ce226eaab712b7d49989373c58b 100644 (file)
@@ -669,7 +669,7 @@ BACKEND, if non-nil, specifies a VC backend for the Log Edit buffer."
     (make-local-variable 'vc-log-after-operation-hook)
     (when after-hook
       (setq vc-log-after-operation-hook after-hook))
-    (setq vc-log-operation action)
+    (set (make-local-variable 'vc-log-operation) action)
     (when comment
       (erase-buffer)
       (when (stringp comment) (insert comment)))
@@ -711,6 +711,7 @@ the buffer contents as a comment."
       (funcall log-operation
               log-fileset
               log-entry))
+    (setq vc-log-operation nil)
 
     ;; Quit windows on logbuf.
     (cond