1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-07 06:50:23 -08:00

Make list-times not include zero elements

* doc/lispref/os.texi (Time Parsing): Mention %x.
* lisp/calendar/time-date.el (format-seconds): Accept a new %x
spec that removes trailing zeros (bug#54904).

* lisp/emacs-lisp/timer-list.el (list-timers): Don't display
trailing zero bits.
This commit is contained in:
Lars Ingebrigtsen 2022-04-13 15:31:02 +02:00
parent e587fc05a7
commit 918669cb3d
5 changed files with 57 additions and 19 deletions

View file

@ -62,7 +62,7 @@
((numberp repeat)
(propertize
(format "%12s" (format-seconds
"%dd %hh %mm %z%,1ss" repeat))
"%x%dd %hh %mm %z%,1ss" repeat))
'help-echo "Repeat interval"))
((null repeat)
(propertize " -" 'help-echo "Runs once"))