emacs-devel
[Top][All Lists]
Advanced

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

Re: timeclock gives incorrect time in mode-line


From: Colin Baxter
Subject: Re: timeclock gives incorrect time in mode-line
Date: Thu, 26 Aug 2021 09:17:16 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>>>>> Colin Baxter <m43cap@yandex.com> writes:
    >> Hello, I have my timeclock workday set to 12 hours by means of

    >> (setq timeclock-workday (* 12 60 60))

    >> This works fine in emacs-27.2 and correctly displays the
    >> remaining time in the mode-line.

    >> This appears not to be the case for emacs-28.0.50, which insists
    >> on assuming the workday to be the default 8 hours when displaying
    >> the remaining time in the mode-line.

    >> The differences between the timeclock.el files for 27.2 and
    >> 28.0.50 seem pretty minimal and I don't see why the latter should
    >> ignore my setting for timeclock-workday. I have checked the
    >> variable via C-h v timeclock-workday <RET> in emacs-28.0.50 and
    >> it does indeed give the value I set, namely 43200 (with the
    >> original value as 28800).

    > The issue seems to be with the setting

    > (timeclock-mode-line-display 1)

    > in my ~/.emacs. If I comment out that setting and allow
    > emacs-28.0.50 to display the remaining time by doing M-x
    > timeclock-mode-line-display <RET> then the remaining time is
    > displayed correctly.

It seems to be the case with emacs-28.0.50 that the setting
(timeclock-mode-line-display 1) must come after any setting of the
timeclock-workday in ~/.emacs. If this is done then all seems to work as
before.

Best wishes,

Colin Baxter.



reply via email to

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