all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Colin Baxter <m43cap@yandex.com>
To: emacs-devel@gnu.org
Subject: Re: timeclock gives incorrect time in mode-line
Date: Thu, 26 Aug 2021 09:17:16 +0100	[thread overview]
Message-ID: <871r6goc1f.fsf@yandex.com> (raw)
In-Reply-To: <875yvsaaoc.fsf@yandex.com> (Colin Baxter's message of "Thu, 26 Aug 2021 09:10:27 +0100")

>>>>> 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	other threads:[~2021-08-26  8:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2021-08-26 14:20     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871r6goc1f.fsf@yandex.com \
    --to=m43cap@yandex.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.