From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: winows emacs - portable app Date: Wed, 19 Apr 2006 08:08:36 -0700 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1145459367 15909 80.91.229.2 (19 Apr 2006 15:09:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Apr 2006 15:09:27 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 19 17:09:27 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FWEIh-00046I-0M for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Apr 2006 17:09:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWEIg-0004qQ-GA for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Apr 2006 11:09:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FWEIV-0004pj-R7 for help-gnu-emacs@gnu.org; Wed, 19 Apr 2006 11:08:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FWEIT-0004p6-Pr for help-gnu-emacs@gnu.org; Wed, 19 Apr 2006 11:08:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWEIT-0004p3-MY for help-gnu-emacs@gnu.org; Wed, 19 Apr 2006 11:08:49 -0400 Original-Received: from [141.146.126.228] (helo=agminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1FWEJb-0000HM-BT for help-gnu-emacs@gnu.org; Wed, 19 Apr 2006 11:09:59 -0400 Original-Received: from rgmsgw301.us.oracle.com (rgmsgw301.us.oracle.com [138.1.186.50]) by agminet01.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k3JF8kBu000895 for ; Wed, 19 Apr 2006 10:08:47 -0500 Original-Received: from rgmsgw301.us.oracle.com (localhost [127.0.0.1]) by rgmsgw301.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k3JF8g4c023724 for ; Wed, 19 Apr 2006 09:08:45 -0600 Original-Received: from dradamslap (dradams-lap.us.oracle.com [130.35.177.126]) by rgmsgw301.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id k3JF8SjA023541 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Wed, 19 Apr 2006 09:08:37 -0600 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-reply-to: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE 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:34460 Archived-At: > M-x load-file But note that this will not always have the same effect as loading .emacs as an init file, because Emacs loads the init file half way through its startup procedure, precisely in time to customize certain aspects of the appearance before they are set to default. For example, if your .emacs is setting parameters of the initial frame, those settings will not work if you load .emacs after startup. I'm not an expert here, and I don't know how you happen to launch Emacs, but if you do it from (the equivalent of) a command line, and you use the "-l" option to load a file, then the same processing that Eli described for .emacs will take place for that file. At least that's what I find wrt the initial frame, standalone minibuffer frame etc. That is, it's true that doing some stuff in .emacs is different from doing it after you're inside Emacs, but you can do stuff in a file (e.g. your .emacs or foo.el) that you load explicitly via command-line option -l, and I believe that gives the same behavior as doing that stuff in your .emacs. This sound confusing as I re-read it. Anyway, I do this sometimes when I don't want to mess up my .emacs or even rename it temporarily for some reason. I just do what I want to do in a file foo.el and use emacs -l "foo.el" to simulate doing it in .emacs.