From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Pretest Date: Sun, 19 Nov 2006 15:45:53 +0100 Message-ID: <45606E21.9030000@student.lu.se> 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=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1163949570 9724 80.91.229.2 (19 Nov 2006 15:19:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 19 Nov 2006 15:19:30 +0000 (UTC) Cc: Juanma Barranquero , Nick Roberts , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 19 16:19:27 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 1GloRx-00052O-Ht for ged-emacs-devel@m.gmane.org; Sun, 19 Nov 2006 16:19:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GloRw-0007dS-Sl for ged-emacs-devel@m.gmane.org; Sun, 19 Nov 2006 10:19:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GloRC-0007Gz-DG for emacs-devel@gnu.org; Sun, 19 Nov 2006 10:18:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GloRB-0007GX-Iq for emacs-devel@gnu.org; Sun, 19 Nov 2006 10:18:30 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GloRB-0007GS-EP for emacs-devel@gnu.org; Sun, 19 Nov 2006 10:18:29 -0500 Original-Received: from [80.76.149.213] (helo=ch-smtp02.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Glnw1-0008PL-HR; Sun, 19 Nov 2006 09:46:18 -0500 Original-Received: from [83.254.145.24] (port=61283 helo=[192.168.123.121]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1Glnvz-0000EK-7G; Sun, 19 Nov 2006 15:46:15 +0100 User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) Original-To: David Kastrup In-Reply-To: <85slgfcy5v.fsf@lola.goethe.zz> X-Scan-Result: No virus found in message 1Glnvz-0000EK-7G. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1Glnvz-0000EK-7G 771ccd7f91c0602dbefd2f8e2bd09a25 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:62472 Archived-At: David Kastrup wrote: > "Juanma Barranquero" writes: > >> On 11/19/06, Nick Roberts wrote: >> >>> I'm not telling people what to do, or demanding anything. I'm just >>> saying that I don't it is appropriate to delay things for further >>> improvements to emacsclient on Windows. If you're going to sum up, >>> at least do it accurately. >> Lennart is *proposing* changes that would allow emacsclient to >> automatically start Emacs if it is not running already. > > Could anybody summarize what is missing in order to make > > emacsclient --alternate-editor "emacs --eval '(server-start)'" > > work for this purpose? That seems simple enough, but I could be > likely missing some part of the picture. Perhaps I could answer ;-) What is missing is something that allows you to just use emacsclient -n myfile without doing any setup whatever, without having to start Emacs before. It should in my opinion work right out of the box. The reason? The threshold is already high to start to use Emacs. For new users it is very important to be able to start immediately right after installing Emacs. Otherwise a lot of potential user might never start using Emacs. The possibility to do something like the line you propose should still be there, but with my patch you should be able to just use emacsclient --alternative-editor="whateveryoulike" myfile instead. I have previously added similar functionality to gnuclient on w32. I have waited for a working emacsclient on w32 so that I could try to implement that feature there instead in a platform independent manner. I have done that now - I believe. The code is working on w32 and most of it is the same on other platforms. Starting a new process is however platform dependent. I think there are three different platform dependent ways: - fork() - CreateProcess() on w32 - system() -- needs a helper program to avoid wait To be clear the code is there for all three ways (but it is not yet submitted to the CVS). For those that does not want to use the new functionality to start Emacs automatically everything will work as before. When I started to distribute binaries for Emacs on w32 Richard expressed that he wanted the official release of Emacs to have all functionality it included working on GNU/Linux. My proposal above is not exactly in line with that, but rather close. On w32 this functionality actually have been available for quite some time now.