From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mandar Mitra Newsgroups: gmane.emacs.help Subject: Re: "emacs" and "emacs -q -l ~/.emacs.elc" behave differently Date: Mon, 15 Oct 2012 23:53:02 +0530 Message-ID: <20121015182302.GA21200@gmail.com> References: <20825f85-2b54-4e0a-81c7-f2f366796e30@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1350326254 28449 80.91.229.3 (15 Oct 2012 18:37:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Oct 2012 18:37:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 15 20:37:40 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 1TNpXn-0006eT-Jg for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Oct 2012 20:37:39 +0200 Original-Received: from localhost ([::1]:41280 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNpXg-0006xt-RG for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Oct 2012 14:37:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47627) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNpJo-0003br-B5 for help-gnu-emacs@gnu.org; Mon, 15 Oct 2012 14:23:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TNpJn-0007t7-DR for help-gnu-emacs@gnu.org; Mon, 15 Oct 2012 14:23:12 -0400 Original-Received: from mail-da0-f41.google.com ([209.85.210.41]:34056) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNpJn-0007t0-6T for help-gnu-emacs@gnu.org; Mon, 15 Oct 2012 14:23:11 -0400 Original-Received: by mail-da0-f41.google.com with SMTP id i14so3015978dad.0 for ; Mon, 15 Oct 2012 11:23:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; bh=OQB/Np3nrDWVodCgiV1Jgqmx9BFZxxCBeny7DuwVpo0=; b=0Po1YtLIcR3UAQZ9zgkopyp0EBya+Fx3K4rgSroKM12THh/QXx5ieS539998EXqbSv 0xNd0i5BWWHrAUXmAe3DJwWQETBgX3bW6857tzfhEySFfelRiajl5NCcGaRW6l/64pz3 S2TM7wh052O1Vqm6DIdMIcbvPbuxml39kclCDCsPjF8ICaTLx7Tfj1L4pTQoxCZl11W8 yRQLV4fdnAUTh//MGECtT78jleR33wtyjeeEDCY4Y7kXDDu9Hj40qloQ5tjlbtxb087/ qjvbq+sMVIngOajNV2JBQomBeK9cGCPIJ4oLJvDL7yNXjV3e4tA9I80+pCDxk08OwP8P 6SqA== Original-Received: by 10.66.86.3 with SMTP id l3mr9559597paz.55.1350325389996; Mon, 15 Oct 2012 11:23:09 -0700 (PDT) Original-Received: from localhost ([59.93.255.24]) by mx.google.com with ESMTPS id ty4sm9403007pbc.57.2012.10.15.11.23.07 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 15 Oct 2012 11:23:09 -0700 (PDT) Content-Disposition: inline In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.41 X-Mailman-Approved-At: Mon, 15 Oct 2012 14:37:28 -0400 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:87274 Archived-At: Juanma Barranquero wrote (Mon, Oct 15, 2012 at 07:09:30PM +0200): > On Mon, Oct 15, 2012 at 6:27 PM, mandar.mitra wrote: > > > I was under the impression that running emacs and running > > "emacs -q -l ~/.emacs.elc" would be the same > > Generally speaking, no. The sequence of actions will be different. > Take a look at the "Startup Summary" node of the Emacs Lisp Reference > Manual. Thanks for the pointer! More details in case anyone else finds this useful: init file loading happens in step 12, and "command-line options that were not handled earlier" (presumably this includes -l) are processed in step 21. In between, it does a bunch of stuff like calling package-initialize, after-init-hook, etc.