From dann@mothra.ics.uci.edu Sun Nov 2 10:18:36 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=-9.4 required=4.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_MED,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 2 Nov 2008 18:18:36 +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 mA2IIWFC019761 for ; Sun, 2 Nov 2008 10:18:34 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KwhWy-000125-JE for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2008 13:18:32 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KwhWx-00011s-UK for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2008 13:18:32 -0500 Received: from [199.232.76.173] (port=42218 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KwhWx-00011p-SH for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2008 13:18:31 -0500 Received: from sallyv2.ics.uci.edu ([128.195.1.120]:58838) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1KwhWx-00074J-Dj for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2008 13:18:31 -0500 Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id mA2IIFbh006404 for ; Sun, 2 Nov 2008 10:18:19 -0800 (PST) Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mA2IIFMq028772; Sun, 2 Nov 2008 10:18:15 -0800 (PST) Date: Sun, 2 Nov 2008 10:18:15 -0800 (PST) Message-Id: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> From: Dan Nicolaescu To: bug-gnu-emacs Subject: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' X-Debbugs-No-Ack: yes Lines: 8 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mA2IIFbh006404 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) It would be nice if some equivalent of: 'emacsclient -a "emacs --daemon && emacsclient -c" would work. That would allow one to ALWAYS use emacsclient. From cyd@stupidchicken.com Sun Nov 2 18:26:50 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.0 required=4.0 tests=AWL,BAYES_00, VALID_BTS_CONTROL autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 3 Nov 2008 02:26:50 +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 mA32Qldq013247 for ; Sun, 2 Nov 2008 18:26:49 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id F1CCB57E1BA; Sun, 2 Nov 2008 21:26:55 -0500 (EST) From: Chong Yidong To: control@debbugs.gnu.org Subject: reassign bugs Date: Sun, 02 Nov 2008 21:26:55 -0500 Message-ID: <87y701zgr4.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii reassign 1293 spam reassign 1294 spam merge 1295,1296 severity 1298 wishlist thanks From dann@mothra.ics.uci.edu Tue Nov 18 00:22:53 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=-8.9 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 18 Nov 2008 08:22:53 +0000 Received: from barrelv2.ics.uci.edu (barrelv2.ics.uci.edu [128.195.1.114]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAI8MoRj015381 for <1298@emacsbugs.donarmstrong.com>; Tue, 18 Nov 2008 00:22:51 -0800 Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by barrelv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id mAI8MXaH016227 for <1298@emacsbugs.donarmstrong.com>; Tue, 18 Nov 2008 00:22:33 -0800 (PST) Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mAI8MX0n029841; Tue, 18 Nov 2008 00:22:33 -0800 (PST) Date: Tue, 18 Nov 2008 00:22:33 -0800 (PST) Message-Id: <200811180822.mAI8MX0n029841@mothra.ics.uci.edu> From: Dan Nicolaescu To: 1298@debbugs.gnu.org Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> X-Debbugs-No-Ack: yes In-Reply-To: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> (Dan Nicolaescu's message of "Sun, 2 Nov 2008 10:18:15 -0800 (PST)") Lines: 38 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mAI8MXaH016227 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.363, required 5, autolearn=disabled, ALL_TRUSTED -1.44, TW_RG 0.08) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu Dan Nicolaescu writes: > It would be nice if some equivalent of: > > 'emacsclient -a "emacs --daemon && emacsclient -c" > > would work. > > That would allow one to ALWAYS use emacsclient. Here's a quick hack that allows: emacsclient -a "emacs --daemon && emacsclient -c" FILENAME to work. It is not complete yet, FILENAME does not get passed to the "&& emacsclient" --- emacsclient.c.~1.140.~ 2008-11-03 06:30:13.000000000 -0800 +++ emacsclient.c 2008-11-18 00:13:29.000000000 -0800 @@ -630,8 +630,13 @@ fail (void) if (alternate_editor) { int i = optind - 1; + char * new_argv[] = { "sh", "-c", 0, 0 }; - execvp (alternate_editor, main_argv + i); + new_argv[0] = "sh"; + new_argv[1] = "-c"; + new_argv[2] = alternate_editor; + + execve ("/bin/sh", new_argv, environ); message (TRUE, "%s: error executing alternate editor \"%s\"\n", progname, alternate_editor); } Thoughts? From monnier@IRO.UMontreal.CA Tue Nov 18 08:36:48 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.5 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 18 Nov 2008 16:36:48 +0000 Received: from pruche.dit.umontreal.ca (pruche.dit.umontreal.ca [132.204.246.22]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAIGai0M009688 for <1298@emacsbugs.donarmstrong.com>; Tue, 18 Nov 2008 08:36:46 -0800 Received: from alfajor.home (vpn-132-204-232-46.acd.umontreal.ca [132.204.232.46]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id mAIGbIRp015815; Tue, 18 Nov 2008 11:37:19 -0500 Received: by alfajor.home (Postfix, from userid 20848) id 413A71C72B; Tue, 18 Nov 2008 11:36:43 -0500 (EST) From: Stefan Monnier To: Dan Nicolaescu Cc: 1298@debbugs.gnu.org Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' Message-ID: References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200811180822.mAI8MX0n029841@mothra.ics.uci.edu> Date: Tue, 18 Nov 2008 11:36:43 -0500 In-Reply-To: <200811180822.mAI8MX0n029841@mothra.ics.uci.edu> (Dan Nicolaescu's message of "Tue, 18 Nov 2008 00:22:33 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3149=0 >> It would be nice if some equivalent of: >> 'emacsclient -a "emacs --daemon && emacsclient -c" >> would work. >> That would allow one to ALWAYS use emacsclient. > Here's a quick hack that allows: > emacsclient -a "emacs --daemon && emacsclient -c" FILENAME > to work. It is not complete yet, FILENAME does not get passed to the > "&& emacsclient" Here's an alternative: [ "$(emacsclient -e "'up" 2>/dev/null)" = "up" ] || emacs --daemon emacsclient -c FILENAME -- Stefan From dann@mothra.ics.uci.edu Tue Nov 18 10:17: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=-9.0 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 18 Nov 2008 18:17:57 +0000 Received: from sallyv2.ics.uci.edu (sallyv2.ics.uci.edu [128.195.1.120]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAIIHtiW002525 for <1298@emacsbugs.donarmstrong.com>; Tue, 18 Nov 2008 10:17:56 -0800 Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id mAIIHhhN016807; Tue, 18 Nov 2008 10:17:43 -0800 (PST) Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mAIIHhEf001001; Tue, 18 Nov 2008 10:17:43 -0800 (PST) Date: Tue, 18 Nov 2008 10:17:43 -0800 (PST) Message-Id: <200811181817.mAIIHhEf001001@mothra.ics.uci.edu> From: Dan Nicolaescu To: Stefan Monnier Cc: 1298@debbugs.gnu.org Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200811180822.mAI8MX0n029841@mothra.ics.uci.edu> X-Debbugs-No-Ack: yes In-Reply-To: (Stefan Monnier's message of "Tue, 18 Nov 2008 11:36:43 -0500") Lines: 20 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mAIIHhhN016807 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu Stefan Monnier writes: > >> It would be nice if some equivalent of: > >> 'emacsclient -a "emacs --daemon && emacsclient -c" > >> would work. > >> That would allow one to ALWAYS use emacsclient. > > > Here's a quick hack that allows: > > emacsclient -a "emacs --daemon && emacsclient -c" FILENAME > > to work. It is not complete yet, FILENAME does not get passed to the > > "&& emacsclient" > > Here's an alternative: > > [ "$(emacsclient -e "'up" 2>/dev/null)" = "up" ] || emacs --daemon > emacsclient -c FILENAME I've been using something similar for a long time (even before --daemon), but it seems that it's more elegant to use a single command that shell hackery... From eliz@gnu.org Tue Nov 18 11:43:28 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=-9.2 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 18 Nov 2008 19:43:29 +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 mAIJhPx9023572 for ; Tue, 18 Nov 2008 11:43:27 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L2WTt-0004cp-Nm for bug-gnu-emacs@gnu.org; Tue, 18 Nov 2008 14:43:25 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L2WTr-0004cX-Ut for bug-gnu-emacs@gnu.org; Tue, 18 Nov 2008 14:43:24 -0500 Received: from [199.232.76.173] (port=40863 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2WTr-0004cT-PF for bug-gnu-emacs@gnu.org; Tue, 18 Nov 2008 14:43:23 -0500 Received: from mtaout4.012.net.il ([84.95.2.10]:10267) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L2WTr-00045H-HE for bug-gnu-emacs@gnu.org; Tue, 18 Nov 2008 14:43:23 -0500 Received: from conversion-daemon.i_mtaout4.012.net.il by i_mtaout4.012.net.il (HyperSendmail v2004.12) id <0KAJ00800O53GH00@i_mtaout4.012.net.il> for bug-gnu-emacs@gnu.org; Tue, 18 Nov 2008 21:45:04 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.126.205.49]) by i_mtaout4.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KAJ00EHBO72W2B0@i_mtaout4.012.net.il>; Tue, 18 Nov 2008 21:45:03 +0200 (IST) Date: Tue, 18 Nov 2008 21:43:13 +0200 From: Eli Zaretskii Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' In-reply-to: <200811180822.mAI8MX0n029841@mothra.ics.uci.edu> X-012-Sender: halo1@inter.net.il To: Dan Nicolaescu , 1298@debbugs.gnu.org Cc: 1298@debbugs.gnu.org, bug-submit-list@donarmstrong.com, bug-gnu-emacs@gnu.org Reply-to: Eli Zaretskii Message-id: References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200811180822.mAI8MX0n029841@mothra.ics.uci.edu> X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 > Date: Tue, 18 Nov 2008 00:22:33 -0800 (PST) > From: Dan Nicolaescu > Cc: > > --- emacsclient.c.~1.140.~ 2008-11-03 06:30:13.000000000 -0800 > +++ emacsclient.c 2008-11-18 00:13:29.000000000 -0800 > @@ -630,8 +630,13 @@ fail (void) > if (alternate_editor) > { > int i = optind - 1; > + char * new_argv[] = { "sh", "-c", 0, 0 }; > > - execvp (alternate_editor, main_argv + i); > + new_argv[0] = "sh"; > + new_argv[1] = "-c"; > + new_argv[2] = alternate_editor; > + > + execve ("/bin/sh", new_argv, environ); > message (TRUE, "%s: error executing alternate editor \"%s\"\n", > progname, alternate_editor); > } > > > Thoughts? Won't work on platforms that don't have /bin/sh. From monnier@IRO.UMontreal.CA Tue Nov 18 13:34:43 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.6 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 18 Nov 2008 21:34:43 +0000 Received: from pruche.dit.umontreal.ca (pruche.dit.umontreal.ca [132.204.246.22]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAILYdTE018987 for <1298@emacsbugs.donarmstrong.com>; Tue, 18 Nov 2008 13:34:40 -0800 Received: from alfajor.home (vpn-132-204-232-227.acd.umontreal.ca [132.204.232.227]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id mAILZDsa003340; Tue, 18 Nov 2008 16:35:13 -0500 Received: by alfajor.home (Postfix, from userid 20848) id 603441C72B; Tue, 18 Nov 2008 16:34:38 -0500 (EST) From: Stefan Monnier To: Dan Nicolaescu Cc: 1298@debbugs.gnu.org Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' Message-ID: References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200811180822.mAI8MX0n029841@mothra.ics.uci.edu> <200811181817.mAIIHhEf001001@mothra.ics.uci.edu> Date: Tue, 18 Nov 2008 16:34:38 -0500 In-Reply-To: <200811181817.mAIIHhEf001001@mothra.ics.uci.edu> (Dan Nicolaescu's message of "Tue, 18 Nov 2008 10:17:43 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3150=0 >> >> It would be nice if some equivalent of: >> >> 'emacsclient -a "emacs --daemon && emacsclient -c" >> >> would work. >> >> That would allow one to ALWAYS use emacsclient. >> >> > Here's a quick hack that allows: >> > emacsclient -a "emacs --daemon && emacsclient -c" FILENAME >> > to work. It is not complete yet, FILENAME does not get passed to the >> > "&& emacsclient" >> >> Here's an alternative: >> >> [ "$(emacsclient -e "'up" 2>/dev/null)" = "up" ] || emacs --daemon >> emacsclient -c FILENAME > I've been using something similar for a long time (even before > --daemon), but it seems that it's more elegant to use a single command > that shell hackery... I think both are hacks, where my hack has the advantage of requiring no changes to the code. If you want to change the code, than I'd rather we do it Right. Stefan From dann@mothra.ics.uci.edu Tue Nov 18 14:20:12 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=-9.0 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 18 Nov 2008 22:20:12 +0000 Received: from barrelv2.ics.uci.edu (barrelv2.ics.uci.edu [128.195.1.114]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAIMK9Sj030641 for <1298@emacsbugs.donarmstrong.com>; Tue, 18 Nov 2008 14:20:10 -0800 Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by barrelv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id mAIMJwBN020255; Tue, 18 Nov 2008 14:19:58 -0800 (PST) Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mAIMJv4G002062; Tue, 18 Nov 2008 14:19:57 -0800 (PST) Date: Tue, 18 Nov 2008 14:19:57 -0800 (PST) Message-Id: <200811182219.mAIMJv4G002062@mothra.ics.uci.edu> From: Dan Nicolaescu To: Stefan Monnier Cc: 1298@debbugs.gnu.org Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200811180822.mAI8MX0n029841@mothra.ics.uci.edu> <200811181817.mAIIHhEf001001@mothra.ics.uci.edu> X-Debbugs-No-Ack: yes In-Reply-To: (Stefan Monnier's message of "Tue, 18 Nov 2008 16:34:38 -0500") Lines: 26 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mAIMJwBN020255 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu Stefan Monnier writes: > >> >> It would be nice if some equivalent of: > >> >> 'emacsclient -a "emacs --daemon && emacsclient -c" > >> >> would work. > >> >> That would allow one to ALWAYS use emacsclient. > >> > >> > Here's a quick hack that allows: > >> > emacsclient -a "emacs --daemon && emacsclient -c" FILENAME > >> > to work. It is not complete yet, FILENAME does not get passed to the > >> > "&& emacsclient" > >> > >> Here's an alternative: > >> > >> [ "$(emacsclient -e "'up" 2>/dev/null)" = "up" ] || emacs --daemon > >> emacsclient -c FILENAME > > > I've been using something similar for a long time (even before > > --daemon), but it seems that it's more elegant to use a single command > > that shell hackery... > > I think both are hacks, where my hack has the advantage of requiring no > changes to the code. If you want to change the code, than I'd rather we > do it Right. Well, now please don't tease, say what you mean by "do it Right"... From schwab@suse.de Tue Nov 18 15:02:00 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=-11.0 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 18 Nov 2008 23:02:00 +0000 Received: from mx2.suse.de (ns2.suse.de [195.135.220.15]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAIN1vU2008689 for <1298@emacsbugs.donarmstrong.com>; Tue, 18 Nov 2008 15:01:58 -0800 Received: from Relay1.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 24226459AA; Wed, 19 Nov 2008 00:01:55 +0100 (CET) From: Andreas Schwab To: Dan Nicolaescu Cc: 1298@debbugs.gnu.org, Stefan Monnier Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200811180822.mAI8MX0n029841@mothra.ics.uci.edu> <200811181817.mAIIHhEf001001@mothra.ics.uci.edu> <200811182219.mAIMJv4G002062@mothra.ics.uci.edu> X-Yow: YOW!! Now I understand advanced MICROBIOLOGY and th' new TAX REFORM laws!! Date: Wed, 19 Nov 2008 00:01:53 +0100 In-Reply-To: <200811182219.mAIMJv4G002062@mothra.ics.uci.edu> (Dan Nicolaescu's message of "Tue, 18 Nov 2008 14:19:57 -0800 (PST)") Message-ID: User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Dan Nicolaescu writes: > Well, now please don't tease, say what you mean by "do it Right"... Use a shell script. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From monnier@IRO.UMontreal.CA Tue Nov 18 15:03:09 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.6 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 18 Nov 2008 23:03:10 +0000 Received: from chene.dit.umontreal.ca (chene.dit.umontreal.ca [132.204.246.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAIN366O008727 for <1298@emacsbugs.donarmstrong.com>; Tue, 18 Nov 2008 15:03:07 -0800 Received: from alfajor.home (vpn-132-204-232-227.acd.umontreal.ca [132.204.232.227]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id mAIN1Whj013260; Tue, 18 Nov 2008 18:01:32 -0500 Received: by alfajor.home (Postfix, from userid 20848) id 3FD991C72B; Tue, 18 Nov 2008 18:01:32 -0500 (EST) From: Stefan Monnier To: Dan Nicolaescu Cc: 1298@debbugs.gnu.org Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' Message-ID: References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200811180822.mAI8MX0n029841@mothra.ics.uci.edu> <200811181817.mAIIHhEf001001@mothra.ics.uci.edu> <200811182219.mAIMJv4G002062@mothra.ics.uci.edu> Date: Tue, 18 Nov 2008 18:01:32 -0500 In-Reply-To: <200811182219.mAIMJv4G002062@mothra.ics.uci.edu> (Dan Nicolaescu's message of "Tue, 18 Nov 2008 14:19:57 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3150=0 >> I think both are hacks, where my hack has the advantage of requiring no >> changes to the code. If you want to change the code, than I'd rather we >> do it Right. > Well, now please don't tease, say what you mean by "do it Right"... I guess something that doesn't involve a shell would be a good start. Stefan From dann@mothra.ics.uci.edu Tue Nov 18 15:27:18 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=-9.0 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 18 Nov 2008 23:27:18 +0000 Received: from sallyv2.ics.uci.edu (sallyv2.ics.uci.edu [128.195.1.120]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAINRGUO015428 for <1298@emacsbugs.donarmstrong.com>; Tue, 18 Nov 2008 15:27:17 -0800 Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id mAINR58I024867; Tue, 18 Nov 2008 15:27:05 -0800 (PST) Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mAINR4ZT002539; Tue, 18 Nov 2008 15:27:04 -0800 (PST) Date: Tue, 18 Nov 2008 15:27:04 -0800 (PST) Message-Id: <200811182327.mAINR4ZT002539@mothra.ics.uci.edu> From: Dan Nicolaescu To: Stefan Monnier Cc: 1298@debbugs.gnu.org Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200811180822.mAI8MX0n029841@mothra.ics.uci.edu> <200811181817.mAIIHhEf001001@mothra.ics.uci.edu> <200811182219.mAIMJv4G002062@mothra.ics.uci.edu> X-Debbugs-No-Ack: yes In-Reply-To: (Stefan Monnier's message of "Tue, 18 Nov 2008 18:01:32 -0500") Lines: 21 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mAINR58I024867 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu Stefan Monnier writes: > >> I think both are hacks, where my hack has the advantage of requiring no > >> changes to the code. If you want to change the code, than I'd rather we > >> do it Right. > > > Well, now please don't tease, say what you mean by "do it Right"... > > I guess something that doesn't involve a shell would be a good start. The the was only used because of using && in the initial example. Any suggestions to get around that? How about something like: emacsclient --start-daemon PS: I was thinking "do it Right" would mean: get rid of emacsclient and do everything in emacs... From monnier@iro.umontreal.ca Tue Nov 18 18:21:39 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.0 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 19 Nov 2008 02:21:39 +0000 Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAJ2LZP7027360 for <1298@emacsbugs.donarmstrong.com>; Tue, 18 Nov 2008 18:21:37 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhIFAJ8GI0lMCrcy/2dsb2JhbACBbdB3gnmBFIIj X-IronPort-AV: E=Sophos;i="4.33,628,1220241600"; d="scan'208";a="30033844" Received: from 76-10-183-50.dsl.teksavvy.com (HELO pastel.home) ([76.10.183.50]) by ironport2-out.teksavvy.com with ESMTP; 18 Nov 2008 21:21:30 -0500 Received: by pastel.home (Postfix, from userid 20848) id CABBF7F97; Tue, 18 Nov 2008 21:21:29 -0500 (EST) From: Stefan Monnier To: Dan Nicolaescu Cc: 1298@debbugs.gnu.org Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' Message-ID: References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200811180822.mAI8MX0n029841@mothra.ics.uci.edu> <200811181817.mAIIHhEf001001@mothra.ics.uci.edu> <200811182219.mAIMJv4G002062@mothra.ics.uci.edu> <200811182327.mAINR4ZT002539@mothra.ics.uci.edu> Date: Tue, 18 Nov 2008 21:21:29 -0500 In-Reply-To: <200811182327.mAINR4ZT002539@mothra.ics.uci.edu> (Dan Nicolaescu's message of "Tue, 18 Nov 2008 15:27:04 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > How about something like: > emacsclient --start-daemon You mean "emacsclient --start-daemon-if-needed FILENAME" ? Yes, probably something like that. It could potentially be folded into the alternate-editor (e.g. if alternate-editor has some special value such as the empty string). > PS: I was thinking "do it Right" would mean: get rid of emacsclient and > do everything in emacs... ;-) Stefan From dann@mothra.ics.uci.edu Sun Dec 7 23:54:52 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=-9.0 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER,MURPHY_DRUGS_REL8,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 8 Dec 2008 07:54:52 +0000 Received: from barrelv2.ics.uci.edu (barrelv2.ics.uci.edu [128.195.1.114]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB87sniM002993 for <1298@emacsbugs.donarmstrong.com>; Sun, 7 Dec 2008 23:54:50 -0800 Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by barrelv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id mB87sYZe005582; Sun, 7 Dec 2008 23:54:34 -0800 (PST) Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mB87sXSV016391; Sun, 7 Dec 2008 23:54:33 -0800 (PST) Date: Sun, 7 Dec 2008 23:54:33 -0800 (PST) Message-Id: <200812080754.mB87sXSV016391@mothra.ics.uci.edu> From: Dan Nicolaescu To: Stefan Monnier Cc: 1298@debbugs.gnu.org Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200811180822.mAI8MX0n029841@mothra.ics.uci.edu> <200811181817.mAIIHhEf001001@mothra.ics.uci.edu> <200811182219.mAIMJv4G002062@mothra.ics.uci.edu> <200811182327.mAINR4ZT002539@mothra.ics.uci.edu> X-Debbugs-No-Ack: yes In-Reply-To: (Stefan Monnier's message of "Tue, 18 Nov 2008 21:21:29 -0500") Lines: 188 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mB87sYZe005582 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.286, required 5, autolearn=disabled, ALL_TRUSTED -1.44, TW_DL 0.08, TW_RG 0.08) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu Stefan Monnier writes: > > How about something like: > > emacsclient --start-daemon > > You mean "emacsclient --start-daemon-if-needed FILENAME" ? > Yes, probably something like that. It could potentially be folded into > the alternate-editor (e.g. if alternate-editor has some special value > such as the empty string). How does the patch below look like? There's one refinement possible: make --start-daemon-if-needed take an argument --start-daemon-if-needed=ARG and use it like this: emacs --daemon=ARG Index: emacsclient.c =================================================================== RCS file: /cvsroot/emacs/emacs/lib-src/emacsclient.c,v retrieving revision 1.142 diff -u -3 -p -c -r1.142 emacsclient.c cvs diff: conflicting specifications of output style --- emacsclient.c 3 Dec 2008 04:33:44 -0000 1.142 +++ emacsclient.c 8 Dec 2008 07:52:45 -0000 @@ -150,6 +150,10 @@ /* PID of the Emacs server process. */ int emacs_pid = 0; +/* In case connecting to the server fails, try connecting again after + starting the emacs daemon. */ +int start_daemon_if_needed = 0; + void print_help_and_exit () NO_RETURN; struct option longopts[] = @@ -162,6 +166,7 @@ { "nw", no_argument, NULL, 't' }, { "create-frame", no_argument, NULL, 'c' }, { "alternate-editor", required_argument, NULL, 'a' }, + { "start-daemon-if-needed", no_argument, NULL, 'D' }, #ifndef NO_SOCKETS_IN_FILE_SYSTEM { "socket-name", required_argument, NULL, 's' }, #endif @@ -492,7 +497,7 @@ { int opt = getopt_long_only (argc, argv, #ifndef NO_SOCKETS_IN_FILE_SYSTEM - "VHnea:s:f:d:tc", + "VHneDa:s:f:d:tc", #else "VHnea:f:d:tc", #endif @@ -552,6 +557,10 @@ current_frame = 0; break; + case 'D': + start_daemon_if_needed = 1; + break; + case 'H': print_help_and_exit (); break; @@ -563,6 +572,12 @@ } } + if (start_daemon_if_needed && alternate_editor != NULL) + { + message (TRUE, "--alternate-editor cannot be used when using --start_daemon_if_needed\n"); + exit (EXIT_FAILURE); + } + /* If the -c option is used (without -t) and no --display argument is provided, try $DISPLAY. Without the -c option, we used to set `display' to $DISPLAY by @@ -1294,7 +1309,7 @@ #endif /* ! NO_SOCKETS_IN_FILE_SYSTEM */ HSOCKET -set_socket () +set_socket (int no_exit_if_error) { HSOCKET s; @@ -1305,7 +1320,7 @@ if (socket_name) { s = set_local_socket (); - if ((s != INVALID_SOCKET) || alternate_editor) + if ((s != INVALID_SOCKET) || no_exit_if_error) return s; message (TRUE, "%s: error accessing socket \"%s\"\n", progname, socket_name); @@ -1320,7 +1335,7 @@ if (server_file) { s = set_tcp_socket (); - if ((s != INVALID_SOCKET) || alternate_editor) + if ((s != INVALID_SOCKET) || no_exit_if_error) return s; message (TRUE, "%s: error accessing server file \"%s\"\n", @@ -1338,7 +1353,7 @@ /* Implicit server file. */ server_file = "server"; s = set_tcp_socket (); - if ((s != INVALID_SOCKET) || alternate_editor) + if ((s != INVALID_SOCKET) || no_exit_if_error) return s; /* No implicit or explicit socket, and no alternate editor. */ @@ -1353,7 +1368,7 @@ } #ifdef WINDOWSNT -FARPROC set_fg; /* Pointer to AllowSetForegroundWindow. */ +FARPROC se t_fg; /* Pointer to AllowSetForegroundWindow. */ FARPROC get_wc; /* Pointer to RealGetWindowClassA. */ BOOL CALLBACK @@ -1416,6 +1431,8 @@ int i, rl, needlf = 0; char *cwd, *str; char string[BUFSIZ+1]; + int null_socket_name; + int null_server_file; main_argv = argv; progname = argv[0]; @@ -1431,9 +1448,57 @@ exit (EXIT_FAILURE); } - if ((emacs_socket = set_socket ()) == INVALID_SOCKET) - fail (); + if (start_daemon_if_needed) + { + /* set_socket changes the values for socket_name and + server_file, we need to reset them, if they were NULL before + for the second call to set_socket. */ + null_socket_name = (socket_name == NULL); + null_server_file = (server_file == NULL); + } + + if ((emacs_socket = set_socket (alternate_editor || start_daemon_if_needed)) == INVALID_SOCKET) + if (start_daemon_if_needed) + { + pid_t dpid; + int status; + pid_t p; + + dpid = fork (); + if (dpid > 0) + { + p = waitpid (dpid, &status, WUNTRACED | WCONTINUED); + + /* Reset socket_name and server_file if they were NULL + before the set_socket call. */ + if (null_socket_name) + socket_name = NULL; + if (null_server_file) + server_file = NULL; + + /* Try connecting again, the daemon should have started by + now. */ + message (TRUE, "daemon should have started, trying to connect again\n", dpid); + if ((emacs_socket = set_socket (1)) == INVALID_SOCKET) + message (TRUE, "Cannot connect even after starting the daemon\n"); + } + else if (dpid < 0) + { + fprintf (stderr, "Cannot fork!\n"); + exit (1); + } + else + { + char *const d_argv[] = {"emacs", "--daemon", 0 }; + + /* Start the daemon. */ + execvp ("emacs", d_argv); + message (TRUE, "%s: error starting emacs daemon\n", progname); + } + } + else + fail (); cwd = get_current_dir_name (); if (cwd == 0) From monnier@iro.umontreal.ca Mon Dec 8 08:45:04 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.7 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 8 Dec 2008 16:45:04 +0000 Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB8Gj0MF019449 for <1298@emacsbugs.donarmstrong.com>; Mon, 8 Dec 2008 08:45:02 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtEEANzdPElLd+Db/2dsb2JhbACBbM0VgwWBJoJE X-IronPort-AV: E=Sophos;i="4.33,735,1220241600"; d="scan'208";a="30786617" Received: from 75-119-224-219.dsl.teksavvy.com (HELO pastel.home) ([75.119.224.219]) by ironport2-out.teksavvy.com with ESMTP; 08 Dec 2008 11:44:55 -0500 Received: by pastel.home (Postfix, from userid 20848) id 171768219; Mon, 8 Dec 2008 11:44:55 -0500 (EST) From: Stefan Monnier To: Dan Nicolaescu Cc: 1298@debbugs.gnu.org Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' Message-ID: References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200811180822.mAI8MX0n029841@mothra.ics.uci.edu> <200811181817.mAIIHhEf001001@mothra.ics.uci.edu> <200811182219.mAIMJv4G002062@mothra.ics.uci.edu> <200811182327.mAINR4ZT002539@mothra.ics.uci.edu> <200812080754.mB87sXSV016391@mothra.ics.uci.edu> Date: Mon, 08 Dec 2008 11:44:55 -0500 In-Reply-To: <200812080754.mB87sXSV016391@mothra.ics.uci.edu> (Dan Nicolaescu's message of "Sun, 7 Dec 2008 23:54:33 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> > How about something like: >> > emacsclient --start-daemon >> You mean "emacsclient --start-daemon-if-needed FILENAME" ? >> Yes, probably something like that. It could potentially be folded into >> the alternate-editor (e.g. if alternate-editor has some special value >> such as the empty string). > How does the patch below look like? I'd prefer to combine it with --alternate-editor since the two args are mutually exclusive. Have you tried it and it caused problems? > There's one refinement possible: make --start-daemon-if-needed take an > argument --start-daemon-if-needed=ARG and use it like this: > emacs --daemon=ARG I think this ARG should automatically be taken from the usual --socket-name argument. Stefan From dann@mothra.ics.uci.edu Mon Dec 8 09:09: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=-9.1 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 8 Dec 2008 17:09:44 +0000 Received: from sallyv2.ics.uci.edu (sallyv2.ics.uci.edu [128.195.1.120]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB8H9fPS026176 for <1298@emacsbugs.donarmstrong.com>; Mon, 8 Dec 2008 09:09:42 -0800 Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id mB8H9Uox013899; Mon, 8 Dec 2008 09:09:30 -0800 (PST) Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mB8H9T2m017554; Mon, 8 Dec 2008 09:09:29 -0800 (PST) Date: Mon, 8 Dec 2008 09:09:29 -0800 (PST) Message-Id: <200812081709.mB8H9T2m017554@mothra.ics.uci.edu> From: Dan Nicolaescu To: Stefan Monnier Cc: 1298@debbugs.gnu.org Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200811180822.mAI8MX0n029841@mothra.ics.uci.edu> <200811181817.mAIIHhEf001001@mothra.ics.uci.edu> <200811182219.mAIMJv4G002062@mothra.ics.uci.edu> <200811182327.mAINR4ZT002539@mothra.ics.uci.edu> <200812080754.mB87sXSV016391@mothra.ics.uci.edu> X-Debbugs-No-Ack: yes In-Reply-To: (Stefan Monnier's message of "Mon, 08 Dec 2008 11:44:55 -0500") Lines: 24 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mB8H9Uox013899 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu Stefan Monnier writes: > >> > How about something like: > >> > emacsclient --start-daemon > >> You mean "emacsclient --start-daemon-if-needed FILENAME" ? > >> Yes, probably something like that. It could potentially be folded into > >> the alternate-editor (e.g. if alternate-editor has some special value > >> such as the empty string). > > How does the patch below look like? > > I'd prefer to combine it with --alternate-editor since the two args are > mutually exclusive. Have you tried it and it caused problems? I didn't quite get what you said... It should probably work, modulo ... > > There's one refinement possible: make --start-daemon-if-needed take an > > argument --start-daemon-if-needed=ARG and use it like this: > > emacs --daemon=ARG > > I think this ARG should automatically be taken from the > usual --socket-name argument. ... this: That won't work in the future when we extend --daemon to be able to specify a TCP port for example: --daemon=FILENAME:TCP_PORT From monnier@iro.umontreal.ca Mon Dec 8 12:08:20 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.5 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 8 Dec 2008 20:08:20 +0000 Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB8K8G9q008646 for <1298@emacsbugs.donarmstrong.com>; Mon, 8 Dec 2008 12:08:18 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAIMMPUlLd+Db/2dsb2JhbACBbM07gwWBJoJE X-IronPort-AV: E=Sophos;i="4.33,736,1220241600"; d="scan'208";a="30798559" Received: from 75-119-224-219.dsl.teksavvy.com (HELO pastel.home) ([75.119.224.219]) by ironport2-out.teksavvy.com with ESMTP; 08 Dec 2008 15:07:38 -0500 Received: by pastel.home (Postfix, from userid 20848) id 527CB8219; Mon, 8 Dec 2008 15:07:16 -0500 (EST) From: Stefan Monnier To: Dan Nicolaescu Cc: 1298@debbugs.gnu.org Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' Message-ID: References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200811180822.mAI8MX0n029841@mothra.ics.uci.edu> <200811181817.mAIIHhEf001001@mothra.ics.uci.edu> <200811182219.mAIMJv4G002062@mothra.ics.uci.edu> <200811182327.mAINR4ZT002539@mothra.ics.uci.edu> <200812080754.mB87sXSV016391@mothra.ics.uci.edu> <200812081709.mB8H9T2m017554@mothra.ics.uci.edu> Date: Mon, 08 Dec 2008 15:07:16 -0500 In-Reply-To: <200812081709.mB8H9T2m017554@mothra.ics.uci.edu> (Dan Nicolaescu's message of "Mon, 8 Dec 2008 09:09:29 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> >> > How about something like: >> >> > emacsclient --start-daemon >> >> You mean "emacsclient --start-daemon-if-needed FILENAME" ? >> >> Yes, probably something like that. It could potentially be folded into >> >> the alternate-editor (e.g. if alternate-editor has some special value >> >> such as the empty string). >> > How does the patch below look like? >> >> I'd prefer to combine it with --alternate-editor since the two args are >> mutually exclusive. Have you tried it and it caused problems? > I didn't quite get what you said... It should probably work, modulo ... >> > There's one refinement possible: make --start-daemon-if-needed take an >> > argument --start-daemon-if-needed=ARG and use it like this: >> > emacs --daemon=ARG >> >> I think this ARG should automatically be taken from the >> usual --socket-name argument. > ... this: That won't work in the future when we extend --daemon to be able to > specify a TCP port for example: --daemon=FILENAME:TCP_PORT No need to worry about that: I've already explicitly rejected a tcp-port option for server.el in the past, so I'll be happy to give other such rejections in the future. Stefan PS: The magical value for --alternate-editory should hopefully also work in $ALTERNATE_EDITOR. From dann@mothra.ics.uci.edu Mon Dec 8 12:28:42 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=-9.1 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 8 Dec 2008 20:28:42 +0000 Received: from sallyv2.ics.uci.edu (sallyv2.ics.uci.edu [128.195.1.120]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB8KSdrW014269 for <1298@emacsbugs.donarmstrong.com>; Mon, 8 Dec 2008 12:28:40 -0800 Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id mB8KSJqM012481; Mon, 8 Dec 2008 12:28:19 -0800 (PST) Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mB8KKnf2018098; Mon, 8 Dec 2008 12:20:49 -0800 (PST) Date: Mon, 8 Dec 2008 12:20:49 -0800 (PST) Message-Id: <200812082020.mB8KKnf2018098@mothra.ics.uci.edu> From: Dan Nicolaescu To: Stefan Monnier Cc: 1298@debbugs.gnu.org Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200811180822.mAI8MX0n029841@mothra.ics.uci.edu> <200811181817.mAIIHhEf001001@mothra.ics.uci.edu> <200811182219.mAIMJv4G002062@mothra.ics.uci.edu> <200811182327.mAINR4ZT002539@mothra.ics.uci.edu> <200812080754.mB87sXSV016391@mothra.ics.uci.edu> <200812081709.mB8H9T2m017554@mothra.ics.uci.edu> X-Debbugs-No-Ack: yes In-Reply-To: (Stefan Monnier's message of "Mon, 08 Dec 2008 15:07:16 -0500") Lines: 31 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mB8KSJqM012481 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu Stefan Monnier writes: > >> >> > How about something like: > >> >> > emacsclient --start-daemon > >> >> You mean "emacsclient --start-daemon-if-needed FILENAME" ? > >> >> Yes, probably something like that. It could potentially be folded into > >> >> the alternate-editor (e.g. if alternate-editor has some special value > >> >> such as the empty string). > >> > How does the patch below look like? > >> > >> I'd prefer to combine it with --alternate-editor since the two args are > >> mutually exclusive. Have you tried it and it caused problems? > > > I didn't quite get what you said... It should probably work, modulo ... > > >> > There's one refinement possible: make --start-daemon-if-needed take an > >> > argument --start-daemon-if-needed=ARG and use it like this: > >> > emacs --daemon=ARG > >> > >> I think this ARG should automatically be taken from the > >> usual --socket-name argument. > > > ... this: That won't work in the future when we extend --daemon to be able to > > specify a TCP port for example: --daemon=FILENAME:TCP_PORT > > No need to worry about that: I've already explicitly rejected a tcp-port > option for server.el in the past, so I'll be happy to give other such > rejections in the future. Hmm, you said the reverse here: http://article.gmane.org/gmane.emacs.devel/103350 From monnier@IRO.UMontreal.CA Mon Dec 8 13:48:35 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.6 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 8 Dec 2008 21:48:35 +0000 Received: from chene.dit.umontreal.ca (chene.dit.umontreal.ca [132.204.246.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB8LmRiW005235 for <1298@emacsbugs.donarmstrong.com>; Mon, 8 Dec 2008 13:48:29 -0800 Received: from alfajor.home (vpn-132-204-232-22.acd.umontreal.ca [132.204.232.22]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id mB8LmQIt021879; Mon, 8 Dec 2008 16:48:26 -0500 Received: by alfajor.home (Postfix, from userid 20848) id BF4AF1C13C; Mon, 8 Dec 2008 16:48:25 -0500 (EST) From: Stefan Monnier To: Dan Nicolaescu Cc: 1298@debbugs.gnu.org Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' Message-ID: References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200811180822.mAI8MX0n029841@mothra.ics.uci.edu> <200811181817.mAIIHhEf001001@mothra.ics.uci.edu> <200811182219.mAIMJv4G002062@mothra.ics.uci.edu> <200811182327.mAINR4ZT002539@mothra.ics.uci.edu> <200812080754.mB87sXSV016391@mothra.ics.uci.edu> <200812081709.mB8H9T2m017554@mothra.ics.uci.edu> <200812082020.mB8KKnf2018098@mothra.ics.uci.edu> Date: Mon, 08 Dec 2008 16:48:25 -0500 In-Reply-To: <200812082020.mB8KKnf2018098@mothra.ics.uci.edu> (Dan Nicolaescu's message of "Mon, 8 Dec 2008 12:20:49 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3164=0 >> No need to worry about that: I've already explicitly rejected a tcp-port >> option for server.el in the past, so I'll be happy to give other such >> rejections in the future. > Hmm, you said the reverse here: > http://article.gmane.org/gmane.emacs.devel/103350 Indeed. Consistency is the hgolm, isn't it? In any case, I think it's more important to handle the alternate-editor issue than the tcp port issue. Stefan From dann@mothra.ics.uci.edu Tue Dec 9 10:58:53 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-Bayes: score:0.0000 Tokens: new, 26; hammy, 151; neutral, 159; spammy, 0. spammytokens: hammytokens:0.000-+--emacs, 0.000-+--Emacs, 0.000-+--H*i:message, 0.000-+--H*i:2008, 0.000-+--UD:el X-Spam-Status: No, score=-9.0 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER,MURPHY_DRUGS_REL8,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 9 Dec 2008 18:58:54 +0000 Received: from sallyv2.ics.uci.edu (sallyv2.ics.uci.edu [128.195.1.120]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB9IwoHE005281 for <1298@emacsbugs.donarmstrong.com>; Tue, 9 Dec 2008 10:58:51 -0800 Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id mB9IwXm7015071; Tue, 9 Dec 2008 10:58:33 -0800 (PST) Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mB9IwW8K022220; Tue, 9 Dec 2008 10:58:32 -0800 (PST) Date: Tue, 9 Dec 2008 10:58:32 -0800 (PST) Message-Id: <200812091858.mB9IwW8K022220@mothra.ics.uci.edu> From: Dan Nicolaescu To: Stefan Monnier Cc: 1298@debbugs.gnu.org Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200811180822.mAI8MX0n029841@mothra.ics.uci.edu> <200811181817.mAIIHhEf001001@mothra.ics.uci.edu> <200811182219.mAIMJv4G002062@mothra.ics.uci.edu> <200811182327.mAINR4ZT002539@mothra.ics.uci.edu> <200812080754.mB87sXSV016391@mothra.ics.uci.edu> <200812081709.mB8H9T2m017554@mothra.ics.uci.edu> <200812082020.mB8KKnf2018098@mothra.ics.uci.edu> X-Debbugs-No-Ack: yes In-Reply-To: (Stefan Monnier's message of "Mon, 08 Dec 2008 16:48:25 -0500") Lines: 139 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mB9IwXm7015071 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.209, required 5, autolearn=disabled, ALL_TRUSTED -1.44, TW_CP 0.08, TW_DL 0.08, TW_RG 0.08) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu Stefan Monnier writes: > >> No need to worry about that: I've already explicitly rejected a tcp-port > >> option for server.el in the past, so I'll be happy to give other such > >> rejections in the future. > > > Hmm, you said the reverse here: > > http://article.gmane.org/gmane.emacs.devel/103350 > > Indeed. Consistency is the hgolm, isn't it? hgolm? Updated patch that uses -a "" or --alternate-editor= or ALTERNATE_EDITOR="": Index: emacsclient.c =================================================================== RCS file: /cvsroot/emacs/emacs/lib-src/emacsclient.c,v retrieving revision 1.142 diff -u -3 -p -u -p -r1.142 emacsclient.c --- emacsclient.c 3 Dec 2008 04:33:44 -0000 1.142 +++ emacsclient.c 9 Dec 2008 18:53:51 -0000 @@ -1294,7 +1294,7 @@ To start the server in Emacs, type \"M-x #endif /* ! NO_SOCKETS_IN_FILE_SYSTEM */ HSOCKET -set_socket () +set_socket (int no_exit_if_error) { HSOCKET s; @@ -1305,7 +1305,7 @@ set_socket () if (socket_name) { s = set_local_socket (); - if ((s != INVALID_SOCKET) || alternate_editor) + if ((s != INVALID_SOCKET) || no_exit_if_error) return s; message (TRUE, "%s: error accessing socket \"%s\"\n", progname, socket_name); @@ -1320,7 +1320,7 @@ set_socket () if (server_file) { s = set_tcp_socket (); - if ((s != INVALID_SOCKET) || alternate_editor) + if ((s != INVALID_SOCKET) || no_exit_if_error) return s; message (TRUE, "%s: error accessing server file \"%s\"\n", @@ -1338,7 +1338,7 @@ set_socket () /* Implicit server file. */ server_file = "server"; s = set_tcp_socket (); - if ((s != INVALID_SOCKET) || alternate_editor) + if ((s != INVALID_SOCKET) || no_exit_if_error) return s; /* No implicit or explicit socket, and no alternate editor. */ @@ -1416,6 +1416,7 @@ main (argc, argv) int i, rl, needlf = 0; char *cwd, *str; char string[BUFSIZ+1]; + int null_socket_name, null_server_file, start_daemon_if_needed; main_argv = argv; progname = argv[0]; @@ -1431,9 +1432,68 @@ main (argc, argv) exit (EXIT_FAILURE); } - if ((emacs_socket = set_socket ()) == INVALID_SOCKET) - fail (); - + start_daemon_if_needed = (alternate_editor + && (alternate_editor[0] == '\0')); + if (start_daemon_if_needed) + { + /* set_socket changes the values for socket_name and + server_file, we need to reset them, if they were NULL before + for the second call to set_socket. */ + null_socket_name = (socket_name == NULL); + null_server_file = (server_file == NULL); + } + + if ((emacs_socket = set_socket (alternate_editor + || start_daemon_if_needed)) == INVALID_SOCKET) + if (start_daemon_if_needed) + { + pid_t dpid; + int status; + pid_t p; + + /* Reset socket_name and server_file if they were NULL + before the set_socket call. */ + if (null_socket_name) + socket_name = NULL; + if (null_server_file) + server_file = NULL; + + dpid = fork (); + + if (dpid > 0) + { + p = waitpid (dpid, &status, WUNTRACED | WCONTINUED); + + /* Try connecting again, the daemon should have started by + now. */ + message (TRUE, "daemon should have started, trying to connect again\n", dpid); + if ((emacs_socket = set_socket (1)) == INVALID_SOCKET) + message (TRUE, "Cannot connect even after starting the daemon\n"); + } + else if (dpid < 0) + { + fprintf (stderr, "Cannot fork!\n"); + exit (1); + } + else + { + char *d_argv[] = {"emacs", "--daemon", 0 }; + if (!null_socket_name) + { + /* Pass --daemon=socket_name as argument. */ + char *deq = "--daemon="; + char *daemon_arg = alloca (strlen (deq) + + strlen (socket_name) + 1); + strcpy (daemon_arg, deq); + strcat (daemon_arg, socket_name); + d_argv[1] = daemon_arg; + } + execvp ("emacs", d_argv); + message (TRUE, "%s: error starting emacs daemon\n", progname); + } + } + else + fail (); cwd = get_current_dir_name (); if (cwd == 0) From lekktu@gmail.com Tue Dec 9 11:30:52 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-Bayes: score:0.0000 Tokens: new, 30; hammy, 98; neutral, 30; spammy, 1. spammytokens:0.855-+--UD:com hammytokens:0.000-+--emacs, 0.000-+--H*f:sk:emacsbu, 0.000-+--HDKIM-Signature:sk:content, 0.000-+--H*MI:sk:emacsbu, 0.000-+--emacsclient X-Spam-Status: No, score=-6.1 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 9 Dec 2008 19:30:53 +0000 Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.246]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB9JUn4W015734 for <1298@emacsbugs.donarmstrong.com>; Tue, 9 Dec 2008 11:30:50 -0800 Received: by an-out-0708.google.com with SMTP id c38so59096ana.31 for <1298@emacsbugs.donarmstrong.com>; Tue, 09 Dec 2008 11:30:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=ZXw0/cljkRQaM+j9ZwMjvAAftltDcwUOxtMNX5HvqGk=; b=fk3sUWBVa4qRZUo0QVp7f8CAT7AIn2A11QU1GsECvkFo+cdOroyhPTxMvvWiJbNT/b is9dvTnExsIS0lGBXOyzZ53JaI+XygOjDEseXvbyDwYHna1skALJhb7bTwui2GtAYm7B I0QXWsGTdjQzp8OJKyAkmt0U2jPOpgwKxjDtE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=qpYCFRUVInOj01eCClXWa4SrMoeB4LYlvZXO6yzOt5Q+T2QElaWyldNPZp8bO0RZMI G7ASoZNFIwJy77wKGZcIvAys3AfBwyQ8nie9vk/xT7TQ7J/dus7nNoUg7TqaT9f25lzY GT7Ey/IRGYSUpp0jwjUoc5vJC5CVO12UMghSQ= Received: by 10.100.119.17 with SMTP id r17mr450214anc.130.1228851049176; Tue, 09 Dec 2008 11:30:49 -0800 (PST) Received: by 10.100.13.13 with HTTP; Tue, 9 Dec 2008 11:30:49 -0800 (PST) Message-ID: Date: Tue, 9 Dec 2008 20:30:49 +0100 From: "Juanma Barranquero" To: "Dan Nicolaescu" , 1298@debbugs.gnu.org Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' Cc: "Stefan Monnier" In-Reply-To: <200812091858.mB9IwW8K022220@mothra.ics.uci.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200811182327.mAINR4ZT002539@mothra.ics.uci.edu> <200812080754.mB87sXSV016391@mothra.ics.uci.edu> <200812081709.mB8H9T2m017554@mothra.ics.uci.edu> <200812082020.mB8KKnf2018098@mothra.ics.uci.edu> <200812091858.mB9IwW8K022220@mothra.ics.uci.edu> On Tue, Dec 9, 2008 at 19:58, Dan Nicolaescu wrote: > > Indeed. Consistency is the hgolm, isn't it? > > hgolm? http://www.bartleby.com/59/3/foolishconsi.html Juanma From monnier@IRO.UMontreal.CA Tue Dec 9 12:07:40 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-Bayes: score:0.0000 Tokens: new, 6; hammy, 144; neutral, 42; spammy, 1. spammytokens:0.855-+--UD:com hammytokens:0.000-+--emacs, 0.000-+--H*M:fsf, 0.000-+--H*UA:Emacs, 0.000-+--H*u:Emacs, 0.000-+--H*UA:Gnus X-Spam-Status: No, score=-6.6 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 9 Dec 2008 20:07:40 +0000 Received: from chene.dit.umontreal.ca (chene.dit.umontreal.ca [132.204.246.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB9K7bJ7026292 for <1298@emacsbugs.donarmstrong.com>; Tue, 9 Dec 2008 12:07:38 -0800 Received: from alfajor.home (vpn-132-204-232-76.acd.umontreal.ca [132.204.232.76]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id mB9K7Zc0006127; Tue, 9 Dec 2008 15:07:35 -0500 Received: by alfajor.home (Postfix, from userid 20848) id 6AB1F1C91C; Tue, 9 Dec 2008 15:07:35 -0500 (EST) From: Stefan Monnier To: Dan Nicolaescu Cc: 1298@debbugs.gnu.org Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' Message-ID: References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200811180822.mAI8MX0n029841@mothra.ics.uci.edu> <200811181817.mAIIHhEf001001@mothra.ics.uci.edu> <200811182219.mAIMJv4G002062@mothra.ics.uci.edu> <200811182327.mAINR4ZT002539@mothra.ics.uci.edu> <200812080754.mB87sXSV016391@mothra.ics.uci.edu> <200812081709.mB8H9T2m017554@mothra.ics.uci.edu> <200812082020.mB8KKnf2018098@mothra.ics.uci.edu> <200812091858.mB9IwW8K022220@mothra.ics.uci.edu> Date: Tue, 09 Dec 2008 15:07:35 -0500 In-Reply-To: <200812091858.mB9IwW8K022220@mothra.ics.uci.edu> (Dan Nicolaescu's message of "Tue, 9 Dec 2008 10:58:32 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3165=0 >> >> No need to worry about that: I've already explicitly rejected a tcp-port >> >> option for server.el in the past, so I'll be happy to give other such >> >> rejections in the future. >> > Hmm, you said the reverse here: >> > http://article.gmane.org/gmane.emacs.devel/103350 >> Indeed. Consistency is the hgolm, isn't it? > hgolm? http://www.bartleby.com/59/3/foolishconsi.html > Updated patch that uses -a "" or --alternate-editor= or > ALTERNATE_EDITOR="": Looks OK, except that the whole body of the if, where you do the fork etc.. deserves its own function. Stefan From dann@mothra.ics.uci.edu Tue Dec 9 23:59:03 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-Bayes: score:0.0000 Tokens: new, 13; hammy, 150; neutral, 47; spammy, 1. spammytokens:0.997-1--Checked hammytokens:0.000-+--emacs, 0.000-+--H*i:message, 0.000-+--H*i:2008, 0.000-+--UD:el, 0.000-+--stefan X-Spam-Status: No, score=-9.1 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 10 Dec 2008 07:59:03 +0000 Received: from sallyv2.ics.uci.edu (sallyv2.ics.uci.edu [128.195.1.120]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBA7wx1Y027705 for <1298@emacsbugs.donarmstrong.com>; Tue, 9 Dec 2008 23:59:00 -0800 Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id mBA7wmom024513; Tue, 9 Dec 2008 23:58:48 -0800 (PST) Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mBA7wlR5024667; Tue, 9 Dec 2008 23:58:47 -0800 (PST) Date: Tue, 9 Dec 2008 23:58:47 -0800 (PST) Message-Id: <200812100758.mBA7wlR5024667@mothra.ics.uci.edu> From: Dan Nicolaescu To: Stefan Monnier Cc: 1298@debbugs.gnu.org Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200811180822.mAI8MX0n029841@mothra.ics.uci.edu> <200811181817.mAIIHhEf001001@mothra.ics.uci.edu> <200811182219.mAIMJv4G002062@mothra.ics.uci.edu> <200811182327.mAINR4ZT002539@mothra.ics.uci.edu> <200812080754.mB87sXSV016391@mothra.ics.uci.edu> <200812081709.mB8H9T2m017554@mothra.ics.uci.edu> <200812082020.mB8KKnf2018098@mothra.ics.uci.edu> <200812091858.mB9IwW8K022220@mothra.ics.uci.edu> X-Debbugs-No-Ack: yes In-Reply-To: (Stefan Monnier's message of "Tue, 09 Dec 2008 15:07:35 -0500") Lines: 19 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mBA7wmom024513 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.24, required 5, autolearn=disabled, ALL_TRUSTED -1.44, DBL_12_LETTER_FLDR 0.20) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu Stefan Monnier writes: > >> >> No need to worry about that: I've already explicitly rejected a tcp-port > >> >> option for server.el in the past, so I'll be happy to give other such > >> >> rejections in the future. > >> > Hmm, you said the reverse here: > >> > http://article.gmane.org/gmane.emacs.devel/103350 > >> Indeed. Consistency is the hgolm, isn't it? > > hgolm? > > http://www.bartleby.com/59/3/foolishconsi.html > > > Updated patch that uses -a "" or --alternate-editor= or > > ALTERNATE_EDITOR="": > > Looks OK, except that the whole body of the if, where you do the fork > etc.. deserves its own function. Thanks. Checked in with that change. From lekktu@gmail.com Wed Dec 10 01:49:19 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-Bayes: score:0.0000 Tokens: new, 22; hammy, 106; neutral, 36; spammy, 1. spammytokens:0.856-+--UD:com hammytokens:0.000-+--emacs, 0.000-+--H*f:sk:emacsbu, 0.000-+--HDKIM-Signature:sk:content, 0.000-+--H*MI:sk:emacsbu, 0.000-+--emacsclient X-Spam-Status: No, score=-6.1 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 10 Dec 2008 09:49:19 +0000 Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.250]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBA9nGE5024672 for <1298@emacsbugs.donarmstrong.com>; Wed, 10 Dec 2008 01:49:17 -0800 Received: by an-out-0708.google.com with SMTP id c38so187752ana.31 for <1298@emacsbugs.donarmstrong.com>; Wed, 10 Dec 2008 01:49:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=NT2wYG1IALm1ANHxQwGsewOfBXiFSWSEBlgzMLY1tMM=; b=W5x+rgNSCfoMqETOlY85awoB1zMwa5Kc5a5G46aHI0fevgwpsYxw3V3Oi1Byold9k2 HSi3qyi43+Egr9dDr1UkQ/55ZfVTsGFQB5I/9TM/qyKChNzRKk9HgE7Bm4BsfZ6AOgjR 1BcRv/vRLn6SQgb9dmplJb96L2hCXMiS7MCd4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=ThZzYz9tIwpZ5VrByywoMmA8oBJ1paQvU0JH0ZUhOJboiEQLnd22Us0obZmCsbCN3V eShnp1vhI8tD4V9HMSiB7mtIKyMdTEW5A3PfGc+Ra6tt8auPaEXDqbYJG2rOppML5awj tlV5slroismh3X0LaaYYM9nC7q68UM0MJz92M= Received: by 10.100.31.10 with SMTP id e10mr939422ane.12.1228902556027; Wed, 10 Dec 2008 01:49:16 -0800 (PST) Received: by 10.100.13.13 with HTTP; Wed, 10 Dec 2008 01:49:15 -0800 (PST) Message-ID: Date: Wed, 10 Dec 2008 10:49:15 +0100 From: "Juanma Barranquero" To: "Dan Nicolaescu" , 1298@debbugs.gnu.org Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' Cc: "Stefan Monnier" In-Reply-To: <200812100758.mBA7wlR5024667@mothra.ics.uci.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200812080754.mB87sXSV016391@mothra.ics.uci.edu> <200812081709.mB8H9T2m017554@mothra.ics.uci.edu> <200812082020.mB8KKnf2018098@mothra.ics.uci.edu> <200812091858.mB9IwW8K022220@mothra.ics.uci.edu> <200812100758.mBA7wlR5024667@mothra.ics.uci.edu> On Wed, Dec 10, 2008 at 08:58, Dan Nicolaescu wrote: > Thanks. Checked in with that change. I've checked in the minimal change that allows emacsclient to build on Windows again. Feel free to adapt to your tastes, but please, don't delete the EMACS_DAEMON define. Juanma From dann@mothra.ics.uci.edu Wed Dec 10 07:03:58 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-Bayes: score:0.0000 Tokens: new, 7; hammy, 139; neutral, 43; spammy, 1. spammytokens:0.860-1--taste hammytokens:0.000-+--emacs, 0.000-+--H*i:message, 0.000-+--H*i:2008, 0.000-+--HX-Debbugs-No-Ack:yes, 0.000-+--H*MI:message X-Spam-Status: No, score=-8.6 required=4.0 tests=AWL,BAYES_00,GMAIL, HAS_BUG_NUMBER,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 10 Dec 2008 15:03:58 +0000 Received: from barrelv2.ics.uci.edu (barrelv2.ics.uci.edu [128.195.1.114]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBAF3tKI021275 for <1298@emacsbugs.donarmstrong.com>; Wed, 10 Dec 2008 07:03:56 -0800 Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by barrelv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id mBAF3dLU021776; Wed, 10 Dec 2008 07:03:40 -0800 (PST) Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mBAF3d2p025533; Wed, 10 Dec 2008 07:03:39 -0800 (PST) Date: Wed, 10 Dec 2008 07:03:39 -0800 (PST) Message-Id: <200812101503.mBAF3d2p025533@mothra.ics.uci.edu> From: Dan Nicolaescu To: Juanma Barranquero Cc: 1298@debbugs.gnu.org, Stefan Monnier Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200812080754.mB87sXSV016391@mothra.ics.uci.edu> <200812081709.mB8H9T2m017554@mothra.ics.uci.edu> <200812082020.mB8KKnf2018098@mothra.ics.uci.edu> <200812091858.mB9IwW8K022220@mothra.ics.uci.edu> <200812100758.mBA7wlR5024667@mothra.ics.uci.edu> X-Debbugs-No-Ack: yes In-Reply-To: (Juanma Barranquero's message of "Wed, 10 Dec 2008 10:49:15 +0100") Lines: 15 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mBAF3dLU021776 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu "Juanma Barranquero" writes: > On Wed, Dec 10, 2008 at 08:58, Dan Nicolaescu wrote: > > > Thanks. Checked in with that change. > > I've checked in the minimal change that allows emacsclient to build on > Windows again. > > Feel free to adapt to your tastes, but please, don't delete the > EMACS_DAEMON define. As you well know my taste is exactly not to add such #defines. There's not such #define in the daemon implementation in src, the new macro in undocumented, and your move was just designed as a provocation. From lekktu@gmail.com Wed Dec 10 07:10:38 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-Bayes: score:0.0000 Tokens: new, 37; hammy, 144; neutral, 65; spammy, 5. spammytokens:1.000-5--engage, 0.987-1--equipo, 0.979-8--war, 0.858-1--providing, 0.857-+--UD:com hammytokens:0.000-+--emacs, 0.000-+--H*f:sk:emacsbu, 0.000-+--HDKIM-Signature:sk:content, 0.000-+--H*MI:sk:emacsbu, 0.000-+--emacsclient X-Spam-Status: No, score=-6.0 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 10 Dec 2008 15:10:38 +0000 Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.245]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBAFAZuc024920 for <1298@emacsbugs.donarmstrong.com>; Wed, 10 Dec 2008 07:10:36 -0800 Received: by an-out-0708.google.com with SMTP id c38so239479ana.31 for <1298@emacsbugs.donarmstrong.com>; Wed, 10 Dec 2008 07:10:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=/ya/gW/KPaWiZJ+MQcMnepqnFOumE83pQYKtSCNcYCs=; b=nPaSSuXwxiswp2JEh9z7yBeiZVPfLcansFSihXwh2LSzfuRiIpdeBHOVpnQ1lGcKOe Y8bratsEsMVl4UYyiMKbaiHQm4H6gPEcqugueVna0YnCL74WHS/cHrYr3NY7EgJZawCv 5gnITk9tR2WH/2ZVMqufAzxbmCA/Mx2llsLA8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=iOVrZCkZiV0269VVE92ySd3VH1P++to1cOuH1kA1MVVGhpWYxLGyQ7Wlfz6sBqNOfv V9AeA/lE71XZ5mO/DPyrM1npT094Y4+D6OEUTIYlRfylmr0GzgTkqslXAE3+aI5YaxQp yXWS+RMXmXOxsabh57aZEm1Eswlj9hglag4Eg= Received: by 10.100.144.11 with SMTP id r11mr1113655and.24.1228921834937; Wed, 10 Dec 2008 07:10:34 -0800 (PST) Received: by 10.100.13.13 with HTTP; Wed, 10 Dec 2008 07:10:34 -0800 (PST) Message-ID: Date: Wed, 10 Dec 2008 16:10:34 +0100 From: "Juanma Barranquero" To: "Dan Nicolaescu" Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' Cc: 1298@debbugs.gnu.org, "Stefan Monnier" In-Reply-To: <200812101503.mBAF3d2p025533@mothra.ics.uci.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200812081709.mB8H9T2m017554@mothra.ics.uci.edu> <200812082020.mB8KKnf2018098@mothra.ics.uci.edu> <200812091858.mB9IwW8K022220@mothra.ics.uci.edu> <200812100758.mBA7wlR5024667@mothra.ics.uci.edu> <200812101503.mBAF3d2p025533@mothra.ics.uci.edu> T24gV2VkLCBEZWMgMTAsIDIwMDggYXQgMTY6MDMsIERhbiBOaWNvbGFlc2N1IDxkYW5uQGljcy51 Y2kuZWR1PiB3cm90ZToKCj4gQXMgeW91IHdlbGwga25vdyBteSB0YXN0ZSBpcyBleGFjdGx5IG5v dCB0byBhZGQgc3VjaCAjZGVmaW5lcy4KCkFzIHlvdSB3ZWxsIGtub3csIHNvbWUgb2YgdXMgcHJl ZmVyIHN1Y2ggZGVmaW5lcywgd2hlbiBuZWVkZWQuCgo+IFRoZXJlJ3MKPiBub3Qgc3VjaCAjZGVm aW5lIGluIHRoZSBkYWVtb24gaW1wbGVtZW50YXRpb24gaW4gc3JjLAoKQnV0IGl0IGlzIG5lZWVk ZWQuIFdoYXQgeW91IGp1c3QgY29tbWl0dGVkIGRvZXMgKm5vdCogd29yayBvbiBXaW5kb3dzLgoK PiB0aGUgbmV3IG1hY3JvIGluCj4gdW5kb2N1bWVudGVkLAoKVGhhdCBjYW4gZWFzaWx5IGJlIGZp eGVkIGJ5IGRvY3VtZW50aW5nLgoKPiBhbmQgeW91ciBtb3ZlIHdhcyBqdXN0IGRlc2lnbmVkIGFz IGEgcHJvdm9jYXRpb24uCgpObywgaXQgd2FzIG5vdDsgaXQncyBqdXN0IHRoYXQgSSBsaWtlIG15 IGVtYWNzY2xpZW50IHdvcmtpbmcuIEJ1dApjdXJpb3VzbHkgSSd2ZSBnb3QgdGhlIHNhbWUgZmVl bGluZyBmcm9tIHlvdXIgYWN0aW9uOiB0aGF0IGlzIHdhcyBqdXN0CmEgcHJvdm9jYXRpb24uIFdo YXQgZG8geW91IHdhbnQgZm9yIHVzIHRvIGRvLCB0byBlbmdhZ2UgaW4gYSBwb2ludGxlc3MKY29t bWl0IHdhciAoYmVjYXVzZSwgSUlSQywgZW1hY3NjbGllbnQuYyBpcyBub3QgeW91cnMgb25seSB0 byBkZWNpZGUpLgoKRG8gbm90IHJlbW92ZSBXaW5kb3dzIGNoYW5nZXMgdW5sZXNzIHlvdSdyZSBw cm92aWRpbmcgYW4gZXF1aXZhbGVudCwKb3IgYmV0dGVyLCBmaXguIFNvIHBsZWFzZSwgcmV2ZXJ0 IHlvdXIgY2hhbmdlIG9yIGZpeCBpdCBzbyBJICpkb24ndCoKbmVlZCB0byB1c2UgYW4gYWx0ZXJu YXRlIHNlcnZlci4KCiAgQzpcZW1hY3M+IGVtYWNzY2xpZW50IC0tYWx0ZXJuYXRlLWVkaXRvcj1j OlxlbWFjc1xiaW5cZW1hY3MuZXhlIG15LWZpbGUudHh0CiAgZW1hY3NjbGllbnQ6IGNvbm5lY3Q6 IE5vIHNlIGhhIHBvZGlkbyBlc3RhYmxlY2VyIGNvbmV4acK+biB5YSBxdWUgZWwKZXF1aXBvIGRl IGRlc3Rpbm8gaGEKICBkZW5lZ2FkbyBhY3RpdmFtZW50ZSBkaWNoYSBjb25leGnCvm4KClRoZSBt ZXNzYWdlIHNheXM6ICJjb3VsZCBub3QgZXN0YWJsaXNoIGEgY29ubmVjdGlvbiBiZWNhdXNlIHRo ZQpkZXN0aW5hdGlvbiBjb21wdXRlciBhY3RpdmVseSByZWplY3RlZCB0aGUgY29ubmVjdGlvbiIs IG1vcmUgb3IgbGVzcy4KCiAgICBKdWFubWEK From dann@mothra.ics.uci.edu Wed Dec 10 07:30:01 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-Bayes: score:0.0000 Tokens: new, 8; hammy, 129; neutral, 40; spammy, 0. spammytokens: hammytokens:0.000-+--emacs, 0.000-+--H*i:message, 0.000-+--H*i:2008, 0.000-+--HX-Debbugs-No-Ack:yes, 0.000-+--H*MI:message X-Spam-Status: No, score=-8.6 required=4.0 tests=AWL,BAYES_00,GMAIL, HAS_BUG_NUMBER,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 10 Dec 2008 15:30:01 +0000 Received: from barrelv2.ics.uci.edu (barrelv2.ics.uci.edu [128.195.1.114]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBAFTw0X030046 for <1298@emacsbugs.donarmstrong.com>; Wed, 10 Dec 2008 07:29:59 -0800 Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by barrelv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id mBAFThe5025746; Wed, 10 Dec 2008 07:29:43 -0800 (PST) Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mBAFTg06025653; Wed, 10 Dec 2008 07:29:42 -0800 (PST) Date: Wed, 10 Dec 2008 07:29:42 -0800 (PST) Message-Id: <200812101529.mBAFTg06025653@mothra.ics.uci.edu> From: Dan Nicolaescu To: "Juanma Barranquero" Cc: 1298@debbugs.gnu.org, "Stefan Monnier" Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200812081709.mB8H9T2m017554@mothra.ics.uci.edu> <200812082020.mB8KKnf2018098@mothra.ics.uci.edu> <200812091858.mB9IwW8K022220@mothra.ics.uci.edu> <200812100758.mBA7wlR5024667@mothra.ics.uci.edu> <200812101503.mBAF3d2p025533@mothra.ics.uci.edu> X-Debbugs-No-Ack: yes In-Reply-To: (Juanma Barranquero's message of "Wed, 10 Dec 2008 16:10:34 +0100") Lines: 17 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mBAFThe5025746 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu "Juanma Barranquero" writes: > On Wed, Dec 10, 2008 at 16:03, Dan Nicolaescu wrote: > > > > There's > > not such #define in the daemon implementation in src, > > But it is neeeded. That's a separate discussion that I am not interested in. When such a macro is added, this can be revisited and be made consistent. > What you just committed does *not* work on Windows. There was a bug that I fixed, not related to any new macro. From lekktu@gmail.com Wed Dec 10 07:32:26 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-Bayes: score:0.0000 Tokens: new, 27; hammy, 109; neutral, 47; spammy, 1. spammytokens:0.857-+--UD:com hammytokens:0.000-+--emacs, 0.000-+--H*f:sk:emacsbu, 0.000-+--HDKIM-Signature:sk:content, 0.000-+--H*MI:sk:emacsbu, 0.000-+--emacsclient X-Spam-Status: No, score=-6.1 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 10 Dec 2008 15:32:26 +0000 Received: from mail-ew0-f21.google.com (mail-ew0-f21.google.com [209.85.219.21]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBAFWNKX031413 for <1298@emacsbugs.donarmstrong.com>; Wed, 10 Dec 2008 07:32:24 -0800 Received: by ewy14 with SMTP id 14so1084685ewy.1 for <1298@emacsbugs.donarmstrong.com>; Wed, 10 Dec 2008 07:32:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=pSe34TrmMNrk3HVHuWDqqcV7xKB0tJzMZnR3JsJnXsc=; b=glEE7ACP6IP/fwr64fboyTJixOIKBxO+BVYw9+lCUOyTi3AYBHUdIf0+ua7fvK36qV pirWGMsCt4Q1gVjcd62hJbTwy7cK1IVnS1tduUJOI/IRwd2CrBE5UzOQcAKU54hRMjgl ZwHgg0VZc/wxhq05J8StDzGXrXbBOoRdaJ8ns= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=k9TcFXdvzhS362x2vEyQRu1rQSNMdODzwsRSyC5EUHg9oALmqkuRr9ysumMgAq+xju tzaqTyaHzmcFzr//XHGG/Jbi+0+sjNNrGitphYPm2OqYtfwVcFcP8X6Ks7DfnHUm+ltW fC0uXhBoA9wBap2E17m43/zBLxhCj4cgZ3xrs= Received: by 10.210.59.14 with SMTP id h14mr1758214eba.182.1228923137419; Wed, 10 Dec 2008 07:32:17 -0800 (PST) Received: by 10.210.19.10 with HTTP; Wed, 10 Dec 2008 07:32:17 -0800 (PST) Message-ID: Date: Wed, 10 Dec 2008 16:32:17 +0100 From: "Juanma Barranquero" To: "Dan Nicolaescu" Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' Cc: 1298@debbugs.gnu.org, "Stefan Monnier" In-Reply-To: <200812101529.mBAFTg06025653@mothra.ics.uci.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200812082020.mB8KKnf2018098@mothra.ics.uci.edu> <200812091858.mB9IwW8K022220@mothra.ics.uci.edu> <200812100758.mBA7wlR5024667@mothra.ics.uci.edu> <200812101503.mBAF3d2p025533@mothra.ics.uci.edu> <200812101529.mBAFTg06025653@mothra.ics.uci.edu> On Wed, Dec 10, 2008 at 16:29, Dan Nicolaescu wrote: > That's a separate discussion that I am not interested in. There's quite a difference between "I'm not interested in discussing this" and "I'm going to revert your changes because I don't like what you did, even if I know that you do". > When such a > macro is added, this can be revisited and be made consistent. Perhaps you've forgotten that the macro was added. And deleted. By you. Juanma From dann@mothra.ics.uci.edu Wed Dec 10 07:43:49 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-Bayes: score:0.0000 Tokens: new, 7; hammy, 139; neutral, 51; spammy, 1. spammytokens:0.998-1--productive hammytokens:0.000-+--emacs, 0.000-+--H*i:message, 0.000-+--H*i:2008, 0.000-+--HX-Debbugs-No-Ack:yes, 0.000-+--H*MI:message X-Spam-Status: No, score=-8.6 required=4.0 tests=AWL,BAYES_00,FOURLA,GMAIL, HAS_BUG_NUMBER,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 10 Dec 2008 15:43:49 +0000 Received: from sallyv2.ics.uci.edu (sallyv2.ics.uci.edu [128.195.1.120]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBAFhlBC002219 for <1298@emacsbugs.donarmstrong.com>; Wed, 10 Dec 2008 07:43:48 -0800 Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id mBAFhQcZ012576; Wed, 10 Dec 2008 07:43:31 -0800 (PST) Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mBAFhPYM025684; Wed, 10 Dec 2008 07:43:25 -0800 (PST) Date: Wed, 10 Dec 2008 07:43:25 -0800 (PST) Message-Id: <200812101543.mBAFhPYM025684@mothra.ics.uci.edu> From: Dan Nicolaescu To: "Juanma Barranquero" Cc: 1298@debbugs.gnu.org, "Stefan Monnier" Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200812082020.mB8KKnf2018098@mothra.ics.uci.edu> <200812091858.mB9IwW8K022220@mothra.ics.uci.edu> <200812100758.mBA7wlR5024667@mothra.ics.uci.edu> <200812101503.mBAF3d2p025533@mothra.ics.uci.edu> <200812101529.mBAFTg06025653@mothra.ics.uci.edu> X-Debbugs-No-Ack: yes In-Reply-To: (Juanma Barranquero's message of "Wed, 10 Dec 2008 16:32:17 +0100") Lines: 26 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mBAFhQcZ012576 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu "Juanma Barranquero" writes: > On Wed, Dec 10, 2008 at 16:29, Dan Nicolaescu wrote: > > > That's a separate discussion that I am not interested in. > > There's quite a difference between "I'm not interested in discussing > this" and "I'm going to revert your changes because I don't like what > you did, even if I know that you do". Omitting quotes to modify the meaning is not very productive: The sequence is: 1. Dan> There's Dan> not such #define in the daemon implementation in src, 2. Juanma> But it is neeeded. What you just committed does *not* work on Windows. 3. Dan> That's a separate discussion that I am not interested in. Dan> When such a Dan> macro is added, this can be revisited and be made consistent. Can you please STOP this? From lekktu@gmail.com Wed Dec 10 07:55:33 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-Bayes: score:0.0000 Tokens: new, 18; hammy, 102; neutral, 30; spammy, 1. spammytokens:0.857-+--UD:com hammytokens:0.000-+--emacs, 0.000-+--H*f:sk:emacsbu, 0.000-+--HDKIM-Signature:sk:content, 0.000-+--H*MI:sk:emacsbu, 0.000-+--emacsclient X-Spam-Status: No, score=-6.1 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 10 Dec 2008 15:55:34 +0000 Received: from mail-ew0-f21.google.com (mail-ew0-f21.google.com [209.85.219.21]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBAFtUig006731 for <1298@emacsbugs.donarmstrong.com>; Wed, 10 Dec 2008 07:55:31 -0800 Received: by ewy14 with SMTP id 14so1115764ewy.1 for <1298@emacsbugs.donarmstrong.com>; Wed, 10 Dec 2008 07:55:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=qsZKwlwoqtPoUL4PIDrmrA4JK3ZM4uyfr9yVMkUJ/Wg=; b=veZwl8vs9P7rOdXoed+ms4uhZ/8prbXAu26v1mcZfxxK7c37B472ILjCmMSsGcnrUN 6TZ4NF40fkI8vjcL9BcVWAY8RFHj4HwScphr3CltIIbpnWzGx75l/NdwX6/N7OVtuCDE T8I3YErAIWBg80YeNeYmDqLWtYk39Q64I/2E4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=jzK1coWaRLeWR3Wygx35I7OdJ5aiOo96ZemW12kVL+Yq0gkc7YpB284wxJYXlTzkVs 1bYgRlxWkF1ZFoB2m1MhJXlmls2r3SRW2LVSwoW0W9mEbwO1IyvcwL2yU1lsqOHaJBrW Y34g6zohu3l5LGN01Q8t/kk/a55U4r65dvYVU= Received: by 10.210.61.11 with SMTP id j11mr1814377eba.104.1228924524556; Wed, 10 Dec 2008 07:55:24 -0800 (PST) Received: by 10.210.19.10 with HTTP; Wed, 10 Dec 2008 07:55:24 -0800 (PST) Message-ID: Date: Wed, 10 Dec 2008 16:55:24 +0100 From: "Juanma Barranquero" To: "Dan Nicolaescu" Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' Cc: 1298@debbugs.gnu.org, "Stefan Monnier" In-Reply-To: <200812101543.mBAFhPYM025684@mothra.ics.uci.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200812091858.mB9IwW8K022220@mothra.ics.uci.edu> <200812100758.mBA7wlR5024667@mothra.ics.uci.edu> <200812101503.mBAF3d2p025533@mothra.ics.uci.edu> <200812101529.mBAFTg06025653@mothra.ics.uci.edu> <200812101543.mBAFhPYM025684@mothra.ics.uci.edu> On Wed, Dec 10, 2008 at 16:43, Dan Nicolaescu wrote: > Omitting quotes to modify the meaning is not very productive: Then don't do it. Juanma From monnier@iro.umontreal.ca Thu Dec 11 08:37: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-Bayes: score:0.0000 Tokens: new, 14; hammy, 119; neutral, 49; spammy, 7. spammytokens:0.999-2--calm, 0.997-1--elses, 0.997-1--else's, 0.993-1--controversial, 0.963-+--concluded hammytokens:0.000-+--emacs, 0.000-+--H*M:fsf, 0.000-+--H*UA:Emacs, 0.000-+--H*u:Emacs, 0.000-+--H*UA:Gnus X-Spam-Status: No, score=-7.1 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 11 Dec 2008 16:37:21 +0000 Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBBGbIZU022824 for <1298@emacsbugs.donarmstrong.com>; Thu, 11 Dec 2008 08:37:20 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkcFAAPQQElFxIVh/2dsb2JhbACBbMwEgnmBLIJH X-IronPort-AV: E=Sophos;i="4.33,753,1220241600"; d="scan'208";a="30926919" Received: from 69-196-133-97.dsl.teksavvy.com (HELO pastel.home) ([69.196.133.97]) by ironport2-out.teksavvy.com with ESMTP; 11 Dec 2008 11:37:13 -0500 Received: by pastel.home (Postfix, from userid 20848) id 52E0586F6; Thu, 11 Dec 2008 11:37:13 -0500 (EST) From: Stefan Monnier To: Dan Nicolaescu Cc: Juanma Barranquero , 1298@debbugs.gnu.org Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' Message-ID: References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200812080754.mB87sXSV016391@mothra.ics.uci.edu> <200812081709.mB8H9T2m017554@mothra.ics.uci.edu> <200812082020.mB8KKnf2018098@mothra.ics.uci.edu> <200812091858.mB9IwW8K022220@mothra.ics.uci.edu> <200812100758.mBA7wlR5024667@mothra.ics.uci.edu> <200812101503.mBAF3d2p025533@mothra.ics.uci.edu> Date: Thu, 11 Dec 2008 11:37:13 -0500 In-Reply-To: <200812101503.mBAF3d2p025533@mothra.ics.uci.edu> (Dan Nicolaescu's message of "Wed, 10 Dec 2008 07:03:39 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > As you well know my taste is exactly not to add such #defines. There's > not such #define in the daemon implementation in src, the new macro in > undocumented, and your move was just designed as a provocation. Please, let's calm down. I generally agree that it's better to use "#ifdef " than "#ifdef " (tho it always depends on the specifics), so to a large extent I prefer Juanma's code in this case. But in any case, when it's a question of taste, the one who wrote the code (Juanma in this case, even if it touched the code you wrote) gets to choose. Only ever change someone else's code when it's uncontroversial, or only after a discussion here concluded it's better to change it. In this case, it's clearly controversial. Stefan From dann@mothra.ics.uci.edu Thu Dec 11 09:09:12 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-Bayes: score:0.0000 Tokens: new, 12; hammy, 134; neutral, 63; spammy, 5. spammytokens:0.951-+--concluded, 0.896-+--knew, 0.895-1--calm, 0.893-2--touched, 0.862-+--here hammytokens:0.000-+--emacs, 0.000-+--H*i:message, 0.000-+--H*i:2008, 0.000-+--stefan, 0.000-+--HX-Debbugs-No-Ack:yes X-Spam-Status: No, score=-9.1 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 11 Dec 2008 17:09:12 +0000 Received: from barrelv2.ics.uci.edu (barrelv2.ics.uci.edu [128.195.1.114]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBBH9As4001334 for <1298@emacsbugs.donarmstrong.com>; Thu, 11 Dec 2008 09:09:11 -0800 Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by barrelv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id mBBH8sxw025504; Thu, 11 Dec 2008 09:08:55 -0800 (PST) Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mBBH8seW000410; Thu, 11 Dec 2008 09:08:54 -0800 (PST) Date: Thu, 11 Dec 2008 09:08:54 -0800 (PST) Message-Id: <200812111708.mBBH8seW000410@mothra.ics.uci.edu> From: Dan Nicolaescu To: Stefan Monnier Cc: Juanma Barranquero , 1298@debbugs.gnu.org Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200812080754.mB87sXSV016391@mothra.ics.uci.edu> <200812081709.mB8H9T2m017554@mothra.ics.uci.edu> <200812082020.mB8KKnf2018098@mothra.ics.uci.edu> <200812091858.mB9IwW8K022220@mothra.ics.uci.edu> <200812100758.mBA7wlR5024667@mothra.ics.uci.edu> <200812101503.mBAF3d2p025533@mothra.ics.uci.edu> X-Debbugs-No-Ack: yes In-Reply-To: (Stefan Monnier's message of "Thu, 11 Dec 2008 11:37:13 -0500") Lines: 21 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mBBH8sxw025504 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu Stefan Monnier writes: > > As you well know my taste is exactly not to add such #defines. There's > > not such #define in the daemon implementation in src, the new macro in > > undocumented, and your move was just designed as a provocation. > > Please, let's calm down. > > I generally agree that it's better to use "#ifdef " than > "#ifdef " (tho it always depends on the specifics), so to > a large extent I prefer Juanma's code in this case. But in any case, > when it's a question of taste, the one who wrote the code (Juanma in > this case, even if it touched the code you wrote) gets to choose. > Only ever change someone else's code when it's uncontroversial, or only > after a discussion here concluded it's better to change it. In this > case, it's clearly controversial. I think you got it wrong here. I wrote the code, Juanma just sprinkled a few #ifdefs to simply disable it on windows, nothing else. He knew clearly well what my taste is. Given that I get to fix bugs in the code, I prefer for it to be done in the way I think it's right. From lekktu@gmail.com Thu Dec 11 11:05:16 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-Bayes: score:0.0000 Tokens: new, 21; hammy, 124; neutral, 53; spammy, 3. spammytokens:0.998-1--carelessly, 0.863-+--here, 0.861-+--UD:com hammytokens:0.000-+--emacs, 0.000-+--gnu, 0.000-+--GNU, 0.000-+--H*f:sk:emacsbu, 0.000-+--H*MI:sk:emacsbu X-Spam-Status: No, score=-6.1 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 11 Dec 2008 19:05:17 +0000 Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.244]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBBJ59a4008914 for <1298@emacsbugs.donarmstrong.com>; Thu, 11 Dec 2008 11:05:11 -0800 Received: by an-out-0708.google.com with SMTP id c38so542312ana.31 for <1298@emacsbugs.donarmstrong.com>; Thu, 11 Dec 2008 11:05:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=ugJsleTRe1N/5tIRYT14WcFrECMTPtevPG2iTDElKdI=; b=rH4pwu9qprhrbBnzbkRt/JrbjTGEtxAV5id+CkjmyR1uZJlPFHfLjePQsJ2Ntu7zbz dycVer5qlSykdEuRrjUGUNgwifW6pwO5AI3CHlOzLiv7hgN2+3PudBe2anmruQ99EMA1 XMRHtLDuHfXLep4mQJyvMD0/hY4S7Te3n/+vo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=ttXibMdFoUCuIGgwUcP0XUIPYe0UpQ0BtKRLCAfDxDNOztaiTTvXZt7DrdipR5s/g3 Et2MvvWoqhjJCuHJQfC7gSsFXnNDxYrrPggPDkHpVnj6SXbjGJ7yWkccWOUp/m3CmzpP UCtGFjXS/E8VSU4tMFOVgBbhisUKH9QD3ViKQ= Received: by 10.100.127.18 with SMTP id z18mr2299563anc.6.1229022309638; Thu, 11 Dec 2008 11:05:09 -0800 (PST) Received: by 10.100.13.13 with HTTP; Thu, 11 Dec 2008 11:05:09 -0800 (PST) Message-ID: Date: Thu, 11 Dec 2008 20:05:09 +0100 From: "Juanma Barranquero" To: "Dan Nicolaescu" Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' Cc: "Stefan Monnier" , 1298@debbugs.gnu.org In-Reply-To: <200812111708.mBBH8seW000410@mothra.ics.uci.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200812082020.mB8KKnf2018098@mothra.ics.uci.edu> <200812091858.mB9IwW8K022220@mothra.ics.uci.edu> <200812100758.mBA7wlR5024667@mothra.ics.uci.edu> <200812101503.mBAF3d2p025533@mothra.ics.uci.edu> <200812111708.mBBH8seW000410@mothra.ics.uci.edu> On Thu, Dec 11, 2008 at 18:08, Dan Nicolaescu wrote: > I think you got it wrong here. I wrote the code Really? All of emacsclient.c, or it's only the parts you touch that turn yours? > Juanma just sprinkled > a few #ifdefs to simply disable it on windows, nothing else. Your revisionism won't change the fact that I didn't "disable things on Windows", I made it work *twice* where you carelessly broke it (on Windows and, apparently, also on GNU/Linux). > Given that I get to fix bugs in the > code, I prefer for it to be done in the way I think it's right. That's the very reason why I did it my way: because I was fixing bugs. The ones you introduced. Juanma From monnier@iro.umontreal.ca Thu Dec 11 11:06:28 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-Bayes: score:0.0000 Tokens: new, 5; hammy, 112; neutral, 35; spammy, 3. spammytokens:0.945-+--his, 0.877-7--knew, 0.863-+--here hammytokens:0.000-+--emacs, 0.000-+--H*M:fsf, 0.000-+--H*UA:Emacs, 0.000-+--H*u:Emacs, 0.000-+--H*UA:Gnus X-Spam-Status: No, score=-7.6 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 11 Dec 2008 19:06:28 +0000 Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBBJ6PA5009890 for <1298@emacsbugs.donarmstrong.com>; Thu, 11 Dec 2008 11:06:27 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkcFAO/yQElLd+2g/2dsb2JhbACBbMxqgnmBLIJH X-IronPort-AV: E=Sophos;i="4.36,206,1228107600"; d="scan'208";a="30934269" Received: from 75-119-237-160.dsl.teksavvy.com (HELO pastel.home) ([75.119.237.160]) by ironport2-out.teksavvy.com with ESMTP; 11 Dec 2008 14:06:20 -0500 Received: by pastel.home (Postfix, from userid 20848) id 26E2D86F6; Thu, 11 Dec 2008 14:06:20 -0500 (EST) From: Stefan Monnier To: Dan Nicolaescu Cc: Juanma Barranquero , 1298@debbugs.gnu.org Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' Message-ID: References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200812080754.mB87sXSV016391@mothra.ics.uci.edu> <200812081709.mB8H9T2m017554@mothra.ics.uci.edu> <200812082020.mB8KKnf2018098@mothra.ics.uci.edu> <200812091858.mB9IwW8K022220@mothra.ics.uci.edu> <200812100758.mBA7wlR5024667@mothra.ics.uci.edu> <200812101503.mBAF3d2p025533@mothra.ics.uci.edu> <200812111708.mBBH8seW000410@mothra.ics.uci.edu> Date: Thu, 11 Dec 2008 14:06:20 -0500 In-Reply-To: <200812111708.mBBH8seW000410@mothra.ics.uci.edu> (Dan Nicolaescu's message of "Thu, 11 Dec 2008 09:08:54 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > I think you got it wrong here. I wrote the code, Juanma just sprinkled > a few #ifdefs to simply disable it on windows, nothing else. He knew > clearly well what my taste is. Given that I get to fix bugs in the > code, I prefer for it to be done in the way I think it's right. I know you disagree, but he wrote the ifdefs, so the ifdefs are his code. Stefan From lekktu@gmail.com Thu Dec 11 11:08: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-Bayes: score:0.0000 Tokens: new, 31; hammy, 111; neutral, 32; spammy, 2. spammytokens:0.945-+--his, 0.861-+--UD:com hammytokens:0.000-+--emacs, 0.000-+--stefan, 0.000-+--Stefan, 0.000-+--H*f:sk:emacsbu, 0.000-+--HTo:U*monnier X-Spam-Status: No, score=-6.1 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 11 Dec 2008 19:08:57 +0000 Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.247]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBBJ8swQ010068 for <1298@emacsbugs.donarmstrong.com>; Thu, 11 Dec 2008 11:08:55 -0800 Received: by an-out-0708.google.com with SMTP id c38so543373ana.31 for <1298@emacsbugs.donarmstrong.com>; Thu, 11 Dec 2008 11:08:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=yiNqyt+02DsH5jGnmHc+lbDFQrqCsGJsrt9DylAyaZA=; b=lLzH+/19rgJzY87CLJb18tSyOmHiwJ5AQdL9T6jZYbj9vi7gAYX4JWMfXiVmFvEM86 k9DB/zE/hH757vUtcs2bJD+lDx3jxqT8z9snBlg894ggObac7x4fXOJ/3Q3v3663/Vjm Rco1yfCDy6LIYifue7tffRLTbrHrMKFL8B3iM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=rxrS5aw1WL39zuiDCCA3PkP0whMHv+0493roHuoVLuluGRsDFFhHIVsapO9c8mr7UG GVxzt+fRf1o10zlb0euYjtXpSdqEs8QR1/6pzd1Ju/FUHiMvvDQo7phrn5InpmxlBO52 TW5pNgxXzyBc+fm/xRNrkopo8138g8O17Mkps= Received: by 10.100.111.11 with SMTP id j11mr2299149anc.15.1229022533753; Thu, 11 Dec 2008 11:08:53 -0800 (PST) Received: by 10.100.13.13 with HTTP; Thu, 11 Dec 2008 11:08:53 -0800 (PST) Message-ID: Date: Thu, 11 Dec 2008 20:08:53 +0100 From: "Juanma Barranquero" To: "Stefan Monnier" Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' Cc: "Dan Nicolaescu" , 1298@debbugs.gnu.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200812091858.mB9IwW8K022220@mothra.ics.uci.edu> <200812100758.mBA7wlR5024667@mothra.ics.uci.edu> <200812101503.mBAF3d2p025533@mothra.ics.uci.edu> <200812111708.mBBH8seW000410@mothra.ics.uci.edu> On Thu, Dec 11, 2008 at 20:06, Stefan Monnier wrote: > I know you disagree, but he wrote the ifdefs, so the ifdefs are > his code. OTOH, we could apply his reasoning to the TCP code in emacsclient.c (I wrote most of it, after all), so I get rights to change everything Dan makes in that code... Juanma From dann@mothra.ics.uci.edu Thu Dec 11 11:28:46 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-Bayes: score:0.0000 Tokens: new, 13; hammy, 118; neutral, 52; spammy, 9. spammytokens:0.999-1--dislike, 0.998-1--continuous, 0.987-1--tolerate, 0.987-1--badgering, 0.944-+--his hammytokens:0.000-+--emacs, 0.000-+--H*i:message, 0.000-+--H*i:2008, 0.000-+--stefan, 0.000-+--HX-Debbugs-No-Ack:yes X-Spam-Status: No, score=-9.1 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 11 Dec 2008 19:28:46 +0000 Received: from sallyv2.ics.uci.edu (sallyv2.ics.uci.edu [128.195.1.120]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBBJShgF016831 for <1298@emacsbugs.donarmstrong.com>; Thu, 11 Dec 2008 11:28:44 -0800 Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id mBBJSUip022590; Thu, 11 Dec 2008 11:28:30 -0800 (PST) Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mBBJSTJb000934; Thu, 11 Dec 2008 11:28:29 -0800 (PST) Date: Thu, 11 Dec 2008 11:28:29 -0800 (PST) Message-Id: <200812111928.mBBJSTJb000934@mothra.ics.uci.edu> From: Dan Nicolaescu To: Stefan Monnier Cc: Juanma Barranquero , 1298@debbugs.gnu.org Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200812080754.mB87sXSV016391@mothra.ics.uci.edu> <200812081709.mB8H9T2m017554@mothra.ics.uci.edu> <200812082020.mB8KKnf2018098@mothra.ics.uci.edu> <200812091858.mB9IwW8K022220@mothra.ics.uci.edu> <200812100758.mBA7wlR5024667@mothra.ics.uci.edu> <200812101503.mBAF3d2p025533@mothra.ics.uci.edu> <200812111708.mBBH8seW000410@mothra.ics.uci.edu> X-Debbugs-No-Ack: yes In-Reply-To: (Stefan Monnier's message of "Thu, 11 Dec 2008 14:06:20 -0500") Lines: 19 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mBBJSUip022590 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu Stefan Monnier writes: > > I think you got it wrong here. I wrote the code, Juanma just sprinkled > > a few #ifdefs to simply disable it on windows, nothing else. He knew > > clearly well what my taste is. Given that I get to fix bugs in the > > code, I prefer for it to be done in the way I think it's right. > > I know you disagree, but he wrote the ifdefs, so the ifdefs are > his code. By that reasoning, should anyone feel free to change your code in a way we know you dislike and that would be fine? And you'd just let that stand? I don't think so. I would have done the changes to disable the code on windows, but Juanma was just quicker (so thanks, but no thanks) and intentionally chose to be confrontational, as seen from all his extremely aggressive followup emails and continuous misinterpretation and badgering. I don't like to tolerate bullies like that. From lekktu@gmail.com Thu Dec 11 11:58:33 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-Bayes: score:0.0000 Tokens: new, 18; hammy, 109; neutral, 39; spammy, 5. spammytokens:0.997-1--pot, 0.993-1--kettle, 0.944-+--his, 0.902-5--chose, 0.861-+--UD:com hammytokens:0.000-+--emacs, 0.000-+--H*f:sk:emacsbu, 0.000-+--H*MI:sk:emacsbu, 0.000-+--emacsclient, 0.000-+--daemon X-Spam-Status: No, score=-6.5 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 11 Dec 2008 19:58:33 +0000 Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBBJwUrx026944 for <1298@emacsbugs.donarmstrong.com>; Thu, 11 Dec 2008 11:58:32 -0800 Received: by yw-out-2324.google.com with SMTP id 3so550732ywj.31 for <1298@emacsbugs.donarmstrong.com>; Thu, 11 Dec 2008 11:58:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=qmc8MqSCNNYdg2VmNvIlqVhHmTrJXkLitY67a3xCE+w=; b=eJYskf3lWuJUPVDn07vC7l6bBUgugh14LQg1ncg5leCFF+P5PMEGZ5wp5w9AtqHeiz ruUd0gNpDk0sRyXgn5bOs/SCqfe/WV0rn8S58cvluCj/B/ne3vvv1O3eUqOVaEPFIQCd iA7o5ZlkrQEYUuMoLVnDmodnNAio4ry9x4CqM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=NLfsHIRTRgdfk0fAJJQq765BGu+YTAoaUA0lJYGLGpL69tWtaVC4dO6EGg9N1UUsJK OdUBMXI1PyiysMU2Lsk8luELS1FeM9aZDypP7iswRkVA7rEbkjQgFj0/wGy0zvHaEJiY bClW8l5PLvTRZY8SKzhZvsO3jvNsCwEFPoO9Y= Received: by 10.100.153.6 with SMTP id a6mr2337474ane.76.1229025510418; Thu, 11 Dec 2008 11:58:30 -0800 (PST) Received: by 10.100.13.13 with HTTP; Thu, 11 Dec 2008 11:58:30 -0800 (PST) Message-ID: Date: Thu, 11 Dec 2008 20:58:30 +0100 From: "Juanma Barranquero" To: "Dan Nicolaescu" Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' Cc: "Stefan Monnier" , 1298@debbugs.gnu.org In-Reply-To: <200812111928.mBBJSTJb000934@mothra.ics.uci.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200812091858.mB9IwW8K022220@mothra.ics.uci.edu> <200812100758.mBA7wlR5024667@mothra.ics.uci.edu> <200812101503.mBAF3d2p025533@mothra.ics.uci.edu> <200812111708.mBBH8seW000410@mothra.ics.uci.edu> <200812111928.mBBJSTJb000934@mothra.ics.uci.edu> On Thu, Dec 11, 2008 at 20:28, Dan Nicolaescu wrote: > intentionally chose to > be confrontational Yes, of course. I usually say "please" when I try to be confrontational. > as seen from all his extremely aggressive followup > emails and continuous misinterpretation and badgering. I don't like to > tolerate bullies like that. The pot, calling the kettle black.. Juanma From dann@mothra.ics.uci.edu Thu Dec 11 12:40:05 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-Bayes: score:0.0000 Tokens: new, 7; hammy, 119; neutral, 59; spammy, 6. spammytokens:0.998-1--barrel, 0.984-+--approved, 0.939-+--themselves, 0.903-+--interest, 0.887-3--chose hammytokens:0.000-+--emacs, 0.000-+--H*i:message, 0.000-+--H*i:2008, 0.000-+--HX-Debbugs-No-Ack:yes, 0.000-+--H*MI:message X-Spam-Status: No, score=-8.6 required=4.0 tests=AWL,BAYES_00,GMAIL, HAS_BUG_NUMBER,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 11 Dec 2008 20:40:06 +0000 Received: from barrelv2.ics.uci.edu (barrelv2.ics.uci.edu [128.195.1.114]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBBKe3xX008717 for <1298@emacsbugs.donarmstrong.com>; Thu, 11 Dec 2008 12:40:04 -0800 Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by barrelv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id mBBKdjKi007799; Thu, 11 Dec 2008 12:39:49 -0800 (PST) Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mBBKdj8n001193; Thu, 11 Dec 2008 12:39:45 -0800 (PST) Date: Thu, 11 Dec 2008 12:39:45 -0800 (PST) Message-Id: <200812112039.mBBKdj8n001193@mothra.ics.uci.edu> From: Dan Nicolaescu To: Juanma Barranquero Cc: 1298@debbugs.gnu.org Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200812091858.mB9IwW8K022220@mothra.ics.uci.edu> <200812100758.mBA7wlR5024667@mothra.ics.uci.edu> <200812101503.mBAF3d2p025533@mothra.ics.uci.edu> <200812111708.mBBH8seW000410@mothra.ics.uci.edu> <200812111928.mBBJSTJb000934@mothra.ics.uci.edu> X-Debbugs-No-Ack: yes In-Reply-To: (Juanma Barranquero's message of "Thu, 11 Dec 2008 20:58:30 +0100") Lines: 19 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mBBKdjKi007799 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu "Juanma Barranquero" writes: > On Thu, Dec 11, 2008 at 20:28, Dan Nicolaescu wrote: > > > intentionally chose to > > be confrontational > > Yes, of course. I usually say "please" when I try to be confrontational. Your actions speak by themselves: you had no contribution to that code, no contribution to thinking about the problem, how to solve it, discussing it, coding, getting it approved. You also have no interest in improving the code, just getting it out of the way. You knew exactly what my opinion was on adding extra #defines, but despite all the above, you chose ignore that opinion, not even ask, and barrel through and do it that way you wanted. That's confrontational, and you've been that way in ALL your followup messages. From lekktu@gmail.com Thu Dec 11 12:48: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-Bayes: score:0.0000 Tokens: new, 22; hammy, 105; neutral, 53; spammy, 4. spammytokens:0.976-+--approved, 0.933-+--themselves, 0.897-9--interest, 0.861-+--UD:com hammytokens:0.000-+--emacs, 0.000-+--H*f:sk:emacsbu, 0.000-+--H*MI:sk:emacsbu, 0.000-+--emacsclient, 0.000-+--daemon X-Spam-Status: No, score=-6.1 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 11 Dec 2008 20:48:21 +0000 Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.249]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBBKmIuT012037 for <1298@emacsbugs.donarmstrong.com>; Thu, 11 Dec 2008 12:48:19 -0800 Received: by an-out-0708.google.com with SMTP id c38so568625ana.31 for <1298@emacsbugs.donarmstrong.com>; Thu, 11 Dec 2008 12:48:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=+Xh9g5efToSUz90xOeHqDyBf2cGGsyXuUYN7bBaLPQ0=; b=iP9ntLz2JiYqn9UMVDWuK0kIWx1H0s2AJtphXbfEzGFgfgUVwu3YBo5uldWohRx3ws PvSDbfkQQ+43x9g3uK9oTVWQfM2QoT2zdFJwdoB8vNFkamtjT6/qL7ZqLfq2swqi2++m 7ANeILptcw5fIsBvRCLeTLCz/iWxHoiFIQLs8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=efcsOThphAzCSdpvVkNGmLr3pVU6oTfpe9YJVTuVlDpnlD4Gveaca8+wy7rXa6JQ/P X5CM+QsI0bA/Jh3CGNxNJuFoNVlKyS75u3yLnY/osSFMkTwle4MIJv8JXp3zTze0VpKQ A1FDzvkRhq7P7lfEU6IagZMIPwpw15Hzacra0= Received: by 10.101.69.6 with SMTP id w6mr2369708ank.138.1229028497951; Thu, 11 Dec 2008 12:48:17 -0800 (PST) Received: by 10.100.13.13 with HTTP; Thu, 11 Dec 2008 12:48:17 -0800 (PST) Message-ID: Date: Thu, 11 Dec 2008 21:48:17 +0100 From: "Juanma Barranquero" To: "Dan Nicolaescu" Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' Cc: 1298@debbugs.gnu.org In-Reply-To: <200812112039.mBBKdj8n001193@mothra.ics.uci.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200812100758.mBA7wlR5024667@mothra.ics.uci.edu> <200812101503.mBAF3d2p025533@mothra.ics.uci.edu> <200812111708.mBBH8seW000410@mothra.ics.uci.edu> <200812111928.mBBJSTJb000934@mothra.ics.uci.edu> <200812112039.mBBKdj8n001193@mothra.ics.uci.edu> On Thu, Dec 11, 2008 at 21:39, Dan Nicolaescu wrote: > Your actions speak by themselves: you had no contribution to that code, > no contribution to thinking about the problem, how to solve it, > discussing it, coding, getting it approved. Things that you're obviously doing a lot. > You also have no interest in improving the code, just getting it out of > the way. I moved code out of the way. Your "fix" to my fix was, in both cases, leaving the same code "out of the way". In one case you changed the define, and in the other you removed the code I had #ifdef'd out. So I was not that misguided, it seems. > That's confrontational, and you've been that way in ALL your followup > messages. Kettle, pot, black again. Juanma From monnier@iro.umontreal.ca Thu Dec 11 12:59:01 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-Bayes: score:0.0000 Tokens: new, 9; hammy, 143; neutral, 57; spammy, 4. spammytokens:0.943-+--his, 0.872-2--chose, 0.863-+--here, 0.863-4--knew hammytokens:0.000-+--emacs, 0.000-+--H*M:fsf, 0.000-+--H*UA:Emacs, 0.000-+--H*u:Emacs, 0.000-+--H*UA:Gnus X-Spam-Status: No, score=-6.0 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298) by emacsbugs.donarmstrong.com; 11 Dec 2008 20:59:01 +0000 Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBBKww3K015425 for <1298@emacsbugs.donarmstrong.com>; Thu, 11 Dec 2008 12:58:59 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkcFAB8OQUlMConz/2dsb2JhbACBbM0EgnmBLIJH X-IronPort-AV: E=Sophos;i="4.36,206,1228107600"; d="scan'208";a="30940958" Received: from 76-10-137-243.dsl.teksavvy.com (HELO pastel.home) ([76.10.137.243]) by ironport2-out.teksavvy.com with ESMTP; 11 Dec 2008 15:58:52 -0500 Received: by pastel.home (Postfix, from userid 20848) id 474CD86F6; Thu, 11 Dec 2008 15:58:52 -0500 (EST) From: Stefan Monnier To: Dan Nicolaescu Cc: Juanma Barranquero , 1298@debbugs.gnu.org Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' Message-ID: References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200812080754.mB87sXSV016391@mothra.ics.uci.edu> <200812081709.mB8H9T2m017554@mothra.ics.uci.edu> <200812082020.mB8KKnf2018098@mothra.ics.uci.edu> <200812091858.mB9IwW8K022220@mothra.ics.uci.edu> <200812100758.mBA7wlR5024667@mothra.ics.uci.edu> <200812101503.mBAF3d2p025533@mothra.ics.uci.edu> <200812111708.mBBH8seW000410@mothra.ics.uci.edu> <200812111928.mBBJSTJb000934@mothra.ics.uci.edu> Date: Thu, 11 Dec 2008 15:58:52 -0500 In-Reply-To: <200812111928.mBBJSTJb000934@mothra.ics.uci.edu> (Dan Nicolaescu's message of "Thu, 11 Dec 2008 11:28:29 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii This discussion is pointless and hence over. Stefan >>>>> "Dan" == Dan Nicolaescu writes: > Stefan Monnier writes: >> > I think you got it wrong here. I wrote the code, Juanma just sprinkled >> > a few #ifdefs to simply disable it on windows, nothing else. He knew >> > clearly well what my taste is. Given that I get to fix bugs in the >> > code, I prefer for it to be done in the way I think it's right. >> >> I know you disagree, but he wrote the ifdefs, so the ifdefs are >> his code. > By that reasoning, should anyone feel free to change your code in a way > we know you dislike and that would be fine? And you'd just let that > stand? I don't think so. > I would have done the changes to disable the code on windows, but Juanma > was just quicker (so thanks, but no thanks) and intentionally chose to > be confrontational, as seen from all his extremely aggressive followup > emails and continuous misinterpretation and badgering. I don't like to > tolerate bullies like that. From dann@mothra.ics.uci.edu Thu Dec 11 13:23:34 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-Bayes: score:0.0000 Tokens: new, 10; hammy, 75; neutral, 26; spammy, 0. spammytokens: hammytokens:0.000-+--emacs, 0.000-+--H*i:message, 0.000-+--H*i:2008, 0.000-+--HX-Debbugs-No-Ack:yes, 0.000-+--H*MI:message X-Spam-Status: No, score=-9.1 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1298-done) by emacsbugs.donarmstrong.com; 11 Dec 2008 21:23:34 +0000 Received: from sallyv2.ics.uci.edu (sallyv2.ics.uci.edu [128.195.1.120]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBBLNVML024308 for <1298-done@emacsbugs.donarmstrong.com>; Thu, 11 Dec 2008 13:23:32 -0800 Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id mBBLNGJe022796 for <1298-done@emacsbugs.donarmstrong.com>; Thu, 11 Dec 2008 13:23:21 -0800 (PST) Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mBBLNGpI001493; Thu, 11 Dec 2008 13:23:16 -0800 (PST) Date: Thu, 11 Dec 2008 13:23:16 -0800 (PST) Message-Id: <200812112123.mBBLNGpI001493@mothra.ics.uci.edu> From: Dan Nicolaescu To: 1298-done@debbugs.gnu.org Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' References: <200811021818.mA2IIFMq028772@mothra.ics.uci.edu> <200812080754.mB87sXSV016391@mothra.ics.uci.edu> <200812081709.mB8H9T2m017554@mothra.ics.uci.edu> <200812082020.mB8KKnf2018098@mothra.ics.uci.edu> <200812091858.mB9IwW8K022220@mothra.ics.uci.edu> <200812100758.mBA7wlR5024667@mothra.ics.uci.edu> <200812101503.mBAF3d2p025533@mothra.ics.uci.edu> <200812111708.mBBH8seW000410@mothra.ics.uci.edu> X-Debbugs-No-Ack: yes In-Reply-To: <200812111708.mBBH8seW000410@mothra.ics.uci.edu> (Dan Nicolaescu's message of "Thu, 11 Dec 2008 09:08:54 -0800 (PST)") Lines: 1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mBBLNGJe022796 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu Fixed. From unknown Mon Jun 23 09:36:36 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Fri, 09 Jan 2009 15:24:04 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator