mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-24 07:20:37 +00:00
Correct return value from with-elapsed-timer
This commit is contained in:
parent
28c6509148
commit
89a844fd9c
@ -281,13 +281,14 @@
|
||||
'(current-time))))
|
||||
,(if use-package-verbose
|
||||
`(message "%s..." ,text))
|
||||
(prog1
|
||||
,@forms
|
||||
,(when use-package-verbose
|
||||
`(let ((elapsed
|
||||
(float-time (time-subtract (current-time) now))))
|
||||
(if (> elapsed 0.01)
|
||||
(message "%s...done (%.3fs)" ,text elapsed)
|
||||
(message "%s...done" ,text))))))
|
||||
(message "%s...done" ,text)))))))
|
||||
|
||||
(put 'with-elapsed-timer 'lisp-indent-function 1)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user