From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id YBikKWimt2YH6wAA62LTzQ:P1 (envelope-from ) for ; Sat, 10 Aug 2024 17:42:00 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id YBikKWimt2YH6wAA62LTzQ (envelope-from ) for ; Sat, 10 Aug 2024 19:42:00 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=tethera.net header.s=2024 header.b=Kc09XkiF; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1723311720; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=LAcMoVTvisKgwLibR0H1WbNLQk934QOflEkJBhPgS9M=; b=MckE3w6wKEO0qRQTbIl68TY8QmjjUH+9HW+yrxlUTPyp1THvo6O4UX3uHYkp76h6KvD745 K8T6IkNKC6NTf5m+NWeCSsKHGYLf1QfpEzu1KeUVlxeYr54PStrIDiutIP19PsiLALUL1v QbdZ6MlKOVFzWVi9PI5ybvFFe7BKsgF7+x73weZxkCKIMxbv2aJ4qXm8iyD8Lq4A/fIauD mTzk5fdQ6YNvZVjoTKztoGv2FV9t4AC3omaFcaD4pRFwIp/mgb5jmYhpfJCEKwbv54nv/Z mLyEuv96X2LU4/Smle2z2u7mO9L+HwovMQqM4CJQl4fVaMzF2AOgXLQe6dQHVg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=tethera.net header.s=2024 header.b=Kc09XkiF; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1723311720; a=rsa-sha256; cv=none; b=O+dMf15L4yImezNWszwltS2jL0R2HwnXGLKBXYQbQtnWz1OjRMld3cYSvJDh/MheItWExh EcbT4kkjIkROHnGFcnxpjHMoFYJwlJ3yBntxg2fNj42CPWUCgrAjP9+QyD1H1YybyCGi+W lrBYGEIGU6yIxMnpuqPqu96oSeq+fVlY6Vmms4A3j7VXGwd7fMtAMdlY0EO0kDqnN/v2x7 Bjhvw6uYfLD2zS4SLy2IuuA5f3Ls/xizcF3s/qokLx0kvWGAk4SycKANmaEzGK7eu6jUYM Q4TC9pyAPy96zxp+YozQu/aYGcWly16Q5jQKqwgqkZeUzjeZfAPB3Nj48vYL0A== Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 96E5077289 for ; Sat, 10 Aug 2024 19:42:00 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 8BFB15F867; Sat, 10 Aug 2024 17:41:39 +0000 (UTC) Received: from phubs.tethera.net (phubs.tethera.net [IPv6:2607:5300:60:3a9d::1]) by mail.notmuchmail.org (Postfix) with ESMTPS id B90705F835 for ; Sat, 10 Aug 2024 17:41:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tethera.net; i=@tethera.net; q=dns/txt; s=2024; t=1723311690; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : from; bh=jSTChzti1pTNAhEuEh9rlO1nF9425FOdF25H0hvn3MI=; b=Kc09XkiF3AhB+NSuoK0gyjJmhtPQ3LIJ6onY2tbwHYSSLu9rkma2V3nHZt9ngl+6P/VY/ vbTzVXJ4buK6IvPM23MZHY29fbDXp1dd4n2tSgb+QGcxno86VEGEKzqJAgcYACecpMWwKZs uEQd3BzS/H7RDkqF8+Fy4H1GjXdm41ELG1JsAdmNRJ4lBG0CDTdmi7wHCh5RW7fIE5lLnXm d2i7satrfWpfIer3/Daj8ZFjkGovf1IrX3k44PYq9ouGI4GtaKUIty1dXVhtGvhvfacUQVl QBw8imJ/EXXO3ZcVrUPHoXTvtA3Uq7m1+3bnzIS9qV4BEGdX0U2/wBImzITg== Received: from tethera.net (fctnnbsc51w-159-2-211-58.dhcp-dynamic.fibreop.nb.bellaliant.net [159.2.211.58]) by phubs.tethera.net (Postfix) with ESMTPS id 7B99B180182; Sat, 10 Aug 2024 14:41:30 -0300 (ADT) Received: (nullmailer pid 426493 invoked by uid 1000); Sat, 10 Aug 2024 17:41:27 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 6/6] emacs/tree: add call to notmuch-hl-line-mode from process-filter Date: Sat, 10 Aug 2024 14:36:25 -0300 Message-ID: <20240810174121.425192-7-david@tethera.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240810174121.425192-1-david@tethera.net> References: <20240810174121.425192-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: 3XS5WP6TGEHMDY3Q6EVQQYCN6M7F4EX7 X-Message-ID-Hash: 3XS5WP6TGEHMDY3Q6EVQQYCN6M7F4EX7 X-MailFrom: bremner@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Country: DE X-Migadu-Flow: FLOW_IN X-Spam-Score: 1.31 X-Migadu-Queue-Id: 96E5077289 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: 1.31 X-TUID: uMF8suZaSbLN 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el index 481b0b34..301ffd6e 100644 --- a/emacs/notmuch-tree.el +++ b/emacs/notmuch-tree.el @@ -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 -- 2.43.0