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: Pretest Date: Sun, 19 Nov 2006 15:42:31 +0100 Message-ID: References: <87slggjtbb.fsf@furball.mit.edu> <455F9024.8080000@student.lu.se> <17759.43936.82301.353794@kahikatea.snap.net.nz> <85irhbg6zx.fsf@lola.goethe.zz> <17760.11257.78362.216206@kahikatea.snap.net.nz> <85wt5reo3b.fsf@lola.goethe.zz> <17760.17309.553008.718144@kahikatea.snap.net.nz> <85slgfcy5v.fsf@lola.goethe.zz> 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 1163947414 3276 80.91.229.2 (19 Nov 2006 14:43:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 19 Nov 2006 14:43:34 +0000 (UTC) Cc: Nick Roberts , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 19 15:43:33 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 1GlntH-0007sB-PH for ged-emacs-devel@m.gmane.org; Sun, 19 Nov 2006 15:43:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GlntH-0004ge-3v for ged-emacs-devel@m.gmane.org; Sun, 19 Nov 2006 09:43:27 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Glnsx-0004fb-N7 for emacs-devel@gnu.org; Sun, 19 Nov 2006 09:43:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Glnsv-0004eC-FW for emacs-devel@gnu.org; Sun, 19 Nov 2006 09:43:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Glnsv-0004du-35 for emacs-devel@gnu.org; Sun, 19 Nov 2006 09:43:05 -0500 Original-Received: from [64.233.166.177] (helo=py-out-1112.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Glnsu-0007gR-S4 for emacs-devel@gnu.org; Sun, 19 Nov 2006 09:43:05 -0500 Original-Received: by py-out-1112.google.com with SMTP id p76so782991pyb for ; Sun, 19 Nov 2006 06:43:04 -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=i+AZW7zaxDBRXD4A61G8CpNtBU7KZikJeAOZEJtg2rEcBWabqa4Zx9iVbMxwo0J4HPeVmXXsW3lkzJCb4b27pfqxzSQTZKMrJQEzHzz55VIGQ8vEFoWj4iRMaHLdQI+iEBakaQ2F+kMpdb8+Sv4k0YekzKAaf/SQfUSB7wrKJDE= Original-Received: by 10.35.93.1 with SMTP id v1mr6464458pyl.1163947352167; Sun, 19 Nov 2006 06:42:32 -0800 (PST) Original-Received: by 10.35.95.18 with HTTP; Sun, 19 Nov 2006 06:42:31 -0800 (PST) Original-To: "David Kastrup" In-Reply-To: <85slgfcy5v.fsf@lola.goethe.zz> 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:62471 Archived-At: On 11/19/06, David Kastrup wrote: > Could anybody summarize what is missing in order to make > > emacsclient --alternate-editor "emacs --eval '(server-start)'" > > work for this purpose? If you do emacsclient -a "emacs --eval '(server-start)'" my-file.txt and Emacs is running, Emacs will edit my-file.txt and emacsclient will wait. If Emacs is not running, emacsclient will start Emacs (with the server active) and pass it my-file.txt, but emacsclient won't have a connection with Emacs so it won't wait for Emacs to finish. emacsclient does not know (it never knew) how to start Emacs, then wait for a while, then retry connection with it (which gnuclient/gnuserv does, for example). That is relevant if you're using emacsclient from a shortcut, or from inside a program (for example, if you've set SVN_EDITOR to use Emacs to edit Subversion commit logs, as I do). There are a few related issues (quoting on the command line on Windows, passing the server-name and server-file to Emacs if started by emacsclient, not starting Emacs if the connection is not local, etc.), but they're minor. As it stands now, emacsclient is no less functional that it was before the TCP changes. The behavior Lennart's trying to fix would happen before. It is new (and very useful) functionality. /L/e/k/t/u