From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: torys.anderson@gmail.com (Tory S. Anderson) Newsgroups: gmane.emacs.help Subject: Re: emacsclient command line use existing client Date: Fri, 12 Sep 2014 08:16:44 -0400 Message-ID: <87lhppvxsj.fsf@gmail.com> References: <87zje671q3.fsf@gmail.com> <87egvhk19v.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410524234 7271 80.91.229.3 (12 Sep 2014 12:17:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Sep 2014 12:17:14 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 12 14:17:07 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 1XSPmh-0008W6-66 for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Sep 2014 14:17:03 +0200 Original-Received: from localhost ([::1]:44623 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSPmg-0004Oc-OC for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Sep 2014 08:17:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSPmR-0004OV-Np for help-gnu-emacs@gnu.org; Fri, 12 Sep 2014 08:16:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XSPmQ-0000CX-KJ for help-gnu-emacs@gnu.org; Fri, 12 Sep 2014 08:16:47 -0400 Original-Received: from mail-yh0-x22e.google.com ([2607:f8b0:4002:c01::22e]:32931) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSPmQ-0000CR-GB for help-gnu-emacs@gnu.org; Fri, 12 Sep 2014 08:16:46 -0400 Original-Received: by mail-yh0-f46.google.com with SMTP id f73so351490yha.19 for ; Fri, 12 Sep 2014 05:16:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=cHSrfRhi5kfrTwVTiFsLv6eHls91IxpEyaNAP9cJncM=; b=lea00iNyXEPz7m1jjM0QoMiV7AN1T33DnL9xaUn1oWw1wMzo6zFNtOS4dgzbVD/t0r qUvsn3t8Q1USaYmLt9I0d7bS94XpaDWYvLt1TEhG1pj4XB+wtctxIaK/Hufnn0u7XKsR hQfg6ABHG6nbshbScHhski/3xt0yc/+3uwFZ28iGC6pCIB7EqgMIY2mLkefed0nkMnLV OAvJuOZcypSqvD07kt9Leq1mrMLcN3RyoUsG867pobiIlo6BQRAGB7QXPlPMS2/72l2G ZKOV8p8RxZ61NIMvuU74IPi07yF5l9fy7WWIXNWsSGGZ+ocDH7mcUtemE0qEG2FZKyW6 Vp9Q== X-Received: by 10.236.70.105 with SMTP id o69mr9523896yhd.25.1410524205588; Fri, 12 Sep 2014 05:16:45 -0700 (PDT) Original-Received: from localhost.localdomain ([2601:0:a000:4a1:ee55:f9ff:feb5:5589]) by mx.google.com with ESMTPSA id d36sm1506113yho.20.2014.09.12.05.16.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Sep 2014 05:16:44 -0700 (PDT) In-Reply-To: <87egvhk19v.fsf@web.de> (Michael Heerdegen's message of "Fri, 12 Sep 2014 04:42:20 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4002:c01::22e 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:99855 Archived-At: 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 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. Michael Heerdegen writes: > torys.anderson@gmail.com (Tory S. Anderson) writes: > >> elisp_expr="(mailto-compose-mail \"$mailto\")" >> >> emacsclient -a "" -c -n --eval "$elisp_expr" \ >> '(set-window-dedicated-p (selected-window) t)' >> >> But somehow when I run this it starts a new emacsclient rather than >> using the one I have running. If I remove the `-a ""` then nothing >> happens at all. Why won't it connect to my existing emacsclient? > > What exactly do you mean with "existing emacsclient"? You must have a > running server. A running Emacs is not enough. > > Michael.