From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.help Subject: Re: EmacsW32 invocation options Date: Tue, 01 May 2007 22:31:18 +0200 Message-ID: <4637A396.9000300@gmail.com> References: <59osrdF2m97hgU1@mid.individual.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1178051506 8119 80.91.229.12 (1 May 2007 20:31:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 1 May 2007 20:31:46 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Will Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 01 22:31:41 2007 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.50) id 1Hiz0c-0000S6-4p for geh-help-gnu-emacs@m.gmane.org; Tue, 01 May 2007 22:31:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hiz6w-0006xH-EN for geh-help-gnu-emacs@m.gmane.org; Tue, 01 May 2007 16:38:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hiz6i-0006wp-8s for help-gnu-emacs@gnu.org; Tue, 01 May 2007 16:37:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hiz6f-0006wS-OW for help-gnu-emacs@gnu.org; Tue, 01 May 2007 16:37:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hiz6f-0006wO-Hr for help-gnu-emacs@gnu.org; Tue, 01 May 2007 16:37:53 -0400 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hiz0J-00036K-It; Tue, 01 May 2007 16:31:19 -0400 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:62103 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1Hiz0H-00086U-62; Tue, 01 May 2007 22:31:18 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.5.666 In-Reply-To: X-Antivirus: avast! (VPS 000737-2, 2007-04-30), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1Hiz0H-00086U-62. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1Hiz0H-00086U-62 a8ff4e4c102b59f03e1f93c38de23e8a X-detected-kernel: Linux 2.6? (barebone, rare!) 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:43452 Archived-At: Eli Zaretskii wrote: >> From: Will >> Date: Tue, 01 May 2007 15:15:24 +0200 >> >> I'd like to use a shortcut on my desktop to start GNU Emacs with W32 >> bundle (patched, V1.46 - V1.50) so that my personal init-file is >> evaluated at start-up, which is _not_ in my home directory. The >> following commands however do not work (cf. Shortcut > Target): >> >> "C:\Program Files\Emacs\emacs\bin\emacsclientw.exe" -n -e >> "Z:\00_Preferences\Emacs\.emacs" >> >> "C:\Program Files\Emacs\emacs\bin\emacsclientw.exe" -n --eval >> "Z:\00_Preferences\Emacs\.emacs" >> >> What am I doing wrong? > > Why do you make this so complicated? Why not > > "C:\Program Files\Emacs\emacs\bin\runemacs.exe" --eval > "Z:\00_Preferences\Emacs\.emacs" > > ? why use emacsclientw? That is good advice for the unpatched version of Emacs, but for the patched version that comes with Emacs+EmacsW32 it should be handled differently. The reason is that with the patched version you do not have to start Emacs server in your .emacs, it is started automatically by the first invocation of emacsclient. To still use that feature you can do something like this: emacsclientw.exe -n -e "load-file \"path-to-your-file\"" BTW there is a misunderstanding above. When you use -e the parameter is evaled, not the contents in the file. So you are trying to use the file name as an emacs lisp expression. (Fortunately that fails.)