From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id oG3RIF2mt2ZvowAA62LTzQ:P1 (envelope-from ) for ; Sat, 10 Aug 2024 17:41:49 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id oG3RIF2mt2ZvowAA62LTzQ (envelope-from ) for ; Sat, 10 Aug 2024 19:41:49 +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=FfNIaDxS; 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=1723311709; 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=+5BvKOJkqmYsl49mI5DpsEUTbrUETUcGNtbGxrF9QDU=; b=CDVq2Ecw7CGl3yaeMlO+pWS9NPu4e4czYlp5aH6klOjQS9kJ43ej34jV/a7QPtbLnkFrbA BpoyuMWWdKyzN5zToRXCwsGziz/GpNtyF0IeyM1ETej+hmFlLJsAN4qvVbkzTkqYa8pYd4 pYZeu5NLtkEYnLwI0AmSg7io8BHj45SQGxcqK5HuqywBSXXKZ+vVSD0T1+yrLyitJ+Ouh9 jRSBARA6Q9vBMJjH0f2e8LFZ/fztbIvyBZnHe+VuKbhVmbA/E4Xvj7ZnpkDL6FKDmuQLrt hD7ua1ITkPYZlmfhPb+0VaF1eqxcMm7MlTu6kI6TDfZ11B9rRZtdV3cdbB5ozw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=tethera.net header.s=2024 header.b=FfNIaDxS; 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=1723311709; a=rsa-sha256; cv=none; b=rIrRWRcA8PxV+z/fyEUlStqqs5plBbomO1EbOYvgnWt+4AAeV3eRtnUhjpodzjVFwetDHb pLqLjEtWBcMusuSdsJ72DfxGTpcxA9UHJmvZipmuFMZZBCCDZStfwWOUhbM78CZjt8ZhzV fvONyWdo6VFUKU8JbJ8o4F3CJ8UqupqAoeQYHrJE8j1t9zaWg4XSTPgf0mPQ2l9JPx7o1G SibjRSIC0siXqDMyZ2NvQ+V2K8a1qX2oimXC3rXDUrbyubjQLmrHdmzsvQBJpM5Q3tcFP+ +qPKenNbs4FNmnN+S/dI1zHWYG+Jrhoos/jvaocjZ/VrlCB10MD9GdzXdt9EqA== 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 27CAE6D756 for ; Sat, 10 Aug 2024 19:41:49 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id D518D5F837; Sat, 10 Aug 2024 17:41:34 +0000 (UTC) Received: from phubs.tethera.net (phubs.tethera.net [IPv6:2607:5300:60:3a9d::1]) by mail.notmuchmail.org (Postfix) with ESMTPS id F0B295F6D8 for ; Sat, 10 Aug 2024 17:41:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tethera.net; i=@tethera.net; q=dns/txt; s=2024; t=1723311689; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : from; bh=GkbkQvy0d/O86Pk4hM+26oxVE7tVlMpSr+97TcTgp6Q=; b=FfNIaDxSsdIomx+cm6hgJBjGE3EPkdfQqtdY2W48OcR3XYUcP9AyqtalvR3j6SgUx/Qym mKYrmX3gk7n6Rn8bsU+J12T02AxLHRE3rXEnDbD2avY6eKL0GLWQAztdWvQSqLMGH7e/T/y 8m4tbIuBqkXTJhngR2n0nIDlgvUgYU7qjayM7v6uqjzIw/IToLc3yMENNfgbv9qRan9Btmz PNTrhdOUEHz3oxPUC5w8+Ly80iIExJ9r3PDsUokJQhxE5vUC27w3Lzon5WrdCBqF6CUEpxv U3VWJD7DUHK24eUsXCxE6Sff+HHPfxqxdK/DcX4ArbgxYPr8sohsxN9XKN6Q== 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 95356180181; Sat, 10 Aug 2024 14:41:29 -0300 (ADT) Received: (nullmailer pid 426490 invoked by uid 1000); Sat, 10 Aug 2024 17:41:27 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 5/6] emacs/tree: call notmuch-hl-line-mode from tree-sentinel Date: Sat, 10 Aug 2024 14:36:24 -0300 Message-ID: <20240810174121.425192-6-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: FVHYRF3IOPNVNUAHAJR3DC46K6YMG4E5 X-Message-ID-Hash: FVHYRF3IOPNVNUAHAJR3DC46K6YMG4E5 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-Migadu-Queue-Id: 27CAE6D756 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: 0.31 X-Spam-Score: 0.31 X-TUID: QhaUAeZ+qbLt There is a a perceptible gap between when the tree shows up and when the hl-line is visible, but this is better than the previous state where the line did not show up at all until the user moved the cursor. --- emacs/notmuch-tree.el | 2 ++ test/T312-emacs-hl-line.sh | 6 ------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el index 24a9970f..481b0b34 100644 --- a/emacs/notmuch-tree.el +++ b/emacs/notmuch-tree.el @@ -1122,6 +1122,8 @@ object, and with the tree results buffer as the current buffer.") (unless (= exit-status 0) (insert (format " (process returned %d)" exit-status))) (insert "\n")))) + (when (and notmuch-hl-line (= exit-status 0)) + (notmuch-hl-line-mode)) (run-hook-with-args 'notmuch-tree-process-exit-functions proc)))))) (defun notmuch-tree-process-filter (proc string) diff --git a/test/T312-emacs-hl-line.sh b/test/T312-emacs-hl-line.sh index dd27db0e..3402811c 100755 --- a/test/T312-emacs-hl-line.sh +++ b/test/T312-emacs-hl-line.sh @@ -20,7 +20,6 @@ test_emacs_expect_t '(let ((notmuch-hl-line t)) (list 1 t)))' test_begin_subtest "line 1, tree" -test_subtest_known_broken test_emacs_expect_t '(let ((notmuch-hl-line t)) (notmuch-tree "tag:inbox") (notmuch-test-wait) @@ -31,7 +30,6 @@ test_emacs_expect_t '(let ((notmuch-hl-line t)) (list 1 t)))' test_begin_subtest "line 1, unthreaded" -test_subtest_known_broken test_emacs_expect_t '(let ((notmuch-hl-line t)) (notmuch-tree "tag:inbox") (notmuch-test-wait) @@ -50,7 +48,6 @@ test_emacs_expect_t '(let ((notmuch-hl-line t)) (notmuch-test-expect-equal (overlay-start hl-line-overlay) 1))' test_begin_subtest "line 1, tree, refresh" -test_subtest_known_broken test_emacs_expect_t '(let ((notmuch-hl-line t)) (notmuch-tree "tag:inbox") (notmuch-test-wait) @@ -63,7 +60,6 @@ test_emacs_expect_t '(let ((notmuch-hl-line t)) (list 1 t)))' test_begin_subtest "line 1, unthreaded, refresh" -test_subtest_known_broken test_emacs_expect_t '(let ((notmuch-hl-line t)) (notmuch-tree "tag:inbox") (notmuch-test-wait) @@ -115,7 +111,6 @@ test_emacs_expect_t '(let ((notmuch-hl-line t)) (line-number-at-pos (overlay-start hl-line-overlay)) 12))' test_begin_subtest "line 12, tree, refresh" -test_subtest_known_broken test_emacs_expect_t '(let ((notmuch-hl-line t)) (notmuch-tree "tag:inbox") (notmuch-test-wait) @@ -127,7 +122,6 @@ test_emacs_expect_t '(let ((notmuch-hl-line t)) (line-number-at-pos (overlay-start hl-line-overlay)) 12))' test_begin_subtest "line 12, unthreaded, refresh" -test_subtest_known_broken test_emacs_expect_t '(let ((notmuch-hl-line t)) (notmuch-tree "tag:inbox") (notmuch-test-wait) -- 2.43.0