From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: emacsclientw Date: Tue, 14 Nov 2006 00:10:51 +0100 Message-ID: References: <455859DA.5010402@gnu.org> <45587D1A.9070500@student.lu.se> <4558F7BF.8020806@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1163459479 8594 80.91.229.2 (13 Nov 2006 23:11:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 13 Nov 2006 23:11:19 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 14 00:11:16 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GjkxG-0001j5-4i for ged-emacs-devel@m.gmane.org; Tue, 14 Nov 2006 00:11:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GjkxF-0007P3-I4 for ged-emacs-devel@m.gmane.org; Mon, 13 Nov 2006 18:11:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gjkx3-0007Nb-1y for emacs-devel@gnu.org; Mon, 13 Nov 2006 18:10:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gjkx2-0007Mz-Iu for emacs-devel@gnu.org; Mon, 13 Nov 2006 18:10:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gjkx2-0007Mn-5E for emacs-devel@gnu.org; Mon, 13 Nov 2006 18:10:52 -0500 Original-Received: from [64.233.166.180] (helo=py-out-1112.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gjkx1-0007zy-UE for emacs-devel@gnu.org; Mon, 13 Nov 2006 18:10:52 -0500 Original-Received: by py-out-1112.google.com with SMTP id p76so823973pyb for ; Mon, 13 Nov 2006 15:10:51 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YtAiEosNA99FEUCHdHY1kNiXIxfM6tum0CSXa4PxMCSGhiGgAoQcSpNfr+Vqn9Lvyvn/qmK2Wt12aO57U/eLWOcb4DxLh7jhYiruCzsdIykYCiVSKdvXf9dRJbde9vhQmY9ojx1hbbAQpca0XJOKZWEFDrnaNutNJPmyjytwNEY= Original-Received: by 10.35.66.1 with SMTP id t1mr280391pyk.1163459451220; Mon, 13 Nov 2006 15:10:51 -0800 (PST) Original-Received: by 10.35.95.18 with HTTP; Mon, 13 Nov 2006 15:10:51 -0800 (PST) Original-To: "Lennart Borgman" In-Reply-To: <4558F7BF.8020806@student.lu.se> Content-Disposition: inline X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:62261 Archived-At: On 11/13/06, Lennart Borgman wrote: > Though I am unsure > about some details ... - if setup of a network socket fails, is it then > ok to try again later? I mean I assume that the socket setup failed > because there was no emacs server running. Can those cases be recognized? That's one of the reasons I don't like this. emacsclient is based upon the idea that you try to connect to Emacs, and if you can't, you just run the alternate editor. Now, you're going to be forced to distinguish between running the alternate editor, and running Emacs, because they should be treated in two very different ways, and have all sort of configuration options for the case that you run Emacs. Unless you're thinking of getting rid of --alternate-editor, which wouldn't be a good idea. It would be far easier, I think, to have a second program (let's call it launchemacs) that does: 1) Run Emacs and wait until Emacs is running the server. The program should have options to start Emacs the way the user wants (either a config file, command line options, environmente variables, whatever) 2) Once the seerver is running, execvp emacsclient(w?).exe with the original arguments passed to launchemacs. The trick is that then you can do emacsclient --alternate-editor=launchemacs myfile.txt and you don't have to modify emacsclient *at all*. /L/e/k/t/u