From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: William Gardella Newsgroups: gmane.emacs.help Subject: Re: Calling emacsclient Date: Wed, 14 Nov 2012 12:10:46 -0500 Organization: Aioe.org NNTP Server Message-ID: <87d2zgnm95.fsf@gmail.com> References: <87ip9b9zvj.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1352913312 4473 80.91.229.3 (14 Nov 2012 17:15:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Nov 2012 17:15:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 14 18:15:23 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 1TYgYc-0002rM-9E for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Nov 2012 18:15:22 +0100 Original-Received: from localhost ([::1]:35594 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYgYS-0004Vw-Gq for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Nov 2012 12:15:12 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-NNTP-Posting-Host: ays4xj3A5hLoCGicy3LHqQ.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:hOcEfwOLInmnLRXuggp8gRM3kTg= Original-Xref: usenet.stanford.edu gnu.emacs.help:195365 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:87688 Archived-At: Hi. Thorsten Jolitz 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? > 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)) Hope this helps, WGG -- I use grml (http://grml.org/)