summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2021-12-27 21:20:35 -0500
committerKyle Meyer <kyle@kyleam.com>2021-12-28 12:08:35 -0500
commitf56c5e01de855187c7a348ba186b045a6970575c (patch)
tree41679f4ddf83c88a423a0e6332a7a09b09396a65
parent601d79ec752dba957f4a27b993280bc1499676ef (diff)
downloadpiem-f56c5e01de855187c7a348ba186b045a6970575c.tar.gz
lei q: Add date placeholder for ghost messages
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. Message-Id: <20211228022037.206597-5-kyle@kyleam.com>
-rw-r--r--piem-lei.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/piem-lei.el b/piem-lei.el
index 63a2548..dedaee2 100644
--- a/piem-lei.el
+++ b/piem-lei.el
@@ -727,11 +727,12 @@ that line."
(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)))