help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling emacsclient


From: Thorsten Jolitz
Subject: Re: Calling emacsclient
Date: Wed, 14 Nov 2012 21:08:07 +0100
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.0.93 (gnu/linux)

William Gardella <address@hidden> writes:

> Thorsten Jolitz <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]