From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: EmacsW32 invocation options Date: Tue, 01 May 2007 22:37:36 +0300 Message-ID: References: <59osrdF2m97hgU1@mid.individual.net> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1178048273 19280 80.91.229.12 (1 May 2007 19:37:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 1 May 2007 19:37:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 01 21:37:51 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 1HiyAY-0003cg-HU for geh-help-gnu-emacs@m.gmane.org; Tue, 01 May 2007 21:37:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HiyGs-0004GI-Ir for geh-help-gnu-emacs@m.gmane.org; Tue, 01 May 2007 15:44:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HiyGe-0004G0-MR for help-gnu-emacs@gnu.org; Tue, 01 May 2007 15:44:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HiyGc-0004Fk-7O for help-gnu-emacs@gnu.org; Tue, 01 May 2007 15:44:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HiyGc-0004Fh-1r for help-gnu-emacs@gnu.org; Tue, 01 May 2007 15:44:06 -0400 Original-Received: from nitzan.inter.net.il ([213.8.233.22]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HiyAH-00046a-1O for help-gnu-emacs@gnu.org; Tue, 01 May 2007 15:37:33 -0400 Original-Received: from HOME-C4E4A596F7 ([81.5.33.11]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id GQM87562 (AUTH halo1); Tue, 1 May 2007 22:37:32 +0300 (IDT) In-reply-to: <59osrdF2m97hgU1@mid.individual.net> (message from Will on Tue, 01 May 2007 15:15:24 +0200) X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) 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:43450 Archived-At: > 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? Btw, please note that eval'ing .emacs like this will work in subtly different ways that what Emacs does with .emacs found in your home directory. Some customizations, especially those related to setup of the Emacs display, will only work correctly when Emacs finds .emacs in your home directory, because then it evaluates .emacs before the display is set, whereas --eval is done after that, when it's too late to influence how Emacs initial frames and windows are set.