[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/tmr 0ceb744885 01/10: tmr: Improve tmr--long-descriptio
From: |
ELPA Syncer |
Subject: |
[elpa] externals/tmr 0ceb744885 01/10: tmr: Improve tmr--long-description |
Date: |
Sun, 15 May 2022 02:58:16 -0400 (EDT) |
branch: externals/tmr
commit 0ceb7448850f44ddd33b40bc9511ee9b2ba9fd31
Author: Damien Cassou <damien@cassou.me>
Commit: Protesilaos Stavrou <info@protesilaos.com>
tmr: Improve tmr--long-description
Add text properties.
---
tmr.el | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/tmr.el b/tmr.el
index ca3a9c8bce..47269d8d7b 100644
--- a/tmr.el
+++ b/tmr.el
@@ -178,11 +178,14 @@ It should take two string arguments: the title and the
message."
(defun tmr--long-description (timer)
"Return a human-readable description for TIMER."
(let ((start (tmr--format-creation-date timer))
- (duration (tmr--timer-duration timer))
+ (end (tmr--format-end-date timer))
(description (tmr--timer-description timer)))
- (if description
- (format "Started at %s with input '%s' and description '%s'" start
duration description)
- (format "Started at %s with input '%s'" start duration))))
+ (format "Started at %s and will end at %s%s"
+ (propertize start 'face 'success)
+ (propertize end 'face 'error)
+ (if description
+ (format " [%s]" (propertize description 'face 'bold))
+ ""))))
(defun tmr--format-creation-date (timer)
"Return a string representing when TIMER was created."
- [elpa] externals/tmr updated (3d9242be83 -> 407da662a2), ELPA Syncer, 2022/05/15
- [elpa] externals/tmr b2b322a00f 03/10: tmr: placate the compiler about cl-lib and related, ELPA Syncer, 2022/05/15
- [elpa] externals/tmr 6602891c8f 02/10: Decompose tmr.el into several files, ELPA Syncer, 2022/05/15
- [elpa] externals/tmr 32f6f93aba 04/10: tmr-notification: remove needless quotes, ELPA Syncer, 2022/05/15
- [elpa] externals/tmr 0ceb744885 01/10: tmr: Improve tmr--long-description,
ELPA Syncer <=
- [elpa] externals/tmr f5dcca3588 07/10: tmr: use only active timers for tmr-cancel, ELPA Syncer, 2022/05/15
- [elpa] externals/tmr 3f8674546b 09/10: tmr: accept optional default in description prompt, ELPA Syncer, 2022/05/15
- [elpa] externals/tmr 407da662a2 10/10: tmr: make tmr-clone prompt optionally, ELPA Syncer, 2022/05/15
- [elpa] externals/tmr c7e0f6f118 06/10: tmr: tweak message for completed tmr, ELPA Syncer, 2022/05/15
- [elpa] externals/tmr b2903077f5 08/10: tmr: store the original input of a timer, ELPA Syncer, 2022/05/15
- [elpa] externals/tmr c1e7580eec 05/10: tmr: print message for cancelled timer, ELPA Syncer, 2022/05/15