From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.help Subject: Re: Starting emacs in ediff mode. Date: Mon, 28 Jan 2008 17:43:33 +0100 Message-ID: References: <7b79188f-cb09-46ae-b88c-65b611b39ae1@d4g2000prg.googlegroups.com> <4799F858.5070701@gmail.com> <603eirF1p2ag4U1@mid.uni-berlin.de> <87ir1evt30.fsf@newsguy.com> <874pcxewlm.fsf@thievol.homelinux.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1201538652 8557 80.91.229.12 (28 Jan 2008 16:44:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Jan 2008 16:44:12 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, reader@newsguy.com To: "Thierry Volpiatto" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 28 17:44:31 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 1JJX5w-0002Jj-0S for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Jan 2008 17:44:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJX5V-0007PB-Hc for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Jan 2008 11:44:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JJX59-0007MJ-Eo for help-gnu-emacs@gnu.org; Mon, 28 Jan 2008 11:43:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JJX57-0007LZ-Np for help-gnu-emacs@gnu.org; Mon, 28 Jan 2008 11:43:38 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJX57-0007LS-CB for help-gnu-emacs@gnu.org; Mon, 28 Jan 2008 11:43:37 -0500 Original-Received: from wx-out-0506.google.com ([66.249.82.227]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JJX57-0003m7-9C for help-gnu-emacs@gnu.org; Mon, 28 Jan 2008 11:43:37 -0500 Original-Received: by wx-out-0506.google.com with SMTP id s7so1216700wxc.24 for ; Mon, 28 Jan 2008 08:43:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=oqX6jLpUzNV8QUp1tlDkJRJVmZpiide+4kiennYKCTw=; b=nKXe8sVdNgqYzPor4zTsUVgocgvlFUAEfkU4lEOCncb1lcKIASBNuHrUu7gz+Q88eiIpcMnGgcfcbDnwiITRvRbT6CrlXYY8U6kg69rKkWJlSl8/E1NFDQM8pkYP5AVHFDvHGX63BdTBHh1iPcw7H6wLRR+yw8zuJ9quEVTt1dg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cwIzWV4KbfiadiPcvp4CRzmV3kn8vmHvj24yU57wdWtjsBR3uhuUujpkFJjbwUKfokFLof47WilyFHZr6lrvOOjHMLaqDpGHRz346WaY/PuI+aAL+Vftb4maTS+SXllnPwuH6XKpJGI+ih2ONsV8WaUPK/FxFMIu/hlHSe2/SVE= Original-Received: by 10.115.60.1 with SMTP id n1mr6586206wak.37.1201538614110; Mon, 28 Jan 2008 08:43:34 -0800 (PST) Original-Received: by 10.115.72.13 with HTTP; Mon, 28 Jan 2008 08:43:33 -0800 (PST) In-Reply-To: <874pcxewlm.fsf@thievol.homelinux.org> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:51026 Archived-At: On Jan 28, 2008 5:36 PM, Thierry Volpiatto wrote: > reader@newsguy.com writes: > What they want to do (i think): > when you start emacsclient, if no emacs session is found, start an emacs > session with the server corresponding to the emacsclient you have > already started (ouf!). That's it. What the stock Emacs' emacsclient does today: - Try to connect with the Emacs server. - If it can connect, great, that's all folks. - If it cannot, and there's an alternate editor, start that editor (it could be Emacs), passing it the file arguments, etc. - Otherwise fail. What would be nice (and Lennart's EmacsW32 emacsclient more or less does, I think): - Try to connect with the Emacs server - If it can connect, great, that's all folks - If it cannot, start Emacs and wait until Emacs starts the server - Retry connecting with Emacs - If it can connect, great. - If not, start an alternate editor if defined (passing the file args, etc.) - Otherwise fail The difference is that, in the first case, emacsclient starts the alternate Emacs and then finishes. It does not maintain a connection with Emacs or waits until the user signals (from inside Emacs) that he's done with the buffer/file. That is not good when the one calling emacsclient was not the user, but a process that starts emacsclient to get a user-edited file (for example, a commit log) and considers that emacsclient finishing means that the user-edited file is ready to be used. Juanma