From: Arthur Miller <arthur.miller@live.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 52235@debbugs.gnu.org
Subject: bug#52235: 29.0.50; Suggestion: refactor time.el into a more general 'clock' framework
Date: Fri, 03 Dec 2021 00:48:05 +0100 [thread overview]
Message-ID: <AM9PR09MB4977B317437319F3CA43BCE696699@AM9PR09MB4977.eurprd09.prod.outlook.com> (raw)
In-Reply-To: <83mtljpbzm.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 02 Dec 2021 04:55:39 -0500")
Eli Zaretskii <eliz@gnu.org> writes:
> Because it doesn't synchronize with clock... what happens?
>
> And what do you mean by "doesn't synchronize with clock that Emacs
> displays"? The time comes from the same source, so how can it be not
> synchronized? in what sense?
Lars clarified about that. What I meant was what "wall clock" usually mean in
this context; I didn't understand that "integer multiple of REPEAT" (as in docs)
meant actually that.
> My point is that I don't see why this feature has to touch
> display-time-mode. That is not clean, IMO. It should be a separate
> feature that uses timers. The feature could create a timer the first
> time it is requested, and then any additional clients could reuse the
> same timer. Of course, if you want to use a single timer, you'd still
> need to solve the potentially different needs of each application: for
> example, one of them may wish to be notified each second, the other
> each hour.
Indeed, you are correct about that one. I am a bit used to Emacs "hook"
frameworking, so I just wanted to have a hook to add somewhere and get my clock
going :).
But yes, you are right, one clock might wish to display seconds while
another one only minutes.
next prev parent reply other threads:[~2021-12-02 23:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <DB9PR09MB49867F87628009D4F53B756E96689@DB9PR09MB4986.eurprd09.prod.outlook.com>
2021-12-02 7:26 ` bug#52235: 29.0.50; Suggestion: refactor time.el into a more general 'clock' framework Eli Zaretskii
2021-12-02 9:19 ` Arthur Miller
2021-12-02 9:55 ` Eli Zaretskii
2021-12-02 23:48 ` Arthur Miller [this message]
2021-12-02 8:29 ` Lars Ingebrigtsen
2021-12-02 9:28 ` Arthur Miller
2021-12-02 9:55 ` Lars Ingebrigtsen
2021-12-02 23:36 ` Arthur Miller
2021-12-03 16:23 ` Lars Ingebrigtsen
2021-12-03 0:52 ` Stefan Kangas
2021-12-03 7:26 ` Eli Zaretskii
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AM9PR09MB4977B317437319F3CA43BCE696699@AM9PR09MB4977.eurprd09.prod.outlook.com \
--to=arthur.miller@live.com \
--cc=52235@debbugs.gnu.org \
--cc=eliz@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).