From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.devel Subject: Re: Calling (package-initialize) sooner during initialization Date: Mon, 27 Apr 2015 14:43:00 +0100 Message-ID: References: <87383xk4ia.fsf@taylan.uni.cx> <87d22zi69k.fsf@taylan.uni.cx> <87a8xtoq3a.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1430142303 13270 80.91.229.3 (27 Apr 2015 13:45:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Apr 2015 13:45:03 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 27 15:44:56 2015 Return-path: Envelope-to: ged-emacs-devel@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 1YmjL9-00015z-TE for ged-emacs-devel@m.gmane.org; Mon, 27 Apr 2015 15:44:52 +0200 Original-Received: from localhost ([::1]:55174 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmjL9-0008MT-9K for ged-emacs-devel@m.gmane.org; Mon, 27 Apr 2015 09:44:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmjJl-0006JY-Nt for emacs-devel@gnu.org; Mon, 27 Apr 2015 09:43:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YmjJg-0000TK-L7 for emacs-devel@gnu.org; Mon, 27 Apr 2015 09:43:25 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:35297) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmjJg-0000RT-F4 for emacs-devel@gnu.org; Mon, 27 Apr 2015 09:43:20 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YmjJd-0008SB-S1 for emacs-devel@gnu.org; Mon, 27 Apr 2015 15:43:17 +0200 Original-Received: from uk.solarflare.com ([193.34.186.16]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Apr 2015 15:43:17 +0200 Original-Received: from andrewjmoreton by uk.solarflare.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Apr 2015 15:43:17 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: uk.solarflare.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (windows-nt) Cancel-Lock: sha1:DlnzmVq1te543kTvJ8ME14qaq1w= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:185931 Archived-At: On Mon 27 Apr 2015, Stefan Monnier wrote: >> Why don't you write to the custom-file (and make the use of custom-file >> the default instead of writing custom settings in .emacs by default) ? > > When should the custom-file be loaded? Before .emacs is too early. > After .emacs is too late. Never - because customise is horrible :-) I agree that emacs should not modify the user init file: it was misguided to allow customise to do so, and customise should always have used a separate file. The code in package--ensure-init-file to add (package-initialize) will cause breakage if the user had previously specified lexical binding (or other file locals) in the first line of user-init-file. AndyM