From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard G Riley Newsgroups: gmane.emacs.help Subject: Re: Starting emacs in ediff mode. Date: Sun, 27 Jan 2008 14:17:12 +0100 Message-ID: <603eirF1p2ag4U1@mid.uni-berlin.de> References: <7b79188f-cb09-46ae-b88c-65b611b39ae1@d4g2000prg.googlegroups.com> <4798C1BD.3030600@gmail.com> <4799F858.5070701@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1201441239 3972 80.91.229.12 (27 Jan 2008 13:40:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Jan 2008 13:40:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 27 14:41:00 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 1JJ7kp-0002I1-CT for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Jan 2008 14:40:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJ7kO-000278-RP for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Jan 2008 08:40:32 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-X-Trace: news.uni-berlin.de H3bG1S/GJpLTK1ybsc0ZNgkMvMkCNMZoK2c/vsdedWcgjP1v8= User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50.6 (gnu/linux) Original-Xref: shelby.stanford.edu gnu.emacs.help:155627 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:51010 Archived-At: Eli Zaretskii writes: >> Date: Fri, 25 Jan 2008 18:03:30 +0100 >> From: "Juanma Barranquero" >> Cc: help-gnu-emacs@gnu.org >> >> > > > emacs --eval "(ediff-files \"file_1\" \"file_2\")" >> >> I think Lennart is saying that if file_1 and file_2 are relative, > > Really? It works for me with relative file names (of course, I used > "-q" as well, so if someone changes directory in their .emacs, that > could be a problem). > >> Emacs does not find them, and if they are absolute, the backslashes in >> the paths cause problems (at the very least, they must be escaped >> themselves). > > Or use forward slashes; nothing new here. > >> > I don't see how is this relevant to the OP's question: if they already >> > have Emacs running, they could simply invoke Ediff from within that >> > Emacs session. And if Emacs is not running, what's the advantage of >> > using emacsclient? >> >> Lennart's patched emacsclient starts Emacs automatically. > > That's fine, but I asked what was the _advantage_ of using > emacsclient instead of invoking Emacs itself? The same advantage of ever using emacsclient one would have thought. 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. One could always turn off that default behaviour for more advanced use. I've read reasonings as to why it doesn't launch emacs if not already done, but, well, it just seems quite wrong and I guess why lennart changed the default in his distribution.