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: Sun, 18 Sep 2022 16:46:23 +0200 Message-ID: <8735cog2ps.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> <9e796c00-92e2-37fd-a90e-6ef615296b9e@gmail.com> <87zgex56bw.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="5419"; 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 Sun Sep 18 16:47:18 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 1oZvZl-0001BV-IP for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Sep 2022 16:47:17 +0200 Original-Received: from localhost ([::1]:56458 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZvZk-0003SG-CE for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Sep 2022 10:47:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZvZX-0003RF-1R for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2022 10:47:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51877) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oZvZW-0003ol-OE for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2022 10:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oZvZW-0000AR-5w for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2022 10:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Sep 2022 14:47:02 +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.1663512393606 (code B ref 57752); Sun, 18 Sep 2022 14:47:02 +0000 Original-Received: (at 57752) by debbugs.gnu.org; 18 Sep 2022 14:46:33 +0000 Original-Received: from localhost ([127.0.0.1]:50955 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZvZ3-00009g-1q for submit@debbugs.gnu.org; Sun, 18 Sep 2022 10:46:33 -0400 Original-Received: from mail-wr1-f48.google.com ([209.85.221.48]:36676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZvZ1-00009T-94 for 57752@debbugs.gnu.org; Sun, 18 Sep 2022 10:46:31 -0400 Original-Received: by mail-wr1-f48.google.com with SMTP id h8so36368393wrf.3 for <57752@debbugs.gnu.org>; Sun, 18 Sep 2022 07:46:31 -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=XrJlK3V69UVr6DcAN9C4HAJ18h7EFPXVbd1Dgs4pHI0=; b=cajzm5TMFdyh7weC6h+cR8yySh2CWq5nt1zVNGwMwmaYT5mHQsq+7YdIbtjwpcc5Ul zEFBT6iS792e5zpaMRwLEwUo/+gQHY7TVk6J5xIOdcpUaKl8w5qrEQxwL7KZVnznet4g cq08M3q1t8OO/lZS7DVPCIG/Vnjw1xHA8JpV2WSzhaV8SmzZhfz0fa7LTryN2bIqGxVM JX2OcPSiS+b8Sg8hi6InLdngEw8pNZ8yco5GfQDa2+9wnH81NZNUDOxRJvFWYwkIVLnS FUE40H69xOcp7qPnr2oDsXXhCpKsMpMjej2C72N44rhYEYbfmLeaNxBxULCNCY0UCiF0 RHoQ== 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=XrJlK3V69UVr6DcAN9C4HAJ18h7EFPXVbd1Dgs4pHI0=; b=VOGwyIhaA2sqLcUVRFVuU8YMzJ2rRUfNk+9bncZbeiFjJ3+siWr0gGyXqeziaOYoY2 brqnElpMaly5WNx4VKwq0VkNhhmHiziUCpzV/N+C9jsCNY5fNFXl9i0gNxNPEfwT/92L bPeiYN/40TIdCuIIvmoAu/zuTRxzwM/llRWRv7NVSDSb6Fxc5AL9qXZ6ri59iqQ2wwVE 8dyDrsXzig351h3JYv5cQqln6Wvy7PP8ZuZGm+IoHHIXLaa/h+PBdCebBPTiNRgE8MXc 5NzS9p00dRzBVi10tuMIhRIxqobC81OA8q3mlpi0rIIEEFFuoNuKyWd1aV8M+o0VBDrF hQMA== X-Gm-Message-State: ACrzQf2bIWqxLtXNT0OUfe6Bh3VwT5ijo2hZyE1F5hd/8JH5ql8895e0 VB0F2qOReJ/KteboLiZ70tcUj5wH/mM= X-Google-Smtp-Source: AMsMyM6YbQB5hiNWkILKuvsi1NSvAHMurQEsuM1xNxqwqe9gSZc7OMPvvCFB+liYBEAmnnDCGAoAaA== X-Received: by 2002:a05:6000:15c5:b0:22a:49be:8000 with SMTP id y5-20020a05600015c500b0022a49be8000mr8064576wry.664.1663512384916; Sun, 18 Sep 2022 07:46:24 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb50:16a0:9848:d23c:7dcb]) by smtp.gmail.com with ESMTPSA id h22-20020a05600c2cb600b003b4868eb71bsm10733771wmc.25.2022.09.18.07.46.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Sep 2022 07:46:24 -0700 (PDT) In-Reply-To: <87zgex56bw.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 18 Sep 2022 12:23:47 +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:242997 Archived-At: >>>>> On Sun, 18 Sep 2022 12:23:47 +0200, Lars Ingebrigtsen said: Lars> Jim Porter writes: >> 1) Instead of specifying the function args with a flag, I think I'd = go >> the other way and specify the function as being special, e.g.: >>=20 >> emacs --apply func arg1 arg2 Lars> Yes, that sounds good. (But we'd still need "--" to say that the Lars> arguments have ended.) >> 2) Even better, why not just use --function and pass some higher-ord= er >> function: >>=20 >> emacs --function apply-from-command-line func arg1 arg2 Lars> I think that sounds more obscure, really (even if it's simpler to Lars> implement in the "emacs" case). >> That way, it's easy to substitute in some other higher-order function >> if you want. emacsclient would still need to add a --function flag >> though, and probably some changes to how it forwards arguments to the >> main emacs so that you can do stuff like this. I think this would be covered by '--apply apply-from-command-line func arg1 arg2' You=CA=BCd have to write 'apply-from-command-line' yourself, although there=CA=BCd be nothing stopping us from providing a generic one that does (apply (intern (pop command-line-args-left)) command-line-args-left) or similar. Lars> Since we have to add something new to emacsclient in any case, I'd Lars> rather go with adding "--apply" to both Emacs and emacsclient, I = think. I think this is the best option (and we leave anything complicated to '--ev= al'). Robert --=20