From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4ea1::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms12 with LMTPS id oOmsAJJ0ymF2OAAAsNZ9tg (envelope-from ); Tue, 28 Dec 2021 02:21:06 +0000 Received: from out0.migadu.com ([2001:41d0:2:267::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 6J0xOZF0ymEoPQEAG6o9tA (envelope-from ); Tue, 28 Dec 2021 03:21:05 +0100 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1640658065; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kSecyRbTvoHuDFeMjQEQCBhOn50iJgbX9S63pEwQZ2g=; b=AlrUpAimLG9Kxnzh0OFolu6/1ixMKkbQADfW0XX/pyXwBaRxyvg1XEaR0rJEbc788X9jb3 FjYT5smYoZEJe/rS7lRCfRyRTQt9tfMmHQA3KyFlAdo0w46v+wwOvicVB1lloyUlmh+WXR jP7weGKBzXoeJT72q2uXMI7W5AEa6YNNToHwwOdaAGPYM1UpjPjXCEcTpue20MfH0EFdSw DaO0GZS9jNyPA1ksqXHgqhLTBa7sTT7gmb1RRHgJIAKX0FStkO8ESTP8juvuCjUQokg4Q5 YALFda3ubtasRB0jn/CYv1L3KNIHDqPGH6wYpd5n/8IlgocYZ5XREy2+jo9K6Q== From: Kyle Meyer To: piem@inbox.kyleam.com Subject: [PATCH 4/6] lei q: Add date placeholder for ghost messages Date: Mon, 27 Dec 2021 21:20:35 -0500 Message-Id: <20211228022037.206597-5-kyle@kyleam.com> In-Reply-To: <20211228022037.206597-1-kyle@kyleam.com> References: <20211228022037.206597-1-kyle@kyleam.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: kyleam.com X-TUID: N+yS52Qpz48X piem-lei-query-threads inserts only the message ID of a ghost message, using spaces for where the date and time is for other messages. The space placeholders will become visually confusing when the next commit starts inserting an empty line between threads. Switch to using a dummy date-time instead. --- piem-lei.el | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/piem-lei.el b/piem-lei.el index 63a2548e..dedaee20 100644 --- a/piem-lei.el +++ b/piem-lei.el @@ -727,11 +727,12 @@ (defun piem-lei-query-threads (query &optional args pt-mid) (line-end-position) (list 'piem-lei-query-result data)) (setq subject-prev subject)) - (insert (make-string 17 ?\s) ; Date alignment. - (piem-lei-query--format-thread-marker depth) - (propertize (concat " <" mid-msg ">") - 'font-lock-face - 'piem-lei-query-thread-ghost)) + (insert (propertize + (concat "0000-00-00 00:00 " + (piem-lei-query--format-thread-marker depth) + " <" mid-msg ">") + 'font-lock-face + 'piem-lei-query-thread-ghost)) (setq subject-prev nil)) (when (equal mid-msg pt-mid) (setq pt-final (line-beginning-position))) -- 2.34.0