From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#57752: 28.1.91; emacsclient-mail.desktop doesn't work for me Date: Fri, 16 Sep 2022 16:18:00 +0200 Message-ID: <877d23iesn.fsf@gmail.com> References: <87r10gcum8.fsf@cassou.me> <87bkrj31r0.fsf@gnus.org> <87y1unxv15.fsf@cassou.me> <83leqn4cji.fsf@gnu.org> <87v8prxtox.fsf@cassou.me> <878rmjy78x.fsf@gnus.org> <87bkrfiqbg.fsf@gmail.com> <87bkrfwrqu.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11901"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Damien Cassou , Jim Porter , Eli Zaretskii , git@mavit.org.uk, 57752@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 16 16:19:23 2022 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 1oZCBe-0002tr-Bf for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Sep 2022 16:19:22 +0200 Original-Received: from localhost ([::1]:45540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZCBc-0002kT-RX for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Sep 2022 10:19:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43432) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZCBK-0002iI-HD for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2022 10:19:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44764) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oZCBK-0003y1-8m for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2022 10:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oZCBJ-0000fp-Va for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2022 10:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Sep 2022 14:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57752 X-GNU-PR-Package: emacs Original-Received: via spool by 57752-submit@debbugs.gnu.org id=B57752.16633378892519 (code B ref 57752); Fri, 16 Sep 2022 14:19:01 +0000 Original-Received: (at 57752) by debbugs.gnu.org; 16 Sep 2022 14:18:09 +0000 Original-Received: from localhost ([127.0.0.1]:43842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZCAS-0000eZ-Pk for submit@debbugs.gnu.org; Fri, 16 Sep 2022 10:18:09 -0400 Original-Received: from mail-wr1-f53.google.com ([209.85.221.53]:43528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZCAR-0000eK-UK for 57752@debbugs.gnu.org; Fri, 16 Sep 2022 10:18:08 -0400 Original-Received: by mail-wr1-f53.google.com with SMTP id t7so36221251wrm.10 for <57752@debbugs.gnu.org>; Fri, 16 Sep 2022 07:18:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date; bh=3R7mjgneDye6XgqdnYXaEjEEzSvJ8bEgGSigB22wiqs=; b=nr5Fsn+0vDWyhw1Zf7kg33zsUiAzZCs+CTE/vcBwLBS6v5tcutps7gbJYf1imavI1N IRLka5xHAPqLRSNIR+r7EuovInE34UrgzrcYEj3hfORU+ncp5x1ndCQ6IXIIBcA1vTjg OBuEY2JL3Q/bexo5uRjn/r5JZep8qGOSschdWSJlSBMCaYbvW9zBllKIA1SwrKZTfwAA k+Npn5Hhp1BLEByhjUq6y//fyyU/wDGJLPF63PnHPECg7ZrPIbESrbM9Ad7Czb9F7yxz S+hhjMowb3gXup/C6eS27q13T7Jyupb3ZLiwTS12ZlZWJ+td7mdphZZnoSYyCLxyM2Rx l2LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=3R7mjgneDye6XgqdnYXaEjEEzSvJ8bEgGSigB22wiqs=; b=ruGc8DadAntAT2+W6K7Uxc4AROw1EAJYjzLFBai8Y+bwFadhzF3r7jHG7IjAclbpnW NqdATY6+mLEeURlMpPnOKqs7HMwTCpxBqpBTmbySzIQz2GDyn8q9mYHbaQa3BpC33jCz LdI53sJN0hdCQa0JFZ1OuDVohrVnrtYMt52JrX38cXnzVmFOeWfnOhfSXdtteK1XO3cd V9IQA/o7l8Zf9Gh+WY+JX/Oq381a8GnaBblmhisTcN7XEPUYRYyj3kP3pjvOMCsrccPG XKwRAOz0s9Agn11kdu71SiKwrXu9m92gPeOKCZymlnqfcsgSueU+PA43DEk0CjlVj1gm 8NWg== X-Gm-Message-State: ACrzQf2BwfZJSt9yALePqF/e8nNpz+i30UlrEC9ifu5FDd0/lKXiEXfW r+CZ0MhrrMnqC0jqlBx8u6hmJvtdWmE= X-Google-Smtp-Source: AMsMyM4Qsde+dLye4DQDyonVKqJ3zTwxIPWlbFt4iu/0n5hvNphhH8EBTarxtIcT2DQiUfv+Jp4vzw== X-Received: by 2002:a05:6000:2a3:b0:226:dff3:b031 with SMTP id l3-20020a05600002a300b00226dff3b031mr3037633wry.495.1663337881426; Fri, 16 Sep 2022 07:18:01 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb50:16a0:9848:d23c:7dcb]) by smtp.gmail.com with ESMTPSA id j32-20020a05600c1c2000b003b4a699ce8esm2827237wms.6.2022.09.16.07.18.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Sep 2022 07:18:00 -0700 (PDT) In-Reply-To: <87bkrfwrqu.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 16 Sep 2022 12:14:33 +0200") 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" Xref: news.gmane.io gmane.emacs.bugs:242768 Archived-At: >>>>> On Fri, 16 Sep 2022 12:14:33 +0200, Lars Ingebrigtsen said: Lars> Robert Pluim writes: Lars> I've idly wondered before whether we should add a general Lars> mechanism for Lars> this to avoid having to create functions that look at Lars> `command-line-args-left' themselves. (And --eval is problematic = in Lars> circumstances like this.) >>=20 >> emacsclient interprets >>=20 >> emacsclient arg1 arg2 --eval (form1) (form2) (form3) >>=20 >> as "send (form1), then (form2) then (form3), so by analogy this: >>=20 Lars> --function foo --function-args bar zot gazonk >>=20 >> doesn=CA=BCt require a --function-args parameter Lars> I was thinking first and foremost about on the Emacs side, not on= the Lars> emacsside client. But if then Emacs had --function-args, then by Lars> analogy, emacsclient should also have it. Wouldn=CA=BCt it be easier to define a macro to do the `command-line-args-left' handling on behalf of a defun? That macro would then consume any args up to the next arg starting with '-', so you could do emacs --function foo arg1 arg2 arg3 --function bar arg4 arg5 arg6 There are also quoting and conversion issues to think about, eg: emacs --function foo hello 3 indent-tabs-mode 'always Do we make people say "hello" if they want strings, which implies that indent-tabs-mode would be treated as a variable, 3 as a number, and the ' needs to be escaped somehow? Robert --=20