From pupeno@gmail.com Mon Aug 4 03:10:57 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-1.0 required=4.0 tests=BAYES_00,GMAIL, MIME_BASE64_BLANKS,RCVD_IN_DNSWL_LOW,RCVD_IN_SBLXBL,RCVD_IN_SBLXBL_CBL autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 4 Aug 2008 10:10:57 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m74AArlg008058 for ; Mon, 4 Aug 2008 03:10:54 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KPx1e-00038D-QQ for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2008 06:10:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KPx1b-00037P-T4 for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2008 06:10:48 -0400 Received: from [199.232.76.173] (port=38674 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KPx1a-00037I-FD for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2008 06:10:47 -0400 Received: from fk-out-0910.google.com ([209.85.128.185]:46280) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KPx1a-0005k9-1f for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2008 06:10:46 -0400 Received: by fk-out-0910.google.com with SMTP id 18so1813749fkq.10 for ; Mon, 04 Aug 2008 03:10:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:mime-version:content-type:content-transfer-encoding :content-disposition:x-google-sender-auth; bh=WF64ZBZT+CSkA3z91UFJGgNYD7EJdPzC0yJJXaAoEoU=; b=qa+lYXwHFVHdRxPZt42FlEI/vLENKUV43HLSYkDL0SkszoMs8JqwhD1s/tGkh3wo+X y8MfYE5ey2Rzjyqx13cE4S9S5MnigSF1XNY0GxXkZN12Ez8jLGFuLeDkgGbRdEOqsNzd LH4CDDjU0+FHVQIF51WkIsiqHNJ1YMBaCrHBo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; b=uIg0od18cn2G/7V9Ln7KFCkzKu9+x698dZNeFRNn11f2CEeBZkLNlcJ0W4TUNaydxI CaEvSCWVOCHm1BG6F2Af13r74Wl/hs4nR1ReYXq8nJthqvzEBf5A37V2C5EBt3pYYq9M A5UE1wBe4USfBRSrE4j3/9SKDM7ddRd51UV/k= Received: by 10.125.137.10 with SMTP id p10mr714130mkn.6.1217844642929; Mon, 04 Aug 2008 03:10:42 -0700 (PDT) Received: by 10.125.111.13 with HTTP; Mon, 4 Aug 2008 03:10:42 -0700 (PDT) Message-ID: <4287a62c0808040310m6d817102lb3bdf4982e6451d7@mail.gmail.com> Date: Mon, 4 Aug 2008 12:10:42 +0200 From: "=?UTF-8?Q?J._Pablo_Fern=C3=A1ndez?=" Sender: pupeno@gmail.com To: bug-gnu-emacs@gnu.org Subject: No arguments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline X-Google-Sender-Auth: ab6fbb5ce28d0949 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) SGVsbG8sCgpJdCB3b3VsZCBiZSBuaWNlIGlmIGVtYWNzY2xpZW50LCB3aGVuIGNhbGxlZCB3aXRo IG5vIGFyZ3VtZW50cywgd291bGQKanVzdCBydW4gdGhlIGFsdGVybmF0ZSBlZGl0b3IuIEkndmUg Y29uZmlndXJlZCBlbWFjcyBhcyBteSBhbHRlcm5hdGUKZWRpdG9yIHNvIGVtYWNzY2xpZW50IGZv ciBtZSBpcyBiYXNpY2FsbHkgYSAib3BlbiB0aGlzIGluIGFuIGV4aXN0aW5nCmVtYWNzIG9yIHJ1 biBvbmUgb3RoZXJ3aXNlIiwgdGhlIG9ubHkgcHJvYmxlbSBmb3IgdGhhdCB0byB3b3JrCmNvbXBs ZXRlbHkgaXMgaGF2aW5nIGl0IHdvcmtpbmcgd2l0aCBubyBhcmd1bWVudHMuCgpUaGFua3MuCi0t IApKLiBQYWJsbyBGZXJuw6FuZGV6IDxwdXBlbm9AcHVwZW5vLmNvbT4gKGh0dHA6Ly9wdXBlbm8u Y29tKQogVGVtcG9yYXJpbHkgdXNpbmcgcHVwZW5vQGdtYWlsLmNvbS4K From lennart.borgman@gmail.com Mon Aug 4 07:27:41 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.6 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_LOW,RCVD_IN_SBLXBL,RCVD_IN_SBLXBL_CBL autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 4 Aug 2008 14:27:41 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m74ERcOs019203 for ; Mon, 4 Aug 2008 07:27:39 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KQ129-0005mu-IJ for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2008 10:27:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KQ128-0005l3-IG for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2008 10:27:36 -0400 Received: from [199.232.76.173] (port=57690 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KQ128-0005kt-D1 for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2008 10:27:36 -0400 Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]:58041) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KQ128-0006Tk-0r for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2008 10:27:36 -0400 Received: from c83-254-151-176.bredband.comhem.se ([83.254.151.176]:60199 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KQ125-0005O4-4i; Mon, 04 Aug 2008 16:27:33 +0200 Message-ID: <489711CA.9010302@gmail.com> Date: Mon, 04 Aug 2008 16:27:22 +0200 From: "Lennart Borgman (gmail)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: =?UTF-8?B?IkouIFBhYmxvIEZlcm7DoW5kZXoi?= , 646@debbugs.gnu.org CC: bug-gnu-emacs@gnu.org Subject: Re: bug#646: No arguments References: <4287a62c0808040310m6d817102lb3bdf4982e6451d7@mail.gmail.com> In-Reply-To: <4287a62c0808040310m6d817102lb3bdf4982e6451d7@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 080804-0, 2008-08-04), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.176 X-Scan-Result: No virus found in message 1KQ125-0005O4-4i. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1KQ125-0005O4-4i f71eeaa815f6c94d5e3ac7bea5fa2fc2 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) X-CrossAssassin-Score: 2 J. Pablo Fernández wrote: > Hello, > > It would be nice if emacsclient, when called with no arguments, would > just run the alternate editor. I've configured emacs as my alternate > editor so emacsclient for me is basically a "open this in an existing > emacs or run one otherwise", the only problem for that to work > completely is having it working with no arguments. The patched version of emacsclient that I distribute with Emacs+EmacsW32 does that. If you are on another platform it would be nice if you tested that code there. From pupeno@pupeno.com Mon Aug 4 22:31:24 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.1 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MIME_QP_LONG_LINE,MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 5 Aug 2008 05:31:24 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m755VKFa030972 for ; Mon, 4 Aug 2008 22:31:22 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KQF8i-0006Y1-Js for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2008 01:31:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KQF8h-0006Xl-JT for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2008 01:31:19 -0400 Received: from [199.232.76.173] (port=51156 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KQF8h-0006Xi-EN for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2008 01:31:19 -0400 Received: from blue.powerfulnet.net ([80.68.94.67]:58690) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KQF8h-0001bY-61 for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2008 01:31:19 -0400 Received: from [192.168.1.35] ([::ffff:83.79.14.231]) (AUTH: LOGIN pupeno@pupeno.com, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by blue.powerfulnet.net with esmtp; Tue, 05 Aug 2008 06:31:16 +0100 id 0007C026.4897E5A4.00004269 Subject: Re: bug#646: No arguments From: "J. Pablo\" =?ISO-8859-1?Q?Fern=E1ndez?=" To: "Lennart Borgman (gmail)" Cc: 646@debbugs.gnu.org, bug-gnu-emacs@gnu.org In-Reply-To: <489711CA.9010302@gmail.com> References: <4287a62c0808040310m6d817102lb3bdf4982e6451d7@mail.gmail.com> <489711CA.9010302@gmail.com> Date: Tue, 05 Aug 2008 07:31:16 +0200 Message-Id: <1217914276.7016.176.camel@espero.pupeno.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=_blue.powerfulnet.net-17006-1217914279-0001-2" X-Mailer: Evolution 2.22.3.1 X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. This is a MIME-formatted message. If you see this text it means that your E-mail software does not support MIME-formatted messages. --=_blue.powerfulnet.net-17006-1217914279-0001-2 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Mon, 2008-08-04 at 16:27 +0200, Lennart Borgman (gmail) wrote: > J. Pablo Fern=C3=A1ndez wrote: > > Hello, > >=20 > > It would be nice if emacsclient, when called with no arguments, would > > just run the alternate editor. I've configured emacs as my alternate > > editor so emacsclient for me is basically a "open this in an existing > > emacs or run one otherwise", the only problem for that to work > > completely is having it working with no arguments. >=20 > The patched version of emacsclient that I distribute with Emacs+EmacsW32=20 > does that. If you are on another platform it would be nice if you tested=20 > that code there. I use a pre-packaged Emacs, but I can try to give it a chance, where can I get the patch? Thanks. --=20 J. Pablo Fern=C3=A1ndez http://pupeno.com --=_blue.powerfulnet.net-17006-1217914279-0001-2 Content-Type: application/pgp-signature; name="signature.asc" Content-Transfer-Encoding: 7bit Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBIl+WkfW48a9PWGkURAvKTAJ9rrbwF+9KuiM39PEBVDX4ydk8vxgCfQID+ x3ucLvbYlkpFmY0AeoxD7Ns= =tir2 -----END PGP SIGNATURE----- --=_blue.powerfulnet.net-17006-1217914279-0001-2-- From lennart.borgman@gmail.com Tue Aug 5 02:33:44 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.1 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 5 Aug 2008 09:33:45 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m759Xf95006271 for ; Tue, 5 Aug 2008 02:33:42 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KQIvF-000214-7q for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2008 05:33:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KQIvE-00020O-B5 for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2008 05:33:40 -0400 Received: from [199.232.76.173] (port=58444 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KQIvD-00020J-PY for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2008 05:33:40 -0400 Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]:45457) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KQIvC-00068G-SC for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2008 05:33:39 -0400 Received: from c83-254-151-176.bredband.comhem.se ([83.254.151.176]:60655 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KQIvA-0007uD-3G; Tue, 05 Aug 2008 11:33:36 +0200 Message-ID: <48981E6A.9040809@gmail.com> Date: Tue, 05 Aug 2008 11:33:30 +0200 From: "Lennart Borgman (gmail)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: "" CC: 646@debbugs.gnu.org, bug-gnu-emacs@gnu.org Subject: Re: bug#646: No arguments References: <4287a62c0808040310m6d817102lb3bdf4982e6451d7@mail.gmail.com> <489711CA.9010302@gmail.com> <1217914276.7016.176.camel@espero.pupeno.com> In-Reply-To: <1217914276.7016.176.camel@espero.pupeno.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 080805-0, 2008-08-05), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.176 X-Scan-Result: No virus found in message 1KQIvA-0007uD-3G. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1KQIvA-0007uD-3G b532dd059b12a340f9be618e60b35f1b X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) X-CrossAssassin-Score: 2 J. Pablo" Fernández wrote: > On Mon, 2008-08-04 at 16:27 +0200, Lennart Borgman (gmail) wrote: >> J. Pablo Fernández wrote: >>> Hello, >>> >>> It would be nice if emacsclient, when called with no arguments, would >>> just run the alternate editor. I've configured emacs as my alternate >>> editor so emacsclient for me is basically a "open this in an existing >>> emacs or run one otherwise", the only problem for that to work >>> completely is having it working with no arguments. >> The patched version of emacsclient that I distribute with Emacs+EmacsW32 >> does that. If you are on another platform it would be nice if you tested >> that code there. > > I use a pre-packaged Emacs, but I can try to give it a chance, where can > I get the patch? I will send them to you privately. From cyd@stupidchicken.com Mon Aug 18 12:28:21 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.5 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 18 Aug 2008 19:28:21 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7IJSHI6009628 for ; Mon, 18 Aug 2008 12:28:19 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 0EB0757E1C6; Mon, 18 Aug 2008 15:29:20 -0400 (EDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: Reassign bugs Date: Mon, 18 Aug 2008 15:29:20 -0400 Message-ID: <87fxp2dsvj.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii close 496 severity 646 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 26 23:32:13 2021 Received: (at 646) by debbugs.gnu.org; 27 Aug 2021 03:32:13 +0000 Received: from localhost ([127.0.0.1]:50949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJSbA-0003CT-Su for submit@debbugs.gnu.org; Thu, 26 Aug 2021 23:32:13 -0400 Received: from quimby.gnus.org ([95.216.78.240]:54764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJSb5-00033K-8a for 646@debbugs.gnu.org; Thu, 26 Aug 2021 23:32:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=7NdhVAAWXErv8jIzrxe+9rhaQuKtBVyxmkmiJon+jkU=; b=P4NdA2pe9LwHnu/rE2Ar4qMJYb ZDtfTBE+7D3/X5CbQWmqFQSPdHEBwoukYfAnhDjLdv8rU3WihH5bPfbKFph7nKImaLrT6vUcDdFDZ X3jEK7/KQ7+ZFiWo0R0U4B448qnJPRbfhwk7vLDnbTNoDro9kj26O9a9ZJF1Jp+dyq/I=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJSau-0001TJ-QS; Fri, 27 Aug 2021 05:31:56 +0200 From: Lars Ingebrigtsen To: "J. Pablo =?utf-8?Q?=22Fern=C3=A1ndez=5C=22=22?= Subject: Re: bug#646: emacsclient with no args to behave like -a References: <4287a62c0808040310m6d817102lb3bdf4982e6451d7@mail.gmail.com> Date: Fri, 27 Aug 2021 05:31:52 +0200 In-Reply-To: <4287a62c0808040310m6d817102lb3bdf4982e6451d7@mail.gmail.com> (J. Pablo's message of "Mon, 4 Aug 2008 12:10:42 +0200") Message-ID: <878s0nr2af.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: "J. Pablo "Fernández\"" writes: > It would be nice if emacsclient, when called with no arguments, would > just run the alternate editor. I've configured emacs as my alternate > editor so emacsclient for me is basically a "open this [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 646 Cc: 646@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) "J. Pablo "Fern=C3=A1ndez\"" writes: > It would be nice if emacsclient, when called with no arguments, would > just run the alternate editor. I've configured emacs as my alternate > editor so emacsclient for me is basically a "open this in an existing > emacs or run one otherwise", the only problem for that to work > completely is having it working with no arguments. (I'm going through old bug reports that unfortunately weren't resolved at the time.) It seems like this has been fixed in the 13 years since it was reported. I did: larsi@elva:~/src/emacs/trunk$ export ALTERNATE_EDITOR=3Dnano larsi@elva:~/src/emacs/trunk$ ./lib-src/emacsclient /tmp/foo and that opened nano. So I'm closing this bug report. If there's more to be done here, please respond to the debbugs address and we'll reopen. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 26 23:32:17 2021 Received: (at control) by debbugs.gnu.org; 27 Aug 2021 03:32:17 +0000 Received: from localhost ([127.0.0.1]:50952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJSbF-0003G7-95 for submit@debbugs.gnu.org; Thu, 26 Aug 2021 23:32:17 -0400 Received: from quimby.gnus.org ([95.216.78.240]:54780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJSbA-000389-TO for control@debbugs.gnu.org; Thu, 26 Aug 2021 23:32:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=2sG4L+/On5/hOHuohUTeYnqYvXdkzU8XpASxAu8IiVc=; b=oFy5+6byHbHPv91YYXSLAd2nnQ k3Er+LDlYyZBn7qc2y3da72Q2X8O/98hzhfO+gbssBgoxwS//Tlv+iXCGg2qSZhyh5kOSDIrCPXXj 4EVF8YoO52Efrhb8ytzGtfTQ5cHQ/V0J+nb63WtWgfcEOuuKbUBHS22wrGoTc63rF6No=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJSb3-0001TT-1M for control@debbugs.gnu.org; Fri, 27 Aug 2021 05:32:03 +0200 Date: Fri, 27 Aug 2021 05:32:00 +0200 Message-Id: <877dg7r2a7.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #646 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 646 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 646 quit From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 27 00:00:21 2021 Received: (at 646) by debbugs.gnu.org; 27 Aug 2021 04:00:21 +0000 Received: from localhost ([127.0.0.1]:50973 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJT2T-0006ZG-1a for submit@debbugs.gnu.org; Fri, 27 Aug 2021 00:00:21 -0400 Received: from mail-pj1-f46.google.com ([209.85.216.46]:36654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJT2S-0006Z4-CJ for 646@debbugs.gnu.org; Fri, 27 Aug 2021 00:00:20 -0400 Received: by mail-pj1-f46.google.com with SMTP id u13-20020a17090abb0db0290177e1d9b3f7so8065151pjr.1 for <646@debbugs.gnu.org>; Thu, 26 Aug 2021 21:00:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=W49P3Per+b0qRKb7MJ5iUE1aNImpOrChgjfSUxdeMfk=; b=X2zmQ2RdCNZCx7LM7AyIVtF5AZ0/lKUeZ3qz88/YO3ENAlUG5CMMjkfvc7HNkrElE+ nH0HpUexFb9jbnFyBREi+P4aJt8560/l90U9i13And9jNugjb7aOt8+XuFqDDSv3qTtA BnwUE6q920hqXEuVWFKMH8tR/d9qdtyiWYC0adr4LaCPTcMwRY3o2qpE4S2FSniqcHaM rV5ozvxMO7zp9cXDY1s0fdF/bHFmrrH2Zq/gd3AUnlAyCmIo0NP5yxSpyXlMYb456nKu bt0u7wgquDPwRAfp9NVaUGX9YRu0BJdJs2hfJbvf/SYAlf1hx6/f96k44ewTEjyInO/9 meDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=W49P3Per+b0qRKb7MJ5iUE1aNImpOrChgjfSUxdeMfk=; b=gA544et/cGYBUR4EEDQbesemN1AVZTi6bvyQPQzOQxLr+VGqFziXzAQwK4Wat3Fvbj wVATwYIKhnTxZ5tCm798Zdqex3VLYdbx7BkNuT0/aYgDAzZHFWNCyW1MkQZUeyxe9f6I kQVIomLrRU7asagK+yIqFAMDG9vJIo0CgoFr4FKGUpjPAmMgdO1BQXHeEUrApde/42KM tsT+K8lvosmp2OAP4y3N+PYVEVm5mCjprHs7zZMSa6wg76BV3C/SLERAA1tdjR1PSKJy DJ3O/25WM2mdGe/UzEvp+SGrKTUIzd8W7cROe1a0Kv2jZzH1XNnO06DQ0M095Gkn0C08 az6Q== X-Gm-Message-State: AOAM533BxWHsPyMuMr898RzQd9LfAy5S1ryyaZyJ5PS/8+BwYTEoT6ZH 5m60ynZwxPIUiMmdITlUFSTEXCQ10OA= X-Google-Smtp-Source: ABdhPJzT7wNzOSusmGs/PMbUge+9I4/xIU1xf/30FjQiQ2jB8bvTgd3L5BHFU2Frc0xuaFh+3UGY5A== X-Received: by 2002:a17:90b:390d:: with SMTP id ob13mr8262917pjb.129.1630036814153; Thu, 26 Aug 2021 21:00:14 -0700 (PDT) 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 o9sm4674349pfh.217.2021.08.26.21.00.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Aug 2021 21:00:13 -0700 (PDT) Subject: Re: bug#646: emacsclient with no args to behave like -a To: Lars Ingebrigtsen , =?UTF-8?Q?J=2e_Pablo_Fern=c3=a1ndez=5c?= References: <4287a62c0808040310m6d817102lb3bdf4982e6451d7@mail.gmail.com> <878s0nr2af.fsf@gnus.org> From: Jim Porter Message-ID: Date: Thu, 26 Aug 2021 21:00:12 -0700 MIME-Version: 1.0 In-Reply-To: <878s0nr2af.fsf@gnus.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 646 Cc: 646@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 8/26/2021 8:31 PM, Lars Ingebrigtsen wrote: > "J. Pablo "Fernández\"" writes: > >> It would be nice if emacsclient, when called with no arguments, would >> just run the alternate editor. I've configured emacs as my alternate >> editor so emacsclient for me is basically a "open this in an existing >> emacs or run one otherwise", the only problem for that to work >> completely is having it working with no arguments. > > (I'm going through old bug reports that unfortunately weren't > resolved at the time.) > > It seems like this has been fixed in the 13 years since it was reported. > > I did: > > larsi@elva:~/src/emacs/trunk$ export ALTERNATE_EDITOR=nano > larsi@elva:~/src/emacs/trunk$ ./lib-src/emacsclient /tmp/foo > > and that opened nano. It sounds to me like the "args" in question would be "/tmp/foo" in this case. On Emacs 27.2 and 28.0.50, I see: $ export ALTERNATE_EDITOR=nano $ lib-src/emacsclient lib-src/emacsclient: file name or argument required Try 'lib-src/emacsclient --help' for more information From my reading, this is the original reporter's preferred behavior: 1) If Emacs is not currently running a) `emacsclient file.txt' starts Emacs and opens file.txt b) `emacsclient' starts Emacs (as though running `emacs') 2) If Emacs is currently running a) `emacsclient file.txt' opens file.txt in the existing Emacs session b) `emacsclient' brings some frame in the existing Emacs session to the foreground From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 27 00:15:09 2021 Received: (at 646) by debbugs.gnu.org; 27 Aug 2021 04:15:09 +0000 Received: from localhost ([127.0.0.1]:50978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJTGn-0006tr-Cm for submit@debbugs.gnu.org; Fri, 27 Aug 2021 00:15:09 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55188) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJTGl-0006tC-Ce for 646@debbugs.gnu.org; Fri, 27 Aug 2021 00:15:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=xfxMgs9ScTzdfcbf/EIo6zihWoIUPZicAjlbrm/is7o=; b=DFdpduHmD3EvIz5BrcbjZPWNrq 0tQgBTS3lq+xBfo6CX3iOl/ssxhn0j4gXiFDSlwRT1TDw+zTvbq8RS1k7KcJmYjhkpeGefsxFYgxS 15GBAYnpr2t2oX9KpONeNcqaxJhgqF7qfTV0rknnbrsW06gunW2sUL85nhsvjp412JX4=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJTGa-0001qQ-Jg; Fri, 27 Aug 2021 06:15:00 +0200 From: Lars Ingebrigtsen To: Jim Porter Subject: Re: bug#646: emacsclient with no args to behave like -a In-Reply-To: (Jim Porter's message of "Thu, 26 Aug 2021 21:00:12 -0700") References: <4287a62c0808040310m6d817102lb3bdf4982e6451d7@mail.gmail.com> <878s0nr2af.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Date: Fri, 27 Aug 2021 06:14:56 +0200 Message-ID: <87k0k7plq7.fsf@gnus.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Jim Porter writes: > From my reading, this is the original reporter's preferred behavior: > > 1) If Emacs is not currently running > a) `emacsclient file.txt' starts Emacs and opens file.txt > b) `emacsclient' starts Em [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 646 Cc: =?utf-8?Q?J=2E_Pablo_Fern=C3=A1ndez?= , 646@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Jim Porter writes: > From my reading, this is the original reporter's preferred behavior: > > 1) If Emacs is not currently running > a) `emacsclient file.txt' starts Emacs and opens file.txt > b) `emacsclient' starts Emacs (as though running `emacs') > 2) If Emacs is currently running > a) `emacsclient file.txt' opens file.txt in the existing Emacs session > b) `emacsclient' brings some frame in the existing Emacs session > to the foreground That's not my reading. The bug reporter said "It would be nice if emacsclient, when called with no arguments, would just run the alternate editor." I.e., emulate the "-a" parameter when called with no parameters. (He's also using Emacs as the alternate, but that's just a detail.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 27 01:06:27 2021 Received: (at 646) by debbugs.gnu.org; 27 Aug 2021 05:06:27 +0000 Received: from localhost ([127.0.0.1]:51053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJU4R-0001rv-AD for submit@debbugs.gnu.org; Fri, 27 Aug 2021 01:06:27 -0400 Received: from mail-pj1-f44.google.com ([209.85.216.44]:44562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJU4O-0001rh-DU for 646@debbugs.gnu.org; Fri, 27 Aug 2021 01:06:25 -0400 Received: by mail-pj1-f44.google.com with SMTP id j4-20020a17090a734400b0018f6dd1ec97so3987581pjs.3 for <646@debbugs.gnu.org>; Thu, 26 Aug 2021 22:06:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=jpK7sVurwUCQHtIEQ/ZVKxFsvl6H5U8zOxixTaA/9BA=; b=biB7+6kVfIS8RLwMOGhOX3PoclQE7CZkpBQnmtWVlvlx5bHr3makmBzlBiiqYcuwqM X9hUVcrNsWHB9r1DzS2bPwcj/+qxXlRIk427eToLdy5HP/of/xiD0u+kIF8VcYtmgI1I cwWydGNZ2uFo6w1629JaP8PB8n9O7P5bNTo1wHfYxf/4X/9+IeraTZbFt6V+eGd3IgoF +4Jt0ZVl+3y9tLdlsmk1/ImYYp5Xz7VCC2c4QwxpYkpBH/OB2rmgXDBoMMxoWwZev/AS 9It5+pIE+h+nJHtQ/N1KB0cVRPZctgAYto7M1kdbPI6itULAhHQaoZ9QJoF5TCliH02b rImg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=jpK7sVurwUCQHtIEQ/ZVKxFsvl6H5U8zOxixTaA/9BA=; b=K5OVXg6DLmvaMKEujvbKskl0WKGQshTzrSkaf8eRQsyS8h7VTnxBf9Q5/vr7pfTAoA T2s6tiAvGoeVABTC252/ZjKGEv6tVaOT/TOIiF7e56J3zgaCWR+MaMwb7nXTpsUvUUwN lhc5C4CloGRLDz8QN9JWMOMxpL+KQ+B98IIoAw2X5VqbbAAvmQ9NuibLFJDYPfe5yiMC xZkOpFtVqv2Gih3XNaUN6wg4wRPYbhWbK7MURGk4NJQTGluKaCI735tjV9ZqB6dRHtMA VQ5KY8S6KMP/aT+Y5vDM8P8c/oPJoiqHbSDiHJJdx04gHF4Wf8B2hqWiFgUK/dcWe3UG kRpQ== X-Gm-Message-State: AOAM531gtCP51nG+Ybj5TC4dvStkvqwj/jTCC1poVcw3JksYKlOT5BNy ZMzFBZKj8j9Q1HTMmGxNWNu+ZD+87IQ= X-Google-Smtp-Source: ABdhPJzatxbwRuBVF7eVU1/syb2OPJhvkinA1d6llRXiaqwh66sRLt3fHDFBGsdyPAxNcf9pIjXQSQ== X-Received: by 2002:a17:90a:6ac2:: with SMTP id b2mr8655211pjm.36.1630040778638; Thu, 26 Aug 2021 22:06:18 -0700 (PDT) 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 x32sm455552pfu.65.2021.08.26.22.06.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Aug 2021 22:06:18 -0700 (PDT) Subject: Re: bug#646: emacsclient with no args to behave like -a To: Lars Ingebrigtsen References: <4287a62c0808040310m6d817102lb3bdf4982e6451d7@mail.gmail.com> <878s0nr2af.fsf@gnus.org> <87k0k7plq7.fsf@gnus.org> From: Jim Porter Message-ID: <67399b53-e649-bd25-bdb4-107bfb95c0f6@gmail.com> Date: Thu, 26 Aug 2021 22:06:18 -0700 MIME-Version: 1.0 In-Reply-To: <87k0k7plq7.fsf@gnus.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 646 Cc: =?UTF-8?Q?J=2e_Pablo_Fern=c3=a1ndez?= , 646@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 8/26/2021 9:14 PM, Lars Ingebrigtsen wrote: > Jim Porter writes: > >> From my reading, this is the original reporter's preferred behavior: >> >> 1) If Emacs is not currently running >> a) `emacsclient file.txt' starts Emacs and opens file.txt >> b) `emacsclient' starts Emacs (as though running `emacs') >> 2) If Emacs is currently running >> a) `emacsclient file.txt' opens file.txt in the existing Emacs session >> b) `emacsclient' brings some frame in the existing Emacs session >> to the foreground > > That's not my reading. The bug reporter said "It would be nice if > emacsclient, when called with no arguments, would just run the alternate > editor." I.e., emulate the "-a" parameter when called with no > parameters. > > (He's also using Emacs as the alternate, but that's just a detail.) Indeed, it's not 100% clear, especially since this is from so long ago that I can't quite remember how emacsclient worked back then. However, I did a bit of archaeology and found the following passage in a blog post from around the same time: "First, I recommend using the W32 package. W32 has hacked the emacsclient in several useful ways. It will start Emacs if it isn't already running, it will call "raise-frame" on the Emacs window when started, and it permits starting emacsclient without a filename. "[1] The last bit confirms that Lennart's patched emacsclient *could* work as in (2b) above.[2] Whether that's what the original reporter wanted is another story (though it's how I interpret it)... [1] http://emacs-fu.blogspot.com/2009/03/windows-and-daemons.html [2] Unfortunately, I couldn't find the sources for Emacs+EmacsW32 to confirm this. From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 27 10:50:28 2021 Received: (at 646) by debbugs.gnu.org; 27 Aug 2021 14:50:28 +0000 Received: from localhost ([127.0.0.1]:52671 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJdBc-0006TM-L7 for submit@debbugs.gnu.org; Fri, 27 Aug 2021 10:50:28 -0400 Received: from quimby.gnus.org ([95.216.78.240]:32910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJdBX-0006T6-MA for 646@debbugs.gnu.org; Fri, 27 Aug 2021 10:50:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=HZV6Y5/g/xicKuFSbKMrjyucG34GP31KnQ72ccn9yPE=; b=fa5wj86ZMMRo3QphGGlW0J8RBM b4FAcybCApvwidqTLwd3d/bkYXAvJXIh276h7MQOjWXMZy4+cUPzU0XEQVF2WLUDKLWLC+N8NuNDy F+vLZIR0P9OSuSUnNynuVfXkedMMsS/aSNLZ+aiCIzOQFWcAHVQE/Wy6nY/J+L48l+QY=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJdBM-0003I1-G9; Fri, 27 Aug 2021 16:50:16 +0200 From: Lars Ingebrigtsen To: Jim Porter Subject: Re: bug#646: emacsclient with no args to behave like -a References: <4287a62c0808040310m6d817102lb3bdf4982e6451d7@mail.gmail.com> <878s0nr2af.fsf@gnus.org> <87k0k7plq7.fsf@gnus.org> <67399b53-e649-bd25-bdb4-107bfb95c0f6@gmail.com> Date: Fri, 27 Aug 2021 16:50:10 +0200 In-Reply-To: <67399b53-e649-bd25-bdb4-107bfb95c0f6@gmail.com> (Jim Porter's message of "Thu, 26 Aug 2021 22:06:18 -0700") Message-ID: <87v93rndr1.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Jim Porter writes: > "First, I recommend using the W32 package. W32 has hacked the > emacsclient in several useful ways. It will start Emacs if it isn't > already running, it will call "raise-frame" on the Emacs window [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 646 Cc: "J. Pablo =?utf-8?Q?Fern=C3=A1ndez?=" , 646@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Jim Porter writes: > "First, I recommend using the W32 package. W32 has hacked the > emacsclient in several useful ways. It will start Emacs if it isn't > already running, it will call "raise-frame" on the Emacs window when > started, and it permits starting emacsclient without a filename. "[1] I think that's how emacsclient works these days -- if you set ALTERNATE_EDITOR to the empty string. (It starts a new daemon Emacs and then connects to it.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 27 13:18:15 2021 Received: (at 646) by debbugs.gnu.org; 27 Aug 2021 17:18:15 +0000 Received: from localhost ([127.0.0.1]:52883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJfUd-0006Gw-Gp for submit@debbugs.gnu.org; Fri, 27 Aug 2021 13:18:15 -0400 Received: from mail-pg1-f169.google.com ([209.85.215.169]:42990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJfUb-0006Gi-Cy for 646@debbugs.gnu.org; Fri, 27 Aug 2021 13:18:13 -0400 Received: by mail-pg1-f169.google.com with SMTP id q68so6462785pga.9 for <646@debbugs.gnu.org>; Fri, 27 Aug 2021 10:18:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=g08vJ/jrSlOve4YAAoZBS3Jb28/gzgcNCajdEMZ1O44=; b=OqmbvPc/LfR5MIWg0Vas9ugUYS0M2OcA1xhUJ86jQEetR44c91TH7VY1IzpttRc8XD WOukuQ3w0MId9zmDNaLiPkE4wZ97bXtQR6fSF6kM2TrBnFGn7GkIq1tzlTTF1UQJgDzy iHGd0mLbk67032bVAesSYVnuKrnSFVpferuS62Wa7IhFbgCwJ4sy+HaDEdnsIaS9dJru ugW8PrrrdwUHU1jphybrrUGoGBhUg7v1CIA715zyazsPv7WUPQEl/jXhLEVERZGEG61z v+yZdcUZeO55FlIMk9uP0nRw/5KXfH8mhnCUYfUspoEeDVVqEiOVKy/DZXiZzI2bBzTf rhTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=g08vJ/jrSlOve4YAAoZBS3Jb28/gzgcNCajdEMZ1O44=; b=XwykjuBYTVm5PUKY93+8S+qTBgNOn2hFnhxfj4Yb+cF3ES86kyFMEymj36yDO3i7Ps EbTwILgvUv3uZrUhyhryyK2f9ZL/tsiB6z+aYZJlGENzG0CwJ89jbngucxc/9jS+BIPr bFR1ZUAsg6HWWVieweXb8jhouXDqz5yho8oJd2pMvu1LIn2qC9LNjWndu2m9sdNZEYY8 kjU2HAkQSzbGYXszTfh7kC4kevzM8mwYWKW9tvvfZiQqV7I5bDRykaEmWSRhsMCWGko5 CXyuuqFURZkhclGY2ZjlC6pN+4zs4Go3qsNlj3AfHgYkgx2TBVN3jD3j1Q3fkavBArZz uQFA== X-Gm-Message-State: AOAM531yCKA8pDn1k+sV2j9KZVT1aQ4XalP2KOb1XuCMjkhmE0pwozl2 wJ7mB4UhvlvOODpB5raE5nWGXHLoJQ0= X-Google-Smtp-Source: ABdhPJwSHG5iPY54JZucweUe/ubAXrU/EvQstDcT+mulOLHMb8FCZRSXijUSoTurB276lwacL5UYog== X-Received: by 2002:a65:6a09:: with SMTP id m9mr8659015pgu.269.1630084687486; Fri, 27 Aug 2021 10:18:07 -0700 (PDT) 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 g3sm7776662pgj.66.2021.08.27.10.18.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 Aug 2021 10:18:06 -0700 (PDT) Subject: Re: bug#646: emacsclient with no args to behave like -a To: Lars Ingebrigtsen References: <4287a62c0808040310m6d817102lb3bdf4982e6451d7@mail.gmail.com> <878s0nr2af.fsf@gnus.org> <87k0k7plq7.fsf@gnus.org> <67399b53-e649-bd25-bdb4-107bfb95c0f6@gmail.com> <87v93rndr1.fsf@gnus.org> From: Jim Porter Message-ID: Date: Fri, 27 Aug 2021 10:18:07 -0700 MIME-Version: 1.0 In-Reply-To: <87v93rndr1.fsf@gnus.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 646 Cc: =?UTF-8?Q?J=2e_Pablo_Fern=c3=a1ndez?= , 646@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 8/27/2021 7:50 AM, Lars Ingebrigtsen wrote: > Jim Porter writes: > >> "First, I recommend using the W32 package. W32 has hacked the >> emacsclient in several useful ways. It will start Emacs if it isn't >> already running, it will call "raise-frame" on the Emacs window when >> started, and it permits starting emacsclient without a filename. "[1] > > I think that's how emacsclient works these days -- if you set > ALTERNATE_EDITOR to the empty string. (It starts a new daemon Emacs and > then connects to it.) I tested this on Emacs 28.0.50, and a filename is still required. Otherwise emacsclient errors out as before. [As an aside: the main difference that I see is that with ALTERNATE_EDITOR=emacs, `emacsclient file.txt' opens emacs directly (so there's no emacsclient process hanging around, only emacs). With ALTERNATE_EDITOR as the empty string, `emacsclient file.txt' starts a daemon Emacs (so there are emacsclient and `emacs --daemon' processes running).] That said, you can call `emacsclient -c' to create a new Emacs frame. That works if you wanted to make a desktop shortcut to do something similar to the Emacs+EmacsW32 patched version of emacsclient, but that means it'll always open a new frame, even if you pass it some files. That's not necessarily the behavior people want. No-args support in emacsclient could be nice for scripting or for things like the etc/emacsclient.desktop shortcut. Currently that uses a conditional to decide what to call based on whether it was passed any files (reformatted here for clarity): if [ -n "$*" ]; then exec emacsclient --alternate-editor= --display="$DISPLAY" "$@"; else exec emacsclient --alternate-editor= --create-frame; fi Fixing this issue could simplify that to something like: `emacsclient --alternate-editor= %F'. However, since emacsclient.desktop handles this already (albeit with a somewhat complex incantation), maybe that's enough. From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 28 11:02:40 2021 Received: (at 646) by debbugs.gnu.org; 28 Aug 2021 15:02:40 +0000 Received: from localhost ([127.0.0.1]:54810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJzqt-0003LX-Ne for submit@debbugs.gnu.org; Sat, 28 Aug 2021 11:02:39 -0400 Received: from quimby.gnus.org ([95.216.78.240]:43490) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJzqo-0003LG-Mh for 646@debbugs.gnu.org; Sat, 28 Aug 2021 11:02:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=X0Oj4dyg2gRRcc+XT/JH5srV0/TpaVhTqFoykQFLj48=; b=c+NBJp4lFyGzZA3t9+HBxcfqcw J3bForBI0XfdUjz/tHPfA94G0a92FjzZ7XZFcRcdbliC09GmGOIxDcebXkiwmDBbHqDV26nWqBLoV iD+RfgCrM0e79BOHjkKpYOTVLKCCEpiQzirCGMYB0OaKIyHLQC5lLm8oxOBwkvVF0CD4=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJzqd-0004Y1-T7; Sat, 28 Aug 2021 17:02:24 +0200 From: Lars Ingebrigtsen To: Jim Porter Subject: Re: bug#646: emacsclient with no args to behave like -a References: <4287a62c0808040310m6d817102lb3bdf4982e6451d7@mail.gmail.com> <878s0nr2af.fsf@gnus.org> <87k0k7plq7.fsf@gnus.org> <67399b53-e649-bd25-bdb4-107bfb95c0f6@gmail.com> <87v93rndr1.fsf@gnus.org> Date: Sat, 28 Aug 2021 17:02:17 +0200 In-Reply-To: (Jim Porter's message of "Fri, 27 Aug 2021 10:18:07 -0700") Message-ID: <87r1edk3ye.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Jim Porter writes: > I tested this on Emacs 28.0.50, and a filename is still > required. Otherwise emacsclient errors out as before. Oh, I interpreted "no args" as "no -a arg". :-) A filename is required; yes. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 646 Cc: "J. Pablo =?utf-8?Q?Fern=C3=A1ndez?=" , 646@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Jim Porter writes: > I tested this on Emacs 28.0.50, and a filename is still > required. Otherwise emacsclient errors out as before. Oh, I interpreted "no args" as "no -a arg". :-) A filename is required; yes. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Mon Aug 18 02:32:39 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 26 Sep 2021 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator