From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer?=) Newsgroups: gmane.emacs.devel Subject: Re: Calling (package-initialize) sooner during initialization Date: Mon, 27 Apr 2015 13:03:43 +0200 Message-ID: <87d22pg7e8.fsf@taylan.uni.cx> 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 1430132642 9310 80.91.229.3 (27 Apr 2015 11:04:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Apr 2015 11:04:02 +0000 (UTC) Cc: emacs-devel@gnu.org To: Thierry Volpiatto Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 27 13:03:58 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 1YmgpQ-0005QC-E3 for ged-emacs-devel@m.gmane.org; Mon, 27 Apr 2015 13:03:56 +0200 Original-Received: from localhost ([::1]:54105 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmgpP-0000OV-Eu for ged-emacs-devel@m.gmane.org; Mon, 27 Apr 2015 07:03:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmgpI-0000If-LU for emacs-devel@gnu.org; Mon, 27 Apr 2015 07:03:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YmgpH-0000Wu-KK for emacs-devel@gnu.org; Mon, 27 Apr 2015 07:03:48 -0400 Original-Received: from mail-wg0-x230.google.com ([2a00:1450:400c:c00::230]:36240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmgpH-0000VZ-EX for emacs-devel@gnu.org; Mon, 27 Apr 2015 07:03:47 -0400 Original-Received: by wgen6 with SMTP id n6so111573646wge.3 for ; Mon, 27 Apr 2015 04:03:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=ZDWeB8fhS3SAxtbS1ntlkt/S1agPCwN/xCXxcvdDcFs=; b=MxQCQJCXBeo0GfuQPyaTPyuQzESy6xJpwIss1A1v+1PuxrM9pFpyoKMW7exzE1byVL U4oUGKpEKm1aARG5luVtqhLJf0pTTVGtXS+79IIQ5CXIgxuMX60t2qZgja4vJQAt8ymy s8ejxcWizeNxQEDjt5yqfWtgXtmJ4dmaV5HKKWUeTc7RgucH1QxujL+jpj1ldSLZ0I/R vUXjtzUCK05R4N7O0+qDiAzfNVzgnnVxqxJwLYY/PVINJzTpc9Q4gFCphHAydQimwVZ1 mBgdlVviSH4+YSw+sJUbrW+aGsYM2A7N6ueZKvxDY3c+FSc9s55yeJRC00qGy02cW+rl X+9g== X-Received: by 10.180.101.138 with SMTP id fg10mr19497407wib.46.1430132626115; Mon, 27 Apr 2015 04:03:46 -0700 (PDT) Original-Received: from taylan.uni.cx (p2003007A0A22ABE10213E8FFFEED36FB.dip0.t-ipconnect.de. [2003:7a:a22:abe1:213:e8ff:feed:36fb]) by mx.google.com with ESMTPSA id m1sm11135401wiw.7.2015.04.27.04.03.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Apr 2015 04:03:45 -0700 (PDT) In-Reply-To: <87a8xtoq3a.fsf@gmail.com> (Thierry Volpiatto's message of "Mon, 27 Apr 2015 11:52:41 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::230 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:185927 Archived-At: Thierry Volpiatto writes: > Stefan Monnier writes: > >> But the current code in Emacs's "master" solves this problem by adding >> "(package-initialize)" in the user's ~/.emacs. > > This is a very bad idea, I don't want my init file modified. > Only the user should modify this file. > 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) ? The intent is to solve the problem for users who are confused on why the function foobar, used in their .emacs, is undefined, when they installed the foobar package. The solution is to load packages before loading .emacs (or at the start of it). If a user is advanced enough to use a separate `custom-file' then they probably don't face the problem in first place, and otherwise Customize writes to the end of .emacs, not the start. Elsewhere in this thread it has been discussed in some detail how the problem can be solved in an arguably clean way; I would like to work on implementing that solution but have little time these days. (And I will likely have to do the copyright assignment stuff too.) If someone else feels like doing it, please go ahead. (But maybe first sum up once more, in a new thread, in detail, what exactly you will do, and get approval before starting.) Taylan