From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Damien Cassou Newsgroups: gmane.emacs.bugs Subject: bug#57752: 28.1.91; emacsclient-mail.desktop doesn't work for me Date: Tue, 13 Sep 2022 15:58:06 +0200 Message-ID: <87v8prxtox.fsf@cassou.me> References: <87r10gcum8.fsf@cassou.me> <87bkrj31r0.fsf@gnus.org> <87y1unxv15.fsf@cassou.me> <83leqn4cji.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39634"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, git@mavit.org.uk, 57752@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 13 16:12:05 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 1oY6dx-0009yU-HJ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Sep 2022 16:12:05 +0200 Original-Received: from localhost ([::1]:48238 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oY6dw-0003xo-Iy for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Sep 2022 10:12:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52134) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oY6RK-0008CN-UY for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2022 09:59:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35311) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oY6RK-0001fZ-Ll for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2022 09:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oY6RK-0001PZ-D9 for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2022 09:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Damien Cassou Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Sep 2022 13:59: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.16630774925345 (code B ref 57752); Tue, 13 Sep 2022 13:59:02 +0000 Original-Received: (at 57752) by debbugs.gnu.org; 13 Sep 2022 13:58:12 +0000 Original-Received: from localhost ([127.0.0.1]:52237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oY6QW-0001O9-EU for submit@debbugs.gnu.org; Tue, 13 Sep 2022 09:58:12 -0400 Original-Received: from mail.choca.pics ([80.67.172.235]:48600) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oY6QT-0001O1-UK for 57752@debbugs.gnu.org; Tue, 13 Sep 2022 09:58:10 -0400 Original-Received: from localhost (localhost.localdomain [IPv6:::1]) by mail.choca.pics (Postfix) with ESMTP id 711F7181942AA; Tue, 13 Sep 2022 15:58:08 +0200 (CEST) Original-Received: from mail.choca.pics ([IPv6:::1]) by localhost (mail.choca.pics [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id BwFAemFRXj8X; Tue, 13 Sep 2022 15:58:08 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [IPv6:::1]) by mail.choca.pics (Postfix) with ESMTP id F0BA2181942A7; Tue, 13 Sep 2022 15:58:07 +0200 (CEST) X-Virus-Scanned: amavisd-new at choca.pics Original-Received: from mail.choca.pics ([IPv6:::1]) by localhost (mail.choca.pics [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id MdztlFl_LgZh; Tue, 13 Sep 2022 15:58:07 +0200 (CEST) Original-Received: from localhost (240-68-190-109.dsl.ovh.fr [109.190.68.240]) by mail.choca.pics (Postfix) with ESMTPSA id A842C181929F6; Tue, 13 Sep 2022 15:58:07 +0200 (CEST) In-Reply-To: <83leqn4cji.fsf@gnu.org> 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:242377 Archived-At: Eli Zaretskii writes: >> From: Damien Cassou >> One way we could maybe implement this is if >> it was possible to pass additional CLI arguments to emacsclient and read >> them from elisp the same way it is possible in batch mode with emacs. > > You mean, by using --eval from the emacsclient command line? no because --eval would require a valid elisp expression such as emacsclient --eval (message-mailto "%u") which seems to go against the specification constraint. I thought about using something like the following: emacsclient --function message-mailto-reading-cli-args %u And message-mailto-reading-cli-args would read command-line-args-left or similar to do its job. This requires adding these features to emacsclient and implementing message-mailto-reading-cli-args. -- Damien Cassou "Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill