From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.help Subject: Re: emacsclient command line use existing client Date: Sat, 13 Sep 2014 13:29:18 -0400 Organization: Still searching... Message-ID: References: <87zje671q3.fsf@gmail.com> <87egvhk19v.fsf@web.de> <87lhppvxsj.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410629472 28415 80.91.229.3 (13 Sep 2014 17:31:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Sep 2014 17:31:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 13 19:31:05 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XSrA6-0003ci-SW for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Sep 2014 19:31:02 +0200 Original-Received: from localhost ([::1]:51157 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSrA6-0004RV-Cs for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Sep 2014 13:31:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54835) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSr9b-0004Po-JW for help-gnu-emacs@gnu.org; Sat, 13 Sep 2014 13:30:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XSr9T-0006SD-QW for help-gnu-emacs@gnu.org; Sat, 13 Sep 2014 13:30:31 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:58921) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSr9T-0006S4-Ji for help-gnu-emacs@gnu.org; Sat, 13 Sep 2014 13:30:23 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XSr9S-0003Ot-3t for help-gnu-emacs@gnu.org; Sat, 13 Sep 2014 19:30:22 +0200 Original-Received: from c-76-97-127-193.hsd1.ga.comcast.net ([76.97.127.193]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 13 Sep 2014 19:30:22 +0200 Original-Received: from reader by c-76-97-127-193.hsd1.ga.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 13 Sep 2014 19:30:22 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-76-97-127-193.hsd1.ga.comcast.net User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.3 (usg-unix-v) Cancel-Lock: sha1:huiACQk3rY7X3FOpIa+dTxWj5Sw= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99874 Archived-At: torys.anderson@gmail.com (Tory S. Anderson) writes: > Thanks for prompting me to be more precise. When my OS starts I launch > a server with the autostart `emacs-client` command, and have the line > in my .emacs to ensure the server is started. As it should, opening That sounds like you might be starting 2 servers. Not sure what you mean there. What line in .emacs? Does it start a second server in addition to the one started when OS starts? > any number of new frames (or launching emacs-client again) will share > the same buffer list, etc. However, this shell script for launching an > email (apparently) starts a new server; it isn't sharing anything with > the other frames, and if I don't `kill-emacs` I end up with two > servers running. Clearly, not acceptable. In your script you need to say which emacsclient server to attache to. something like `emacsclient -s SERVERNAME -c' (or what ever other flags you use) Will only attache to SERVERNAME