emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/tmr 038619a705 3/3: tmr--description-prompt: Fix prompt


From: ELPA Syncer
Subject: [elpa] externals/tmr 038619a705 3/3: tmr--description-prompt: Fix prompt when first used
Date: Fri, 6 May 2022 06:57:59 -0400 (EDT)

branch: externals/tmr
commit 038619a70599599edfbdc933012b7104ec240b6b
Author: Damien Cassou <damien@cassou.me>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    tmr--description-prompt: Fix prompt when first used
---
 tmr.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tmr.el b/tmr.el
index 4b93941dc2..0defce9458 100644
--- a/tmr.el
+++ b/tmr.el
@@ -273,7 +273,9 @@ Optionally include DESCRIPTION."
   "Helper prompt for descriptions in `tmr'."
   (let ((def (nth 0 tmr--description-hist)))
     (completing-read
-     (format "Description for this tmr [%s]: " def)
+     (if def
+         (format "Description for this tmr [%s]: " def)
+       "Description for this tmr: ")
      tmr-descriptions-list nil nil nil
      'tmr--description-hist def)))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]