From: Daniel Pettersson <daniel@dpettersson.net>
To: 62444@debbugs.gnu.org
Subject: bug#62444: [PATCH] erc: Fix "dcc get" flag parsing
Date: Wed, 5 Apr 2023 20:27:33 +0200 [thread overview]
Message-ID: <CAM-j=qv-qjg4vnsvqTzsS55pRYC05vrfzK-61bV4uLQfSj3GpQ@mail.gmail.com> (raw)
In-Reply-To: <CAM-j=quS5Qq3hGnQmeeL5szKSiDsUbVXM2fDCEPDo6c_4c3taA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2275 bytes --]
Hi J.P.,
Sorry for the delay for some reason the responses bounced my mailbox,
first and foremost I would like to thank you for your patience and
clarity in your response.
> Lastly, I have to mention the dreaded copyright thing because I couldn't
> tell from the discussion for bug#57905 whether you ended up filing. If
> not and we go with changes resembling those you've proposed, you'll
> probably want to do so.
Attached my assignment.
> AFAIK, nicknames can't normally begin with a ?-, and attempting to
> procure one like that will earn you a
>
> :mercury.libera.chat 432 testing123 -testing123 :Erroneous nickname
>
> or similar. Of course, if you know of any popular servers where this
> isn't the case, please share.
I didn't manage to find a case where ?- is allowed, don't really know
where I got that idea from.
> In the interest of preserving some symmetry with DCC SEND, which quotes
> its outgoing arguments, I think erc-dcc should parse its own input line
> rather than rely on the treatment from `erc-extract-command-from-line'.
> This approach seems to work in cursory trials, but a few complications
> arise when it comes to completion (also present in ERC <5.5.), although
> there are workarounds. (How's your pcomplete-fu?)
I can't say that I am one of the enlightened ones ;).
> Alas, the following are just mechanical, style-related nits. Ignore them
> if you wish, but please see the attached patches for a reprise of your
> initial proposal with the changes I've outlined applied atop. (The first
> two patches are just thrown in for convenience but ultimately
> unrelated.)
This is great, reminds me that I have some homework here; coding
standard, reading some more elisp in emacs packages and the bug
reporting.
Sorry about that.
> Some of the above, such as (setq foo (cons x foo)) instead of `push' and
> `seq-contains-p' instead of `member', might distract a few readers. I
> don't really care, personally.
I'll also add that I was not really happy with my implementation as it
was far from elegant.
> As mentioned, I've taken a slightly different tack WRT parsing based on
> the presence of pre-quoted args. Please check it out, give feedback, and
> by all means iterate.
I don't have any feedback, looks great to me!
Thanks!
[-- Attachment #2: Pettersson.GNU.EMACS.1875138.pdf --]
[-- Type: application/pdf, Size: 1102367 bytes --]
next prev parent reply other threads:[~2023-04-05 18:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-25 15:25 bug#62444: [PATCH] erc: Fix "dcc get" flag parsing Daniel Pettersson
2023-03-26 4:10 ` J.P.
[not found] ` <87a600xidp.fsf@neverwas.me>
2023-03-27 3:50 ` J.P.
2023-04-05 18:27 ` Daniel Pettersson [this message]
2023-04-08 22:53 ` J.P.
2023-07-08 3:22 ` Fernando de Morais
[not found] ` <878rbrxfkl.fsf@gmail.com>
2023-07-08 4:24 ` J.P.
2023-07-08 12:56 ` Fernando de Morais
[not found] ` <87sf9ywohp.fsf@gmail.com>
2023-07-08 14:18 ` J.P.
[not found] ` <87ttue32rd.fsf@neverwas.me>
2023-07-09 18:02 ` Fernando de Morais
[not found] ` <871qhh55g2.fsf@gmail.com>
2023-07-14 2:22 ` J.P.
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='CAM-j=qv-qjg4vnsvqTzsS55pRYC05vrfzK-61bV4uLQfSj3GpQ@mail.gmail.com' \
--to=daniel@dpettersson.net \
--cc=62444@debbugs.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.