Commit 127981e 1 parent a3ed547 commit 127981e Copy full SHA for 127981e
File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -639,10 +639,10 @@ sexps to calculate the value."
639
639
(run-hooks 'work-timer-cycle-finish-hook )))
640
640
641
641
;;;### autoload
642
- (defun work-timer-end (arg )
643
- " End the current timer and clear history .
644
- If called with ARG, just end the current timer without clearing
645
- history."
642
+ (defun work-timer-end (&optional clear-history )
643
+ " End the current timer.
644
+ If CLEAR-HISTORY is non-nil (e.g. command called with `prefix-arg' ), also
645
+ clear `work-timer- history' ."
646
646
(interactive " ^P" )
647
647
(when (timerp work-timer-current-timer)
648
648
(cancel-timer work-timer-current-timer))
@@ -654,7 +654,7 @@ history."
654
654
work-timer-pause-time nil
655
655
work-timer-pauses nil
656
656
global-mode-string (remove 'work-timer-mode-line-string global-mode-string))
657
- (unless arg (setq work-timer-history nil ))
657
+ (when clear-history (setq work-timer-history nil ))
658
658
(force-mode-line-update t )
659
659
(work-timer--log " (work-timer-end) Timer ended" ))
660
660
You can’t perform that action at this time.
0 commit comments