From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' Date: Mon, 8 Dec 2008 12:20:49 -0800 (PST) Message-ID: <200812082020.mB8KKnf2018098@mothra.ics.uci.edu> 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> Reply-To: Dan Nicolaescu , 1298@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1228769431 449 80.91.229.12 (8 Dec 2008 20:50:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Dec 2008 20:50:31 +0000 (UTC) Cc: 1298@emacsbugs.donarmstrong.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 08 21:51:34 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L9n4o-0006Q5-B1 for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Dec 2008 21:51:34 +0100 Original-Received: from localhost ([127.0.0.1]:43565 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9n3d-0000m7-Aa for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Dec 2008 15:50:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L9n3a-0000lw-BH for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2008 15:50:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L9n3Z-0000lb-N9 for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2008 15:50:18 -0500 Original-Received: from [199.232.76.173] (port=48820 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9n3Z-0000lX-JZ for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2008 15:50:17 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:50667) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L9n3Y-00058H-W3 for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2008 15:50:17 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB8KoElA020846; Mon, 8 Dec 2008 12:50:14 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mB8KZ3lr015809; Mon, 8 Dec 2008 12:35:03 -0800 X-Loop: don@donarmstrong.com Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 08 Dec 2008 20:35:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1298 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1298-submit@emacsbugs.donarmstrong.com id=B1298.122876812214279 (code B ref 1298); Mon, 08 Dec 2008 20:35:03 +0000 Original-Received: (at 1298) by emacsbugs.donarmstrong.com; 8 Dec 2008 20:28:42 +0000 Original-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 Original-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) Original-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) In-Reply-To: (Stefan Monnier's message of "Mon, 08 Dec 2008 15:07:16 -0500") Original-Lines: 31 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 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 08 Dec 2008 15:50:18 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:23057 Archived-At: 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