From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#65902: 29.0.92; emacsclient-mail.desktop fails due to complicated escaping Date: Sat, 16 Sep 2023 16:30:33 +0300 Message-ID: <87led6p7nq.fsf@thaodan.de> References: <871qf2vmi4.fsf@catern.com> <87v8ceu7o0.fsf@catern.com> <83fs3int3t.fsf@gnu.org> <87msxqtef4.fsf@catern.com> <837counr08.fsf@gnu.org> Reply-To: =?UTF-8?Q?Bj=C3=B6rn?= Bidar Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5143"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: sbaugh@catern.com, 65902@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 16 15:31:20 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 1qhVOJ-0001DO-Rp for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Sep 2023 15:31:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qhVOD-0004BS-9M; Sat, 16 Sep 2023 09:31:13 -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 1qhVNv-00042W-CG for bug-gnu-emacs@gnu.org; Sat, 16 Sep 2023 09:30: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 1qhVNv-00052p-4E for bug-gnu-emacs@gnu.org; Sat, 16 Sep 2023 09:30:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qhVO1-0002yn-Mb for bug-gnu-emacs@gnu.org; Sat, 16 Sep 2023 09:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Sep 2023 13:31: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.169487105511435 (code B ref 65902); Sat, 16 Sep 2023 13:31:01 +0000 Original-Received: (at 65902) by debbugs.gnu.org; 16 Sep 2023 13:30:55 +0000 Original-Received: from localhost ([127.0.0.1]:45662 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhVNu-0002yM-6W for submit@debbugs.gnu.org; Sat, 16 Sep 2023 09:30:54 -0400 Original-Received: from thaodan.de ([2a03:4000:4f:f15::1]:41908) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhVNk-0002y4-KZ for 65902@debbugs.gnu.org; Sat, 16 Sep 2023 09:30:52 -0400 Original-Received: from odin (dsl-trebng12-50dc77-87.dhcp.inet.fi [80.220.119.87]) by thaodan.de (Postfix) with ESMTPSA id 924A6D08DB9; Sat, 16 Sep 2023 16:30:34 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1694871034; bh=OMr2DkBKoklb0rf8O5r+s+Fo9YHmQNn93VgOV0UVCQQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=iACtfqENAQX5ulmwQsPzaEc6nXdfylJz5NmyL6Dvf9brBxfE/1Jx1dOZAVLS4ufBK tJBBRaar09M3pVU/raaQNzIBkAfqEPRhmX9qWR6tIIpf4q1J5lLKIGeoaC1OBVm0EX apkhFh+GD7AZzP++NXzagRGBst6O58LCKDs9a5xIPKaUG+7J9P5I1ngdkm872jzHo6 yPxnMsnqCtFMFtpUeExVwLfoLLAfz16NClhYSB3P++c299nm2Zx0jhXjLKhjYXb8sb 812ZgjmLNo/UrD608m+z2UGijC1qsCMig8e6Z6H9CfGQtzlzDicasG3AAvBgs560f4 9L0/qkurS7Etw/R2DJoyodY95KG4xW8Ft6ueJr3q9DPvgvxGVEEPj6li5P6aJ4BfVW O8ZdnrKGC98bzCRaB4FNoU9sXtURwCSXz3+F+GrdE0h8VPeDLUJAVFhCgrXCnVpJ32 lsBLkufWDef9IH/13oJx1am+lL+ms6wAyFfDTx0XXkODfNP9jsiCdek3EOu30m1uFy qXAU/0myPkYf+s3BkseY+R2Myk8UdRsXFVHpxnSETth1tBxoDK6mshdXAUsFcWifaV IN9qGoBlCdA52all88idf12ykOCu9WtcAVrk79w/MVsmlryjFyMZWXlJt2p9tVRkmJ Peuj07kbW5Ev9jecydPtbels= In-Reply-To: <837counr08.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 13 Sep 2023 16:26:31 +0300") Autocrypt: addr=bjorn.bidar@thaodan.de; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlH 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:270616 Archived-At: Eli Zaretskii writes: >> From: sbaugh@catern.com >> Date: Wed, 13 Sep 2023 13:01:52 +0000 (UTC) >> Cc: 65902@debbugs.gnu.org >> >> Eli Zaretskii writes: >> >> > Is quoting the only issue with --eval? If so, why not have a variant >> > of --eval that quotes the argument by itself, like you do in the >> > patch, i.e. by using quote_argument, instead of inventing yet another >> > weird option with its own small DSL and extra-special rules of how to >> > write the command line with it? >> >> 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)' > Try desktop-file-validate. ' is a reserved character. I have a desktop file for a similar use case, I validated that desktop file using desktop-file-validate and got the following output: emacs-gnus.desktop: error: value "emacsclient --create-frame --eval '(gnus)'" for key "Exec" in group "Desktop Entry" contains a reserved character ''' outside of a quote