From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.devel Subject: Re: Calling (package-initialize) sooner during initialization Date: Wed, 01 Apr 2015 08:04:06 +0200 Message-ID: <87a8ysjsfd.fsf@gmail.com> References: <87619h8s5m.fsf@gmail.com> <87d23pb8ye.fsf@gmail.com> <87a8ytb7nl.fsf@gmail.com> <87d23pxo0d.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1427868289 19289 80.91.229.3 (1 Apr 2015 06:04:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Apr 2015 06:04:49 +0000 (UTC) Cc: emacs-devel To: bruce.connor.am@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 01 08:04:35 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 1YdBlQ-00066R-Me for ged-emacs-devel@m.gmane.org; Wed, 01 Apr 2015 08:04:32 +0200 Original-Received: from localhost ([::1]:41664 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdBlP-0005jd-Cl for ged-emacs-devel@m.gmane.org; Wed, 01 Apr 2015 02:04:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59641) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdBlB-0005jY-3C for emacs-devel@gnu.org; Wed, 01 Apr 2015 02:04:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YdBl7-0007fO-3v for emacs-devel@gnu.org; Wed, 01 Apr 2015 02:04:17 -0400 Original-Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]:35407) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdBl6-0007f6-Tk for emacs-devel@gnu.org; Wed, 01 Apr 2015 02:04:13 -0400 Original-Received: by wgdm6 with SMTP id m6so41569082wgd.2 for ; Tue, 31 Mar 2015 23:04:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:cc:subject:in-reply-to:date:message-id :mime-version:content-type; bh=FVX3D4MYpRJvrOZsuUzVf6XASDePhqi3JAuGyx5lr2s=; b=GkedpnWK6+vNywDn+/zp++eIVaLfHLTK2GQqGHxl02Y6kv+o+hEaml6gf6zPPyx3+p 48xpQQG7BASvbn8+rJ8myLrmOOfbIKjub/CnUXrKSIv9GNAXtw1B1vz3hlOUTWX8XXEE a6QMqDPtFNX7RFqIDS7dO5hkJAKNIlLvLduaQgP/MP6vNiV0ogvm/vdOipO31bf0jns/ ZvMGoz/uxh9E0NwgF6woWuJND6PMK5UDLLYA72JHXK/RVUHUvTdpu3VRuZsAR4zDy2A8 ERcMOeghFFfMccCRC5olbQnYS4s132KnkMOVo+kvrHY0NTsrwzxsPxi8YsUoVIkpDItW /mUg== X-Received: by 10.180.208.107 with SMTP id md11mr11964014wic.10.1427868252357; Tue, 31 Mar 2015 23:04:12 -0700 (PDT) Original-Received: from dell-14z ([37.163.228.87]) by mx.google.com with ESMTPSA id u16sm1087783wjr.5.2015.03.31.23.04.09 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 31 Mar 2015 23:04:11 -0700 (PDT) In-reply-to: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::22a 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:184689 Archived-At: Artur Malabarba writes: > I don't understand how this will solve the "package-initialize is > called too late" issue. People who try to configure a package in their > init file will still run into errors until "(package-initialize)" is > called. Forget it. What about: 1) Stop writing by default the custom settings in init file and use and create by default the custom-file. 2) Add at start of this file a call to a function that add elpa packages to load-path according to package-load-list. 3) Call package-initialize at end of this file. -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997