From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.help Subject: Re: Starting emacs in ediff mode. Date: Sun, 27 Jan 2008 16:13:33 +0100 Message-ID: <479C9F9D.1070106@gmail.com> References: <7b79188f-cb09-46ae-b88c-65b611b39ae1@d4g2000prg.googlegroups.com> <4798C1BD.3030600@gmail.com> <4799F858.5070701@gmail.com> <603eirF1p2ag4U1@mid.uni-berlin.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1201446869 27785 80.91.229.12 (27 Jan 2008 15:14:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Jan 2008 15:14:29 +0000 (UTC) Cc: Richard G Riley , help-gnu-emacs@gnu.org To: Juanma Barranquero Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 27 16:14:49 2008 Return-path: Envelope-to: geh-help-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 1JJ9Db-0001IK-JA for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Jan 2008 16:14:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJ9DA-0007Bf-Sd for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Jan 2008 10:14:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JJ9CY-000743-R5 for help-gnu-emacs@gnu.org; Sun, 27 Jan 2008 10:13:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JJ9CY-00073h-45 for help-gnu-emacs@gnu.org; Sun, 27 Jan 2008 10:13:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJ9CX-00073b-J8 for help-gnu-emacs@gnu.org; Sun, 27 Jan 2008 10:13:41 -0500 Original-Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JJ9CW-0001dl-VZ for help-gnu-emacs@gnu.org; Sun, 27 Jan 2008 10:13:41 -0500 Original-Received: from c83-254-148-228.bredband.comhem.se ([83.254.148.228]:62347 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1JJ9CV-0001c2-6e; Sun, 27 Jan 2008 16:13:39 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: X-Antivirus: avast! (VPS 080127-1, 2008-01-27), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.148.228 X-Scan-Result: No virus found in message 1JJ9CV-0001c2-6e. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1JJ9CV-0001c2-6e 4caad9a7044c7119c934ee19a7912cb9 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:51013 Archived-At: Juanma Barranquero wrote: > On Jan 27, 2008 2:17 PM, Richard G Riley wrote: > >> Personally I must admit to being surprised that emacsclient doesn't >> invoke emacs if there is not an existing emacs running - that one >> ommission makes it tricky to set up emacsclient as default viewer/editor >> in many cases. > > Of course you can run emacsclient so it will start Emacs if it is not > running; that's what the --alternate-editor option is for. The trick, > of course, is that --alternate-editor doesn't run Emacs as a server > connected to the emacsclient instance that started it. That does not > preclude using it as default viewer/editor in all cases, just the ones > where it is automatically run from a tool that expects it to be done > when emacsclient returns (for example, in many VCS when emacsclient is > used as the editor for the commit logs). > >> I've read reasonings as to why it doesn't launch emacs if >> not already done, but, well, it just seems quite wrong > > I haven't read (in the emacs-devel list) reasonings as to why it > *shouldn't* do it, just as to why it is not yet implemented. Juanma, it might be time to start looking at it again, or? As you know I have code for this. I have tried to break the "start-emacs-automatically" part from the gui part now. I would be glad to get your help to get this into Emacs. Even if another implementation for it is choosen later that will not be very hard to change (if we structure the code so that it can easily be changed later). What do you say, Juanma?