From: trebol55555@yahoo.es
To: Harry Putnam <reader@newsguy.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: [Xming + emacsclient] How to load a library in an emacsclient call
Date: Sun, 06 Feb 2011 00:26:11 +0000 [thread overview]
Message-ID: <87zkqa57q4.fsf@yahoo.es> (raw)
In-Reply-To: <87k4he5d22.fsf@newsguy.com> (Harry Putnam's message of "Sat, 05 Feb 2011 16:31:01 -0600")
Harry Putnam <reader@newsguy.com> writes:
> 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.
Hello Harry,
The comands:
$ emacsclient -c -s nameserver -e "(load-library \"namelibrary\")
$ emacsclient -c -s nameserver -e "(load-file \"file_path\")"
works in linux without problem. I don't know anything about xming, but
this is the correct syntax.
Good luck,
Trebol.
next prev parent reply other threads:[~2011-02-06 0:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-05 22:31 [Xming + emacsclient] How to load a library in an emacsclient call Harry Putnam
2011-02-06 0:26 ` trebol55555 [this message]
2011-02-06 2:02 ` Harry Putnam
2011-02-06 4:12 ` trebol55555
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zkqa57q4.fsf@yahoo.es \
--to=trebol55555@yahoo.es \
--cc=help-gnu-emacs@gnu.org \
--cc=reader@newsguy.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).