From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: allow loading initialization from .org file -- would be breaking change Date: Mon, 22 Nov 2010 11:40:11 -0500 Message-ID: References: <871v6d4cdh.fsf@gmail.com> <87oc9h2wvf.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1290444037 30518 80.91.229.12 (22 Nov 2010 16:40:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 22 Nov 2010 16:40:37 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Eric Schulte" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 22 17:40:32 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PKZRQ-0000Ea-3c for ged-emacs-devel@m.gmane.org; Mon, 22 Nov 2010 17:40:32 +0100 Original-Received: from localhost ([127.0.0.1]:57855 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PKZRP-0006jv-HZ for ged-emacs-devel@m.gmane.org; Mon, 22 Nov 2010 11:40:31 -0500 Original-Received: from [140.186.70.92] (port=35504 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PKZRK-0006jq-Md for emacs-devel@gnu.org; Mon, 22 Nov 2010 11:40:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PKZRJ-00005d-Gd for emacs-devel@gnu.org; Mon, 22 Nov 2010 11:40:26 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:58340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PKZRJ-00005X-88 for emacs-devel@gnu.org; Mon, 22 Nov 2010 11:40:25 -0500 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id oAMGeFKd022546; Mon, 22 Nov 2010 11:40:16 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 75483A83C8; Mon, 22 Nov 2010 11:40:11 -0500 (EST) In-Reply-To: <87oc9h2wvf.fsf@gmail.com> (Eric Schulte's message of "Mon, 22 Nov 2010 08:36:52 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-NAI-Spam-Level: X-NAI-Spam-Score: 0.5 X-NAI-Spam-Rules: 2 Rules triggered SPACE_DOT_COM=0.5, RV3686=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133013 Archived-At: > It is now possible to load a user's initialization from emacs-lisp code > blocks embedded in Org-mode files using the `org-babel-load-file' > command. Currently users of this setup must still have an elisp init.el > function which loads up their .org files. See for example this fairly > widely used configuration [1] which uses this init file [2]. > > Would it make sense to begin loading .init.org and .emacs.org files by > default. This would be a breaking change for any users who have both > .init.el and .init.org, and what's worse it would overwrite the .init.el > file when the embedded elisp is tangled out of the Org-mode file. I don't think we want to hook Org so deeply in the startup code. And note that org-babel-load-file is autoloaded, so the init.el file can be reduced down to just: (org-babel-load-file (locate-user-emacs-file "init.org")) Stefan