]> git.notmuchmail.org Git - notmuch/commitdiff
emacs/tree: add call to notmuch-hl-line-mode from process-filter
authorDavid Bremner <david@tethera.net>
Sat, 10 Aug 2024 17:36:25 +0000 (14:36 -0300)
committerDavid Bremner <david@tethera.net>
Thu, 13 Mar 2025 10:56:05 +0000 (07:56 -0300)
This removes the visual gap/stutter between when the screen fills and
when the hl-line "cursor" is drawn.  It is not obviously how to
robustly test this, since it the observable effect is purely a matter
of timing.

emacs/notmuch-tree.el

index 481b0b34694b05f425f501870954c89e074e58e5..301ffd6e538bd91088751b97254baebe9cfd779a 100644 (file)
@@ -1139,7 +1139,10 @@ object, and with the tree results buffer as the current buffer.")
          (goto-char (point-max))
          (insert string))
        (notmuch-sexp-parse-partial-list 'notmuch-tree-insert-forest-thread
-                                        results-buf)))))
+                                        results-buf))
+      (with-current-buffer results-buf
+       (when notmuch-hl-line
+         (notmuch-hl-line-mode))))))
 
 (defun notmuch-tree-worker (basic-query &optional query-context target
                                        open-target unthreaded oldest-first