aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2008-03-24 19:52:29 +0000
committerStefan Monnier2008-03-24 19:52:29 +0000
commit5a07b0f024da068fdc9e6b476182f376a0569cb1 (patch)
treeee5d9788197e244e0365c259fc881262a9d2b537
parent438eba3c1edc5da3b8cbbc5d227264a0e5bd81e6 (diff)
downloademacs-5a07b0f024da068fdc9e6b476182f376a0569cb1.tar.gz
emacs-5a07b0f024da068fdc9e6b476182f376a0569cb1.zip
(vc-bzr-print-log, vc-bzr-diff): Do it asynchronously.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/vc-bzr.el17
2 files changed, 11 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 72ca41f9a03..d300ae50324 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * vc-bzr.el (vc-bzr-print-log, vc-bzr-diff): Do it asynchronously.
4
12008-03-22 Drew Adams <drew.adams@oracle.com> 52008-03-22 Drew Adams <drew.adams@oracle.com>
2 6
3 * finder.el (finder-mode-syntax-table, finder-font-lock-keywords): 7 * finder.el (finder-mode-syntax-table, finder-font-lock-keywords):
diff --git a/lisp/vc-bzr.el b/lisp/vc-bzr.el
index 9fbf7b86dec..5fff3d8e544 100644
--- a/lisp/vc-bzr.el
+++ b/lisp/vc-bzr.el
@@ -396,22 +396,19 @@ EDITABLE is ignored."
396 (vc-setup-buffer buffer) 396 (vc-setup-buffer buffer)
397 ;; If the buffer exists from a previous invocation it might be 397 ;; If the buffer exists from a previous invocation it might be
398 ;; read-only. 398 ;; read-only.
399 (let ((inhibit-read-only t))
400 ;; FIXME: `vc-bzr-command' runs `bzr log' with `LC_MESSAGES=C', so 399 ;; FIXME: `vc-bzr-command' runs `bzr log' with `LC_MESSAGES=C', so
401 ;; the log display may not what the user wants - but I see no other 400 ;; the log display may not what the user wants - but I see no other
402 ;; way of getting the above regexps working. 401 ;; way of getting the above regexps working.
403 (dolist (file files) 402 (dolist (file files)
403 (vc-exec-after
404 `(let ((inhibit-read-only t))
404 (with-current-buffer buffer 405 (with-current-buffer buffer
405 ;; Insert the file name so that log-view.el can find it. 406 ;; Insert the file name so that log-view.el can find it.
406 (insert "Working file: " file "\n")) ;; Like RCS/CVS. 407 (insert "Working file: " ',file "\n")) ;; Like RCS/CVS.
407 (apply 'vc-bzr-command "log" buffer 0 file 408 (apply 'vc-bzr-command "log" ',buffer 'async ',file
408 (if (stringp vc-bzr-log-switches) 409 ',(if (stringp vc-bzr-log-switches)
409 (list vc-bzr-log-switches) 410 (list vc-bzr-log-switches)
410 vc-bzr-log-switches)))) 411 vc-bzr-log-switches))))))
411 ;; FIXME: Until Emacs-23, VC was missing a hook to sort out the mode for
412 ;; the buffer, or at least set the regexps right.
413 (unless (fboundp 'vc-default-log-view-mode)
414 (add-hook 'log-view-mode-hook 'vc-bzr-log-view-mode)))
415 412
416(defun vc-bzr-show-log-entry (revision) 413(defun vc-bzr-show-log-entry (revision)
417 "Find entry for patch name REVISION in bzr change log buffer." 414 "Find entry for patch name REVISION in bzr change log buffer."
@@ -429,7 +426,7 @@ EDITABLE is ignored."
429(defun vc-bzr-diff (files &optional rev1 rev2 buffer) 426(defun vc-bzr-diff (files &optional rev1 rev2 buffer)
430 "VC bzr backend for diff." 427 "VC bzr backend for diff."
431 ;; `bzr diff' exits with code 1 if diff is non-empty. 428 ;; `bzr diff' exits with code 1 if diff is non-empty.
432 (apply #'vc-bzr-command "diff" (or buffer "*vc-diff*") 1 files 429 (apply #'vc-bzr-command "diff" (or buffer "*vc-diff*") 'async files
433 "--diff-options" (mapconcat 'identity 430 "--diff-options" (mapconcat 'identity
434 (vc-diff-switches-list bzr) 431 (vc-diff-switches-list bzr)
435 " ") 432 " ")