GNU bug report logs -
#65902
29.0.92; emacsclient-mail.desktop fails due to complicated escaping
Previous Next
Reported by: sbaugh <at> catern.com
Date: Wed, 13 Sep 2023 02:25:01 UTC
Severity: normal
Tags: patch
Found in version 29.0.92
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Date: Wed, 13 Sep 2023 14:08:01 +0000 (UTC)
> From: Spencer Baugh <sbaugh <at> catern.com>
> Cc: 65902 <at> debbugs.gnu.org
>
> On Sep 13, 2023 09:26, Eli Zaretskii <eliz <at> gnu.org> wrote:
>
> > I am not sure what you're suggesting. Can you show how the equivalent
> > of:
> >
> > emacsclient --apply message-mailto -- %u
> >
> > would work with that design?
>
> emacsclient --qeval '(message-mailto %u)'
>
> I don't think this can work in general for arbitrary user input: what if %u is replaced with something
> that contains parentheses?
They are inside '..', so the only one who'd care is Emacs, not the
shell. In which case it's the job of whoever provides the value for
%u to handle that.
And anyway, how is that different from the same problem happening with
your suggested --funcall or --apply? they will bump into the same
issues.
> Let's not do that this time, okay?
>
> Agreed, I think we reached a consensus in that bug and now I am implementing that consensus.
AFAIU, there was no consensus reached there, so I'm unsure what are
you alluding to here.
This bug report was last modified 1 year and 204 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.