From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Spencer Baugh Newsgroups: gmane.emacs.bugs Subject: bug#65902: 29.0.92; emacsclient-mail.desktop fails due to complicated escaping Date: Thu, 14 Sep 2023 11:10:44 -0400 Message-ID: References: <80d8aeb0-c9f1-410f-b83d-60f83ca5b3af@email.android.com> <83led8ls3z.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15951"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: jporterbugs@gmail.com, Spencer Baugh , 65902@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 14 17:12:22 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 1qgo10-0003tV-4d for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Sep 2023 17:12:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgo0b-0007B3-W0; Thu, 14 Sep 2023 11:11:58 -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 1qgo0a-0007Ae-8y for bug-gnu-emacs@gnu.org; Thu, 14 Sep 2023 11:11:56 -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 1qgo0a-0007kO-1C for bug-gnu-emacs@gnu.org; Thu, 14 Sep 2023 11:11:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qgo0f-00066m-Lj for bug-gnu-emacs@gnu.org; Thu, 14 Sep 2023 11:12:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Spencer Baugh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Sep 2023 15:12:01 +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.169470426423414 (code B ref 65902); Thu, 14 Sep 2023 15:12:01 +0000 Original-Received: (at 65902) by debbugs.gnu.org; 14 Sep 2023 15:11:04 +0000 Original-Received: from localhost ([127.0.0.1]:40895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgnzg-00065G-Ag for submit@debbugs.gnu.org; Thu, 14 Sep 2023 11:11:03 -0400 Original-Received: from mxout5.mail.janestreet.com ([64.215.233.18]:53529) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgnzc-00064y-7O for 65902@debbugs.gnu.org; Thu, 14 Sep 2023 11:10:59 -0400 In-Reply-To: <83led8ls3z.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 14 Sep 2023 17:57:52 +0300") 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:270444 Archived-At: Eli Zaretskii writes: >> Date: Thu, 14 Sep 2023 14:48:14 +0000 (UTC) >> From: Spencer Baugh >> Cc: Spencer Baugh , jporterbugs@gmail.com, >> 65902@debbugs.gnu.org >> >> Okay, if I do this without making modifications to emacsclient.c or the server protocol, would that be >> more acceptable? The approach I described in another email, with server-eval-args-left, all it adds is >> a new variable. > > I cannot find the description of that approach. What did it say? We could make a command-line-args-left equivalent for emacsclient, called server-eval-args-left, which contains the FILE arguments passed to emacsclient as strings. This can be done without making any changes to emacsclient.c or the server protocol. Then the message-mailto use case would look like this: emacsclient --eval '(message-mailto (pop server-eval-args-left))' %u This would match how message-mailto uses (pop command-line-args-left) internally. This would work for all the use-cases I described before; I'd be very happy with this solution (actually, I'm starting to prefer it to --apply). And again, it doesn't change emacsclient.c or the server protocol.