all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Amin Bandali <bandali@gnu.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: Wed, 05 Aug 2020 10:31:41 +0200	[thread overview]
Message-ID: <87a6z9fq8i.fsf@gnus.org> (raw)
In-Reply-To: <878sewgas1.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 02 Aug 2020 20:31:10 +0200")

Lars Ingebrigtsen <larsi@gnus.org> writes:

> So just upcase and add a P to the start and we're there.  :-)

It was a bit more work, and time specs are ambiguous (1m means a month
or a minute?), but I've now implemented this.

The ambiguousness means that this could probably be tweaked a bit, but I
made the prompting thing into its own function, and we can more it to a
more central location if something else wants to use it.  And then tweak
further, if necessary.  For instance, one may do a DWIM check on the
string:  1m4m clearly means 1 month and four minutes and 2d4m means two
days and four minutes, while 1y1m is terminally ambiguous.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





      reply	other threads:[~2020-08-05  8:31 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
2020-08-02 18:31         ` Lars Ingebrigtsen
2020-08-05  8:31           ` Lars Ingebrigtsen [this message]

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=87a6z9fq8i.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=40137@debbugs.gnu.org \
    --cc=bandali@gnu.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.