From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Suvayu Ali Newsgroups: gmane.emacs.help Subject: Re: Calling emacsclient Date: Mon, 12 Nov 2012 15:15:21 +0100 Message-ID: <20121112141521.GC14125@kuru.dyndns-at-home.com> References: <87ip9b9zvj.fsf@gmail.com> <87haovq8f4.fsf@googlemail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1352729739 29278 80.91.229.3 (12 Nov 2012 14:15:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Nov 2012 14:15: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 Mon Nov 12 15:15:49 2012 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 1TXunl-0007Bl-Ec for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Nov 2012 15:15:49 +0100 Original-Received: from localhost ([::1]:57468 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXunb-0002bp-Je for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Nov 2012 09:15:39 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXunT-0002aY-1X for help-gnu-emacs@gnu.org; Mon, 12 Nov 2012 09:15:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TXunP-0001xb-V8 for help-gnu-emacs@gnu.org; Mon, 12 Nov 2012 09:15:30 -0500 Original-Received: from mail-we0-f169.google.com ([74.125.82.169]:54817) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXunP-0001x3-Oi for help-gnu-emacs@gnu.org; Mon, 12 Nov 2012 09:15:27 -0500 Original-Received: by mail-we0-f169.google.com with SMTP id u3so3349475wey.0 for ; Mon, 12 Nov 2012 06:15:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=Lm/PjvqeEfMorGi4dwn12dvEWug/dgK2HqQH9JH0UgA=; b=twBmguUCU2z0ix9ugkEOQBNYrMwdiKHD76fW4Dpa0VEzRjZI3ty9Y1lNswNu8iQx0p f64xs6qiQ0Hpg+2SfX00Eu6SjRm/tqxM6Fyj6atXRzduud5gOVRKCAimi37yc6azKY5f wFA9ww2HzdCWNjc//v7+fOVKSMMeV5BFg6MAgRJ3Rj5EBAJNB5sdLcu4bhRAMUG/FwaU UqCybxyJA/ohuiGo8N67aqEXngaXwmiJF6HyIrNvTPGrtQ8gBv3jV7p8w3b2KbZI3kyE JjFtZfT6Y00TzIgnrTkSohH7ntw33IKEY5USBAeD8K6LG+O/gsRFtyuT9yl85ij88otv lm3w== Original-Received: by 10.216.207.199 with SMTP id n49mr7900532weo.136.1352729725957; Mon, 12 Nov 2012 06:15:25 -0800 (PST) Original-Received: from kuru.dyndns-at-home.com (AAnnecy-651-1-366-222.w90-36.abo.wanadoo.fr. [90.36.65.222]) by mx.google.com with ESMTPS id j18sm10099375wiv.9.2012.11.12.06.15.23 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Nov 2012 06:15:24 -0800 (PST) Content-Disposition: inline In-Reply-To: <87haovq8f4.fsf@googlemail.com> User-Agent: Mutt/1.5.21 (2011-07-01) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 74.125.82.169 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:87655 Archived-At: On Mon, Nov 12, 2012 at 02:04:31PM +0100, Thorsten Jolitz wrote: > William Gardella writes: > > > One possibility would be to use the emacsclient -s option together with > > a shell wildcard, e.g.: > > > > emacsclient -c -s /tmp/emacs1000/* > > > > works, whatever the name of the socket inside /tmp/emacs1000/ is. So > > you could use that trick with the value of your `server-socket-dir' > > variable. > > I have the same 'server-socket-dir', so hardcoding this works fine on my > machine. But what if I need a generic version? Can I get the value of > `server-socket-dir' and use it for the '-s' option in the same external > call to emacsclient? Or would I need two consecutive calls to > emacsclient, the first one reading the value of `server-socket-dir' via > 'emacsclient -e "(...some lisp...)"', the second one using it for the > '-s' option from a variable of the calling program? I believe a more generic server-socket-dir is /tmp/emacs${UID}/. -- Suvayu Open source is the future. It sets us free.