From: Thorsten Jolitz <tjolitz@googlemail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Calling emacsclient
Date: Wed, 14 Nov 2012 21:08:07 +0100 [thread overview]
Message-ID: <87vcd8uevs.fsf@googlemail.com> (raw)
In-Reply-To: 87d2zgnm95.fsf@gmail.com
William Gardella <gardellawg@gmail.com> writes:
> Thorsten Jolitz <tjolitz@googlemail.com> writes:
>> After some experimenting it seems to me that there is another bug, at
>> least in my case
>>
>> ,---------------------------
>> | (call 'emacsclient
>> | "-e"
>> | "(message \"CALL 1\")")
>> `---------------------------
>>
>> does not work, while
>>
>> ,---------------------------
>> | (call 'emacsclient
>> | "--eval"
>> | "(message \"CALL 1\")")
>> `---------------------------
>>
>> does (on Archlinux).
>
> This one I cannot reproduce. What is your emacs version?
GNU Emacs 24.0.93.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) of
2012-02-07 on arch
But, stangely enough, now it works here too. Sorry for the noise.
>> Now I wonder how I can call Emacsclient with a file I want to edit, but
>> make it (immediately) evaluate some code when it starts up? Is that
>> possible in the call(s) itself, or do I have to use hooks or something
>> like that?
>
> Depending on what this code is, you may be able to do it with a
> file-local variable or a hook. Or you could have emacsclient call
> something like
>
> (progn
> (set-buffer (find-file "~/somecode.c"))
> (some-nifty-code-here))
Thanks for the tip.
--
cheers,
Thorsten
next prev parent reply other threads:[~2012-11-14 20:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.12766.1352681489.855.help-gnu-emacs@gnu.org>
2012-11-12 5:03 ` Calling emacsclient William Gardella
2012-11-12 13:04 ` Thorsten Jolitz
2012-11-12 14:15 ` Suvayu Ali
2012-11-12 14:58 ` Thorsten Jolitz
2012-11-14 13:53 ` Thorsten Jolitz
[not found] ` <mailman.12968.1352901198.855.help-gnu-emacs@gnu.org>
2012-11-14 17:10 ` William Gardella
2012-11-14 20:08 ` Thorsten Jolitz [this message]
2012-11-14 17:22 ` William Gardella
2012-11-14 17:23 ` William Gardella
2012-11-14 20:01 ` Thorsten Jolitz
2012-11-12 0:51 Thorsten Jolitz
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vcd8uevs.fsf@googlemail.com \
--to=tjolitz@googlemail.com \
--cc=help-gnu-emacs@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.