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 15:41:10 +0300 Message-ID: <83fs3int3t.fsf@gnu.org> References: <871qf2vmi4.fsf@catern.com> <87v8ceu7o0.fsf@catern.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17454"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65902@debbugs.gnu.org To: sbaugh@catern.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 13 14:42:32 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 1qgPCS-0004Ma-2w for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Sep 2023 14:42:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgPBv-0001He-Ie; Wed, 13 Sep 2023 08:41:59 -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 1qgPBt-0001FC-6Q for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2023 08:41:57 -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 1qgPBs-0007Hd-Ug for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2023 08:41:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qgPBy-000728-3z for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2023 08:42: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 12:42: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.169460889527003 (code B ref 65902); Wed, 13 Sep 2023 12:42:02 +0000 Original-Received: (at 65902) by debbugs.gnu.org; 13 Sep 2023 12:41:35 +0000 Original-Received: from localhost ([127.0.0.1]:32866 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgPBW-00071S-IO for submit@debbugs.gnu.org; Wed, 13 Sep 2023 08:41:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgPBU-00071G-So for 65902@debbugs.gnu.org; Wed, 13 Sep 2023 08:41:34 -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 1qgPBK-0007D0-2f; Wed, 13 Sep 2023 08:41:22 -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=v4lN26fQLkJh8me+5Z3njqz9SrwklSYjbGCWvgj0aF8=; b=FPlIceSHgsbS jfthhY2VWirkZGoHsjFoVlwtRDQgx6Ecfcl5jfi5f8/XQX10ds6OnrYk3EQu6J1zKI/KSJPOc8RlH EIg0zYD30xE3kdgdqcJA88P4nzn2TE6aB0V8CpxIwreNicpiMYg4fVrfGk4D+6b9q6Jv5zRTGg7Iq FSYtGoDd6nDjuEamBAau6wXQqeUB8hdKwrwwHoozfDjt+kdb18/8c8hX+cMfdMylFdSP3ZdfqBGxf U2Wgzpdg4AyBc4LgaJB1wtIsguK9pBv/MIX1XK66pxHzpVkpgtkBbRwdkf6tlDgLoF8x4Z8G8eWZk uprisk7Tf7OvEs/JxpwFXA==; In-Reply-To: <87v8ceu7o0.fsf@catern.com> (sbaugh@catern.com) 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:270267 Archived-At: > From: sbaugh@catern.com > Date: Wed, 13 Sep 2023 02:30:08 +0000 (UTC) > > This patch avoids the complicated scripting needed for > emacsclient-mail.desktop by adding a new flag to emacsclient, --funcall, > which mirrors emacs --funcall and allows emacsclient-mail.desktop to be > basically the same as emacs-mail.desktop. > > I expect this to also be useful in other places; the need to escape > arbitrary inputs before passing them to emacsclient is frequently > annoying. 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? More generally, I cannot say I'm happy that we basically are reiterating everything that was said in bug#57752 instead of picking up where it left off. Why is it useful to have another discussion like that one (which will probably end up at the same impasse)?