branch: externals/calibre
commit 51f9328684fd82574b509b9cbd4a6f2c17e9c9a5
Author: Kjartan Oli Agustsson <[email protected]>
Commit: Kjartan Oli Agustsson <[email protected]>

    Determine mode-line-process value on execution status not exec queue
    
    * calibre-library.el (calibre-library-mode): Use
      calibre-exec--executing instead of calibre-exec--commands to
      determine whether to display ":Updating" in the mode line.
    
    Using calibre-exec--commands leads to the ":Updating" string being
    removed to early since the command queue becomes nil when the last
    command starts execution.  calibre-exec--executing on the other hand
    only becomes nil once the last command finishes execution.  It is also
    probably the more semantically appropriate value to use since it is
    explicitly the boolean value indicating whether a library update is in
    progress.
---
 calibre-library.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/calibre-library.el b/calibre-library.el
index 5d550da74c..88dd821f54 100644
--- a/calibre-library.el
+++ b/calibre-library.el
@@ -288,7 +288,7 @@ If called with a prefix argument prompt the user for the 
format."
 (define-derived-mode calibre-library-mode tabulated-list-mode
   "Library Mode"
   (setf tabulated-list-padding 2
-        mode-line-process '(calibre-exec--commands ":Updating"))
+        mode-line-process '(calibre-exec--executing ":Updating"))
   (setq-local revert-buffer-function #'calibre-library-revert)
   (setq-local font-lock-defaults
               '(calibre-font-lock-keywords t nil nil beginning-of-line))

Reply via email to