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: The emacsclient socket vs. etc/emacs.bash Date: Fri, 15 Dec 2006 16:48:47 +0100 Message-ID: <4582C3DF.1060308@student.lu.se> References: <4582BE32.1000401@student.lu.se> NNTP-Posting-Host: dough.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 1166197804 23548 80.91.229.10 (15 Dec 2006 15:50:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Dec 2006 15:50:04 +0000 (UTC) Cc: Juanma Barranquero , romain@orebokech.com, rms@gnu.org, Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 15 16:50:02 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GvFJx-0004nx-EL for ged-emacs-devel@m.gmane.org; Fri, 15 Dec 2006 16:50:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GvFJw-0006ma-Vt for ged-emacs-devel@m.gmane.org; Fri, 15 Dec 2006 10:50:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GvFIw-0005y6-UP for emacs-devel@gnu.org; Fri, 15 Dec 2006 10:48:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GvFIv-0005wM-6v for emacs-devel@gnu.org; Fri, 15 Dec 2006 10:48:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GvFIv-0005wC-0E for emacs-devel@gnu.org; Fri, 15 Dec 2006 10:48:57 -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 1GvFIt-0004ly-Pz; Fri, 15 Dec 2006 10:48:56 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:61353 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1GvFIq-0004KP-8T; Fri, 15 Dec 2006 16:48:53 +0100 User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) Original-To: "Kim F. Storm" In-Reply-To: X-Antivirus: avast! (VPS 0659-0, 2006-12-15), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1GvFIq-0004KP-8T. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1GvFIq-0004KP-8T 2949f04c76d45edfa348ce79eb0aff43 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:63778 Archived-At: Kim F. Storm wrote: > Lennart Borgman writes: > > >> Maybe you misunderstood what I said? If emacsclient starts emacs the >> way I have proposed then there is no need for the startup files for >> emacs (.emacs etc) to start emacs server. That is taken care of by >> emacsclient. >> >> If you in such a setup want to start a second emacs then you can just >> start emacs the way you do it today. There will be no trouble with >> emacs server then since the emacs you start this way simply does not >> care about emacs server. >> >> Or, did I misunderstood you? >> > > I think we mis-communicate... > > You talk about emacsclient _starting emacs_ and instructing that emacs > to start the server, so emacsclient can talk to that emacs. I > understand how that works nicely with e.g. Windows' Explorer and file > associations, and how subsequent calls to emacsclient will talk to > the emacs started by the first emacsclient. > > But in my case, I _always_ have emacs running (not started by > emacsclient), so I want emacsclient to talk to that emacs -- how do > you do that without starting the server (e.g. in .emacs) before > running emacsclient? > Yes, maybe we miscommunicate. I am talking about the suggestions I had to change emacsclient (and which I have implemented in a working, but not optimal way, in my patched version). To be able to start "that emacs" I send along the value from emacsclient --server-file argument to emacs. No big deal, no changes to emacs itself. (I leave out the technical details for now.) Would it be possible at all for you to start emacs through emacsclient this way? Or is something missing that makes it impossible for you? I am not asking here if you like this way or not. I just want to know if it possible. And the second question is of course if you in principle would like such an arrangement? I think it has the advantage that I mentioned above (and of course the advantage of the automatic startup of emacs).