From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#65902: 29.0.92; emacsclient-mail.desktop fails due to complicated escaping Date: Wed, 13 Sep 2023 17:50:26 +0300 Message-ID: <83ttrym8jx.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32655"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65902@debbugs.gnu.org To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 13 16:51:23 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qgRD9-0008H3-8z for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Sep 2023 16:51:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgRCr-0002od-4h; Wed, 13 Sep 2023 10:51:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgRCo-0002fm-NC for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2023 10:51:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgRCj-0000kk-8o for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2023 10:50:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qgRCo-00028Q-H0 for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2023 10:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Sep 2023 14:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65902 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 65902-submit@debbugs.gnu.org id=B65902.16946166548191 (code B ref 65902); Wed, 13 Sep 2023 14:51:02 +0000 Original-Received: (at 65902) by debbugs.gnu.org; 13 Sep 2023 14:50:54 +0000 Original-Received: from localhost ([127.0.0.1]:35605 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgRCg-000282-0k for submit@debbugs.gnu.org; Wed, 13 Sep 2023 10:50:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgRCf-00027q-AJ for 65902@debbugs.gnu.org; Wed, 13 Sep 2023 10:50:53 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgRCT-0000jg-Et; Wed, 13 Sep 2023 10:50:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=kJ8O4HxBrVPJT1J0JJJg+EPSd9GtTPE823JAwxNEdaY=; b=mvvfnpGu/Hm4 G5msQsSIlARsxCEEbcWGKtL2DY/9NSxrNvmPZ6w0FVbudF1rJIsJCwA1ptvbWPuctCqsk0FpJhVqE B/jZGakfxMPBvou3Qzamqpl7WJNEBtIz1vrd2pGoOsBVmqHgPY6Hb6qj7cWnIcpVqmXqe1HXKAqMv 18yq2eXN02So9DOcIb8Jf5bZup7LJlgF6uO9PyjmVnnFGAOIGOaJDSgt6po0FD5l9vNF8iiGbqa4N NwuwflAS6bTetM/cN90a1FYoZ5YkwqCk8Gnvs4zXxF+HWncfRpYQOTlp8uL4dRhScCuildWhbSXhp I3+wUxKTuwP44UEvT6j6Qg==; In-Reply-To: (message from Spencer Baugh on Wed, 13 Sep 2023 14:08:01 +0000 (UTC)) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:270303 Archived-At: > Date: Wed, 13 Sep 2023 14:08:01 +0000 (UTC) > From: Spencer Baugh > Cc: 65902@debbugs.gnu.org > > On Sep 13, 2023 09:26, Eli Zaretskii 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.