* timeclock gives incorrect time in mode-line
@ 2021-08-26 7:44 Colin Baxter
2021-08-26 8:10 ` Colin Baxter
0 siblings, 1 reply; 4+ messages in thread
From: Colin Baxter @ 2021-08-26 7:44 UTC (permalink / raw)
To: emacs-devel
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).
I'd be grateful for suggestions as to what to look for in locating the
problem.
Best wishes,
Colin Baxter.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: timeclock gives incorrect time in mode-line
2021-08-26 7:44 timeclock gives incorrect time in mode-line Colin Baxter
@ 2021-08-26 8:10 ` Colin Baxter
2021-08-26 8:17 ` Colin Baxter
0 siblings, 1 reply; 4+ messages in thread
From: Colin Baxter @ 2021-08-26 8:10 UTC (permalink / raw)
To: emacs-devel
>>>>> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: timeclock gives incorrect time in mode-line
2021-08-26 8:10 ` Colin Baxter
@ 2021-08-26 8:17 ` Colin Baxter
2021-08-26 14:20 ` Lars Ingebrigtsen
0 siblings, 1 reply; 4+ messages in thread
From: Colin Baxter @ 2021-08-26 8:17 UTC (permalink / raw)
To: emacs-devel
>>>>> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: timeclock gives incorrect time in mode-line
2021-08-26 8:17 ` Colin Baxter
@ 2021-08-26 14:20 ` Lars Ingebrigtsen
0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2021-08-26 14:20 UTC (permalink / raw)
To: Colin Baxter; +Cc: emacs-devel
Colin Baxter <m43cap@yandex.com> writes:
> 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.
I've tried various variations of this recipe, but I'm not sure what I'm
looking for here (having never used timeclock-mode-line-display before).
Can you open a bug report that includes a recipe, starting from "emacs
-Q", for how to reproduce the problem?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-08-26 14:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-26 7:44 timeclock gives incorrect time in mode-line Colin Baxter
2021-08-26 8:10 ` Colin Baxter
2021-08-26 8:17 ` Colin Baxter
2021-08-26 14:20 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.