From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: Starting emacs in ediff mode. Date: Mon, 28 Jan 2008 17:36:05 +0100 Message-ID: <874pcxewlm.fsf@thievol.homelinux.org> References: <7b79188f-cb09-46ae-b88c-65b611b39ae1@d4g2000prg.googlegroups.com> <4798C1BD.3030600@gmail.com> <4799F858.5070701@gmail.com> <603eirF1p2ag4U1@mid.uni-berlin.de> <87ir1evt30.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1201537675 4692 80.91.229.12 (28 Jan 2008 16:27:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Jan 2008 16:27:55 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: reader@newsguy.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 28 17:28:15 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 1JJWqE-0004fY-Ey for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Jan 2008 17:28:14 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJWpn-0007Nw-Q5 for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Jan 2008 11:27:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JJWpZ-0007Nh-0C for help-gnu-emacs@gnu.org; Mon, 28 Jan 2008 11:27:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JJWpX-0007N0-Ec for help-gnu-emacs@gnu.org; Mon, 28 Jan 2008 11:27:32 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJWpX-0007Mx-8N for help-gnu-emacs@gnu.org; Mon, 28 Jan 2008 11:27:31 -0500 Original-Received: from ug-out-1314.google.com ([66.249.92.172]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JJWpX-0007Xi-5v for help-gnu-emacs@gnu.org; Mon, 28 Jan 2008 11:27:31 -0500 Original-Received: by ug-out-1314.google.com with SMTP id a2so57472ugf.48 for ; Mon, 28 Jan 2008 08:27:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=Kczn4OSGYGxN/5CWk5uCTJvAPjLlcg7BR7IMn3lvH+c=; b=mcGvedRslGNHllOaaOZOs0NuwvAAbKpcmOlUKWS0i9MeuOsQ8+doj8NBAd9tNBIUjr64zb6brQRFk4scbGAoob0+WQVfFNa5dkT44DVGSyxZVnms8JbNOGCiWPDZjL/6F++UFrzIG3T/JGFD0FQT0W5ObP0Y2MXjlAdiC/cKNvE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type; b=FbCtLQDDqbAdOb6B8XlUqMjwjLpSWKmc8/OG+Xm1Dvd7orfyhi5pYCFdiTgyLH2hkQipU2cZ5v0G3PYE8sTBwazvO/wyUC/gD+udKbzlSFzNQSkn/eTVOlp4Lae1x7rNEt8QvVqLE1Aobq5DFwTsJpjyzWn1xYvp3quKM0jSlsw= Original-Received: by 10.66.249.16 with SMTP id w16mr283097ugh.32.1201537646609; Mon, 28 Jan 2008 08:27:26 -0800 (PST) Original-Received: from thievol.homelinux.org ( [79.81.65.82]) by mx.google.com with ESMTPS id k29sm9868491fkk.5.2008.01.28.08.27.24 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 28 Jan 2008 08:27:25 -0800 (PST) In-Reply-To: <87ir1evt30.fsf@newsguy.com> (reader@newsguy.com's message of "Mon, 28 Jan 2008 10:00:03 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) 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:51025 Archived-At: reader@newsguy.com writes: > "Juanma Barranquero" writes: > >> 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). > > Sorry to butt in here... I'm a (lightweight) user of emacs considering > starting to use emacsclient. > > What does your comment mean practically (aside from VCS usage). > > My usage is pretty basic. Scripting, gnus, file and directory > manipulation, bbdb, tramp.... probably a few other things I forgot. Actually: when you use emacsclient, this one use a running emacs session. if there is no emacs session it fail, except if you use the -a option (alternate editor) you can use a script to do that:(you can assign your script to $EDITOR) emacsclient -a emacs "$@" Look on emacswiki for more sophisticated scripts. 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!). It should be great. :) -- A + Thierry Pub key: http://pgp.mit.edu