From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: compatible issue between MELPA org and source code org Date: Tue, 23 Jan 2018 16:15:35 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11c0166ef7163f056373db2b" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45666) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ee1El-0001Lb-TD for emacs-orgmode@gnu.org; Tue, 23 Jan 2018 11:15:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ee1Eh-0008KE-Ky for emacs-orgmode@gnu.org; Tue, 23 Jan 2018 11:15:51 -0500 Received: from mail-yb0-x22d.google.com ([2607:f8b0:4002:c09::22d]:40807) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ee1Eh-0008JH-FB for emacs-orgmode@gnu.org; Tue, 23 Jan 2018 11:15:47 -0500 Received: by mail-yb0-x22d.google.com with SMTP id i12so378235ybj.7 for ; Tue, 23 Jan 2018 08:15:47 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "numbchild@gmail.com" Cc: emacs-org list --001a11c0166ef7163f056373db2b Content-Type: text/plain; charset="UTF-8" On Tue, Jan 23, 2018 at 11:09 AM numbchild@gmail.com wrote: > Thanks for your advice. After your code inspiration. I got an idea. After > test, it works fine. I try to load `use-package` and `(use-package org :pin > manaul ..)` ahead of `(package-initialize)`. Half of the problem is solved. > > The another half of the problem is that Emacs still will load built-in > org-mode in lisp/org/. I think I can't solve this problem essentially. > Because I can't load before Emacs built-in library. Oops. > Org doesn't load automatically.. it autoloads only if you open an Org file or call an org-loading function. After emacs -Q, if you do M-: (featurep 'org), you will get nil. So the user does get a change to set the load path as they want before any package gets loaded. That's way, I tweak the load-path in the :preface section[1] in the org use-package form. The load-path would be set exactly as I want before org gets (auto)loaded. [1]: https://github.com/kaushalmodi/.emacs.d/blob/master/setup-files/setup-org.el -- Kaushal Modi --001a11c0166ef7163f056373db2b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Jan 23= , 2018 at 11:09 AM numbchild@gmail.c= om <numbchild@gmail.com&g= t; wrote:
Thanks f= or your advice. After your code inspiration. I got an idea. After test, it = works fine. I try to load `use-package` and `(use-package org :pin manaul .= .)` ahead of `(package-initialize)`. Half of the problem is solved.
<= /div>
=C2=A0
The another half of the problem is that Emacs still will= load built-in org-mode in lisp/org/. I think I can't solve this proble= m essentially. Because I can't load before Emacs built-in library. Oops= .

Org doesn't load auto= matically.. it autoloads only if you open an Org file or call an org-loadin= g function. After emacs -Q, if you do M-: (featurep 'org), you will get= nil. So the user does get a change to set the load path as they want befor= e any package gets loaded.

That's way, I t= weak the load-path in the :preface section[1] in the org use-package form. = The load-path would be set exactly as I want before org gets (auto)loaded.<= /div>



--

Kaushal Modi

--001a11c0166ef7163f056373db2b--