From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: Customizable modes and package.el Date: Mon, 30 Mar 2015 17:07:16 +0100 Message-ID: References: <87fv8mcz6h.fsf@gmail.com> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1133c2ba013ec8051283ad3e X-Trace: ger.gmane.org 1427731767 1462 80.91.229.3 (30 Mar 2015 16:09:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Mar 2015 16:09:27 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 30 18:09:27 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 1YccDy-0003Ug-5C for ged-emacs-devel@m.gmane.org; Mon, 30 Mar 2015 18:07:38 +0200 Original-Received: from localhost ([::1]:34913 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YccDx-0007ZP-F8 for ged-emacs-devel@m.gmane.org; Mon, 30 Mar 2015 12:07:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YccDi-0007ZI-Rq for emacs-devel@gnu.org; Mon, 30 Mar 2015 12:07:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YccDd-0007QY-1j for emacs-devel@gnu.org; Mon, 30 Mar 2015 12:07:22 -0400 Original-Received: from mail-la0-x22c.google.com ([2a00:1450:4010:c03::22c]:36838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YccDc-0007QO-QP for emacs-devel@gnu.org; Mon, 30 Mar 2015 12:07:16 -0400 Original-Received: by labe2 with SMTP id e2so107800097lab.3 for ; Mon, 30 Mar 2015 09:07:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=Cig5t+cRBHTT2GvjONh+HCGHFEWG8WIQMCUqlLAvzbM=; b=LwQsf8xmwaK69rfW/TlKlubTvJoXPp5Jo02w6cJPsgpZWZd5KxsuqdUtadFl+hCe+4 FEAoD2cA5XZmteYLj9dj5gPzNOhS1zj+y4Slp+Tch79mz7svSoDgX7k8EdO0qoAzy1c/ TxcbmXXgQfD+f43XJdkxx9qd7xM7Rqd+cU/7xo1l5k0RrJ0pWLjCL6RytPn96RF7+sFw Aqg77/9jttvf6R7giRDGUklIzsjL3bQF0NvvFXpKqVTtrzhO9SYWYWCttXk2Tx8OdwzP IXng+CI0J/mfJsgaVlPws1Q9yp8kOqrKxHFxCRvbTn7ORS+3BIFr6KfDgtGCQ4l1QGJb dKLA== X-Received: by 10.153.5.37 with SMTP id cj5mr27652788lad.14.1427731636107; Mon, 30 Mar 2015 09:07:16 -0700 (PDT) Original-Received: by 10.112.207.225 with HTTP; Mon, 30 Mar 2015 09:07:16 -0700 (PDT) In-Reply-To: <87fv8mcz6h.fsf@gmail.com> X-Google-Sender-Auth: SLpHxJTaiI78CnQ-tpEDLr2UKeg X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22c 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:184553 Archived-At: --001a1133c2ba013ec8051283ad3e Content-Type: text/plain; charset=UTF-8 > >> That's not an option, because the user may need/want to run some Elisp > >> code of his own choosing *before* package-initialize is called. > >> E.g. in my case, I need to set package-load-list and > >> package-directory-list before package-initialize runs. > > > > `package-initialize' could look into some file like > > ~/.emacs.d/package-init.el and load that before initializing. > > Please, not Yet Another File That Changes Emacs' Behaviour The file would not exist unless the user manually created it. I'm not thrilled at this solution, and I'm open to alternatives, but we have to do something. This package.el-induced "cannot find load file" error is the most predominant issue I see people run into in the wild. Some people file issues for this stuff on github, others go to the relevant forums, and others (I can only imagine) probably just give up on configuring packages (or give up Emacs!) entirely. We would be sparing a LOT of man-hours (from newbiews and from the experts who help them) if we found a solution for this conundrum. --001a1133c2ba013ec8051283ad3e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

> >> That's not an option, bec= ause the user may need/want to run some Elisp
> >> code of his own choosing *before* package-initialize is calle= d.
> >> E.g. in my case, I need to set package-load-list and
> >> package-directory-list before package-initialize runs.
> >
> > `package-initialize' could look into some file like
> > ~/.emacs.d/package-init.el and load that before initializing.
>
> Please, not Yet Another File That Changes Emacs' Behaviour

The file would not exist unless the user manually created it= .

I'm not thrilled at this solution, and I'm= open to alternatives, but we have to do something.

= This package.el-induced "cannot find load file" error is the most= predominant issue I see people run into in the wild. Some people file issu= es for this stuff on github, others go to the relevant forums, and others (= I can only imagine) probably just give up on configuring packages (or give = up Emacs!) entirely.

We would be sparing a LOT of man-hours (fro= m newbiews and from the experts who help them) if we found a solution for = this conundrum.

--001a1133c2ba013ec8051283ad3e--