From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.bugs Subject: bug#65902: 29.0.92; emacsclient-mail.desktop fails due to complicated escaping Date: Tue, 12 Sep 2023 20:46:54 -0700 Message-ID: References: <871qf2vmi4.fsf@catern.com> <87v8ceu7o0.fsf@catern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14780"; mail-complaints-to="usenet@ciao.gmane.io" To: sbaugh@catern.com, 65902@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 13 05:48: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 1qgGrU-0003fS-D3 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Sep 2023 05:48:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgGrG-0002q0-TD; Tue, 12 Sep 2023 23:48:06 -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 1qgGrA-0002pl-JE for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2023 23:48:01 -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 1qgGr8-00077D-6I for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2023 23:47:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qgGrC-0004ca-Mn for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2023 23:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Sep 2023 03:48: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.169457684617631 (code B ref 65902); Wed, 13 Sep 2023 03:48:02 +0000 Original-Received: (at 65902) by debbugs.gnu.org; 13 Sep 2023 03:47:26 +0000 Original-Received: from localhost ([127.0.0.1]:60447 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgGqN-0004a2-56 for submit@debbugs.gnu.org; Tue, 12 Sep 2023 23:47:26 -0400 Original-Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]:48531) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgGqJ-0004ZZ-8j for 65902@debbugs.gnu.org; Tue, 12 Sep 2023 23:47:08 -0400 Original-Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-68a3ced3ec6so5609887b3a.1 for <65902@debbugs.gnu.org>; Tue, 12 Sep 2023 20:47:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694576816; x=1695181616; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=8r0h3+iKa5ZcKRXM0yIotnlWhK6cEFFjVVZcJASXtGg=; b=HFLe2tFm7CoWXa7PbrCt/ubJ2N14aPg9iic8C6CH+9wvfjxJcl4kVNqDt/p7m+qwZD 7Qn9wuoIuQkC0fmZXoUknSnqxqRu/f1fz9IjaJzwWsRygm9Zqn89pDas9somGMq1iCbt gVIyfBNgIXlfXJ56+sUCeQf6GVGnoDlIYJ9VsNQfcf5LM40EgPuNge3vUMMrtOwaKqEa x1Q+/hUoOC4YZa78bz/CXg3qmgvzxnz8iW3BehtRu4J9jPd5/lZGN6DwIWPlgVQtpD+G pZf+h72dkyxK28i9bHTtPPn9isztLLVJS659SFX92dUjGvSSpXFHXs82VqBJBSef35n0 Ul1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694576816; x=1695181616; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8r0h3+iKa5ZcKRXM0yIotnlWhK6cEFFjVVZcJASXtGg=; b=qBH4tjzZnCCsEGJ6ScU6qqVk+DQt4+1jxFzRBCYb9GEOTrBZP/SBTya0Ta7hfO+suD 8iclti31+VVZRM2rT6aT8a79WLlgKJgwMBUIkB0/qVuj/ZENF5e8aW8/D2dXNJqRm6ha 8paTG2wvwl/cGUAcRiKqZQXFsn/4MzxLDvddIQ3rOgmkMOd7U4Lqqx39nmXHknSfWElg V6HvR6Sd2Pc8D6mwA9HPN5ismgFZAX6UyEnplvKJf9cZIBm1/9UL7yG5epUPrAfsmueC KZMIInT+R4+vUtJgf+qt8ihredhgJwMP72/KNFiW0E1B0Y7bOC3IAe4BdHymJJiOdBfA bhlw== X-Gm-Message-State: AOJu0YyMdtTDefCFs1IMoYR6psahXHxvtYLhF7iCFl7OxSTKcwXHPjKd GNG3BCrArL7KnN/cnqhHIGk= X-Google-Smtp-Source: AGHT+IFS4ncrJyQIrNY64Bevs6dCWQb2hRfpvvmjR5Av2VV2rCckw6iy1wKqtzuA7T2EaAhK0FtwNg== X-Received: by 2002:a05:6a20:4324:b0:156:9c45:bf30 with SMTP id h36-20020a056a20432400b001569c45bf30mr1475120pzk.53.1694576816171; Tue, 12 Sep 2023 20:46:56 -0700 (PDT) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id h4-20020a170902f54400b001b8c689060dsm9285425plf.28.2023.09.12.20.46.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Sep 2023 20:46:55 -0700 (PDT) Content-Language: en-US In-Reply-To: <87v8ceu7o0.fsf@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:270244 Archived-At: On 9/12/2023 7:30 PM, sbaugh@catern.com wrote: > tags 65902 + patch > quit > > 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 think this is actually the same as the (very long) bug#57752, so thanks for working on this. (It was on my list of things to get to, but I just haven't had time.) Over there, we agreed that something like your patch is wanted, albeit with two caveats: 1. Since "--funcall" for the regular "emacs" binary doesn't pass arguments to the function, how about we call this option "--apply" instead? 2. It would be great if we could get "--apply" for the regular "emacs" binary too, so that both programs work the same way (at least in this regard). Even better, if you could forward "--apply" from "emacsclient" to the alternate editor (which would be "emacs" 99% of the time) automatically. That works, in a roundabout way, for the Emacs daemon, but not if the alternate editor is "emacs".