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:43:20 +0300 Message-ID: <87ediyp72f.fsf@thaodan.de> References: <83ttrym8jx.fsf@gnu.org> <83led9nay9.fsf@gnu.org> <66a6c09e-3b61-d913-5638-4c804fb826f6@gmail.com> <83edj1mja5.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="34335"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Jim Porter , sbaugh@catern.com, sbaugh@janestreet.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:44:42 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 1qhVbF-0008co-DU for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Sep 2023 15:44:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qhVaW-0002Lz-ST; Sat, 16 Sep 2023 09:43:56 -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 1qhVaV-0002Lg-Qf for bug-gnu-emacs@gnu.org; Sat, 16 Sep 2023 09:43:55 -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 1qhVaV-0008JN-IP for bug-gnu-emacs@gnu.org; Sat, 16 Sep 2023 09:43:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qhVac-0003Io-I1 for bug-gnu-emacs@gnu.org; Sat, 16 Sep 2023 09:44:02 -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:44: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.169487181212621 (code B ref 65902); Sat, 16 Sep 2023 13:44:02 +0000 Original-Received: (at 65902) by debbugs.gnu.org; 16 Sep 2023 13:43:32 +0000 Original-Received: from localhost ([127.0.0.1]:45691 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhVa7-0003HU-OV for submit@debbugs.gnu.org; Sat, 16 Sep 2023 09:43:32 -0400 Original-Received: from thaodan.de ([2a03:4000:4f:f15::1]:49304) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhVa4-0003HL-UQ for 65902@debbugs.gnu.org; Sat, 16 Sep 2023 09:43:30 -0400 Original-Received: from odin (dsl-trebng12-50dc77-87.dhcp.inet.fi [80.220.119.87]) by thaodan.de (Postfix) with ESMTPSA id E6C0ED08DB9; Sat, 16 Sep 2023 16:43:20 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1694871801; bh=lXkdE3c2A4nPK1b83I8UlBQscsqw6QDfGQDMgpAshco=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=sL1mk77Pbxc0txgtnoYH87Fs0iObWrTb8UePIQrM52QOHa2kZfb4HmDoFZzYrPkBX PWblrQx0Jls4jL988cN5uwzg+kp1lc4GmbaExVnvnFOZ8l15slnksiQ+kX6NQqKAQw RVzQOsQRGFmBOi1UZrF5EiwIIvukUBrCf1yiwEP116M4DNJkyw17glxdAndMA+LRsM u7dZC0DDn3JbqlwLBJdAANmk5DaRhHPCujTxy2F55dXkk2TzdaJzBtuBTAKWwEHT1s DiXo1XEh+vocTkobSAuy54coZsS9v2+Pami3PMyCR3wSsqc5AZODxgOCGJnHUO39op 7Vp/D3Oljwjod6BlZa7GetB+EIFqOSEbCOFdnjwxhS1/+Q9mBZeok+IwocHy2FP7vR MtI9hc0Nr1d0ogV6rls2ZuGz6wn2WFbhYHD9QLeiLCwcXn0ZE+eRI46ZcDc7OAUINr yDQnWfXNH9eL4qOhV7ldzofRLJEVdqNHyYbt4wCBu5I0wuT7UvZkBPj2L00Pzhc5VJ qZGuzUIKctGHjNguq600g59mhv0Yob6hT3kl6tHAWQSS1rBYbk+iGODXc3fFbcpHFv GgU4vIz/XUIxNHP3e3aVM/8RE7NFdE8mIYSqcoBrOPY6kwYr5RbKjQFnw5Qbnk6Cf5 wgyW1CtKhTRV05N1UGuokuoQ= In-Reply-To: <83edj1mja5.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 14 Sep 2023 08:10:58 +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:270617 Archived-At: Eli Zaretskii writes: >> Date: Wed, 13 Sep 2023 12:33:01 -0700 >> Cc: sbaugh@catern.com, 65902@debbugs.gnu.org >> From: Jim Porter >> >> On 9/13/2023 12:13 PM, Eli Zaretskii wrote: >> > And I don't understand why we need to add any options to Emacs itself, >> > btw. The suggestion to have some "symmetry" here was one of the >> > reasons that discussion got nowhere. So let's learn from that >> > mistake, at least. >> >> There's a practical benefit to this. If you have $EDITOR set in your >> environment to something like "emacsclient --alternate-editor=emacs", >> then it would be nice if you could say this: >> >> $EDITOR --apply some-func arg1 arg2 >> >> and have it do the same thing whether or not there was already an Emacs >> server running. The symmetry between the two commands (plus proper >> argument forwarding) would make that work. >> >> However, if people can't agree, then we could probably drop that part. >> To me, it sounds like people *do* agree that this would be good to have >> though. > > People might agree, but I don't. Please consider the perspective. > This started as an obscure and rare problem in a desktop file (which > we provided solely out of good will, since it really isn't our job to > do so, it's the job of downstream distros). Programs ship their own desktop files. It is not the job of the downstream to provide desktop files unless it is because of a patch from said downstream. In any case it doesn't make sense for each downstream to ship their own desktop file and fix their own. >From my pov letting Emacs do all work in passing arguments is the best solution as escaping is error prone. I haven't seen any program besides Emacs using escaped shell syntax to pass the escaped syntax of their target language. Most just have options to pass the target file or deal with the dbus activation/interface.