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: [Xming + emacsclient] How to load a library in an emacsclient call Date: Sat, 05 Feb 2011 16:31:01 -0600 Organization: Still searching... Message-ID: <87k4he5d22.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1296945108 12162 80.91.229.12 (5 Feb 2011 22:31:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 5 Feb 2011 22:31:48 +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 Feb 05 23:31:45 2011 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.69) (envelope-from ) id 1PlqfQ-0005jd-GH for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Feb 2011 23:31:44 +0100 Original-Received: from localhost ([127.0.0.1]:39618 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PlqfP-0003CT-TH for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Feb 2011 17:31:43 -0500 Original-Received: from [140.186.70.92] (port=56483 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Plqf5-0003CB-K6 for help-gnu-emacs@gnu.org; Sat, 05 Feb 2011 17:31:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Plqf4-0001TG-Jf for help-gnu-emacs@gnu.org; Sat, 05 Feb 2011 17:31:23 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:34963) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Plqf4-0001Sz-CQ for help-gnu-emacs@gnu.org; Sat, 05 Feb 2011 17:31:22 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Plqey-0005Zj-Nq for help-gnu-emacs@gnu.org; Sat, 05 Feb 2011 23:31:16 +0100 Original-Received: from c-98-215-183-196.hsd1.in.comcast.net ([98.215.183.196]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 05 Feb 2011 23:31:16 +0100 Original-Received: from reader by c-98-215-183-196.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 05 Feb 2011 23:31:16 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 43 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-98-215-183-196.hsd1.in.comcast.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:QiOC0qrBiDut2Gxgm8b+COpDaw0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:78979 Archived-At: Can anyone coach me about syntax or other format items to do this: Call emacs using emacsclient but including a call to load a specific library. It doesn't end there though. The call is being executed through Xming *.launch script from windows 7. I have no problem calling emacs via emacslcient thru Xming. Its just that I'm not sure how to include an emacs command into the same command line. If I could see how to do the above from the linux cmdline I'm pretty sure I could figure out to work it into an xming script, but, I'm not even sure how to do this at a linux command prompt beyond calling emacs like this: (the server running is named `nognus' emacsclient -s nognus -c That will start emacs from the named daemon. But how to have emacs to load a specific library when called? The emacsclient man page seems to indicate that the `-e' switch might do what I want. So I thought if used in tandem with the other command like this: (NOTE: the xming-on-m1 `library' sets a specific font and bkg foregrd colors to use on a specific host `m1') emacsclient -s nognus -e "(load-library \"xming-on-m1\")" ; \ emacsclient -s nognus -c That doesn't work... there are no errors but the resulting emacs does not have the xming-on-m1 library loaded. So I guess it needs to be worked into a single command. So cutting to the chase: The question is how to make emacs read a specific library or file in an emacsclient command line.