From: Amin Bandali <bandali@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 40137@debbugs.gnu.org, Phil Hagelberg <phil@hagelb.org>
Subject: bug#40137: 25.1; ERC ignore function should allow specifying a limited duration
Date: Sun, 02 Aug 2020 14:16:04 -0400 [thread overview]
Message-ID: <87a6zczzff.fsf@gnu.org> (raw)
In-Reply-To: <87k0yhgenr.fsf@gnus.org>
[-- Attachment #1: Type: text/plain, Size: 1481 bytes --]
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Amin Bandali <bandali@gnu.org> writes:
>
>>> Anyway, if this were to be implemented, in what format would the
>>> timeout be queried for? Perhaps hours?
>>
>> Irssi seems to use seconds [0]. But I think minutes would be a nice
>> compromise between seconds and hours. Though, ideally, we'd be able to
>> parse relative time strings like "+1h", "+3d", "+2w", and so on.
>>
>> [0]: <https://irssi.org/documentation/help/ignore/>
>>
>> Do you know if Emacs has functions for parsing such time formats outside
>> Org? This seems like one of many situations they would come in handy.
>
> Yeah, that would be handy... I think. Or perhaps not -- asking people
> to learn a new "language" to just set a timeout is perhaps not ideal...
>
Would it really be that big of a burden? I'd imagine 10m, 2h, ... to
be familiar/intuitive enough for most users, especially those with an
Org background. Further, to alleviate this, we would set a default unit
for when none is provided (e.g. take 10 to mean 10m).
>
> Anyway, I think hours would make sense -- it's a human-scale unit. If
> people want a quarter hour, they can just say 0.15. Inputting seconds
> sounds kinda ... excessively precise.
Agreed on seconds being excessive, but I would probably prefer minutes
over hours.
Anyhow, if anyone knows functions for parsing relative dates/times, I'd
appreciate it if you could point them out to me.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 857 bytes --]
next prev parent reply other threads:[~2020-08-02 18:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-19 18:59 bug#40137: 25.1; ERC ignore function should allow specifying a limited duration Phil Hagelberg
2020-05-03 1:00 ` bug#40137: documentation for application developers? Thovthe via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-08-02 7:25 ` bug#40137: 25.1; ERC ignore function should allow specifying a limited duration Lars Ingebrigtsen
2020-08-02 14:43 ` Amin Bandali
2020-08-02 17:07 ` Lars Ingebrigtsen
2020-08-02 18:16 ` Amin Bandali [this message]
2020-08-02 18:31 ` Lars Ingebrigtsen
2020-08-05 8:31 ` 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=87a6zczzff.fsf@gnu.org \
--to=bandali@gnu.org \
--cc=40137@debbugs.gnu.org \
--cc=larsi@gnus.org \
--cc=phil@hagelb.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.