branch: externals/tmr
commit 58d71b95dc0baac98625086c953d98170bdd5bdd
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>

    Use (car ...) instead of (nth 0 ...) in one place
---
 tmr.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tmr.el b/tmr.el
index 4c83abc837..42322ce3b0 100644
--- a/tmr.el
+++ b/tmr.el
@@ -629,7 +629,7 @@ Read Info node `(elisp) Desktop Notifications' for details."
 (defun tmr--read-duration (&optional default)
   "Ask the user to type a duration.
 If DEFAULT is provided, use that as a default."
-  (let ((def (or default (nth 0 tmr-duration-history))))
+  (let ((def (or default (car tmr-duration-history))))
     (read-string
      (format-prompt
       "N minutes for timer (append `h' or `s' for other units)" def)

Reply via email to