From mboxrd@z Thu Jan 1 00:00:00 1970 From: "numbchild@gmail.com" Subject: Re: compatible issue between MELPA org and source code org Date: Wed, 24 Jan 2018 08:14:16 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1147faca04d29b05637a8db3" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ee8iZ-0005Oi-In for emacs-orgmode@gnu.org; Tue, 23 Jan 2018 19:15:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ee8iF-0006D9-NV for emacs-orgmode@gnu.org; Tue, 23 Jan 2018 19:15:07 -0500 Received: from mail-ot0-x22e.google.com ([2607:f8b0:4003:c0f::22e]:41545) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ee8iF-0006C4-9f for emacs-orgmode@gnu.org; Tue, 23 Jan 2018 19:14:47 -0500 Received: by mail-ot0-x22e.google.com with SMTP id 44so2096301otk.8 for ; Tue, 23 Jan 2018 16:14: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: Kaushal Modi Cc: emacs-org list --001a1147faca04d29b05637a8db3 Content-Type: text/plain; charset="UTF-8" After check your source code, I finally and with your theory: > 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. I finally understand how it works. Yesterday, I use a crude way: delete Emacs built-in org/ directory. This works too. But I still take your method. Your method is the correct way. Thanks very much. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Wed, Jan 24, 2018 at 12:15 AM, Kaushal Modi wrote: > 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 > --001a1147faca04d29b05637a8db3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
After check your source code, I finally and with your theo= ry:

> Org doesn't load automatically.. it autoloads o= nly if you open an Org=20 file or call an org-loading function. After emacs -Q, if you do M-:=20 (featurep 'org), you will get nil. So the user does get a change to set= =20 the load path as they want before any package gets loaded.

=
= I finally understand how it works. Yesterday, I use a crude way: delete Ema= cs built-in org/ directory. This works too. But I still take your method. Y= our method is the correct way. Thanks very much.

[star= diviner]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <Ha= ck this world!>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 GPG key ID: 47C32433
IR= C(freeenode): stardiviner =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Twitter:= =C2=A0 @numbchild
Key fingerprint =3D 9BAA 92BC CDDD B9EF 3B36=C2=A0 CB9= 9 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/

On Wed, Jan 24, 2018 at 12:15 AM, Kaushal Mo= di <kaushal.modi@gmail.com> wrote:
On Tue, Jan 23, 2018 at 11:09 AM numbchild@gmail.com <numbchild@gmail.com> wro= te:
Thanks for you= r 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 ..)` ah= ead of `(package-initialize)`. Half of the problem is solved.
<= /blockquote>
=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 problem esse= ntially. Because I can't load before Emacs built-in library. Oops.
<= /div>

Org doesn't load aut= omatically.. it autoloads only if you open an Org file or call an org-loadi= ng function. After emacs -Q, if you do M-: (featurep 'org), you will ge= t nil. So the user does get a change to set the load path as they want befo= re 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.=



--

Kaushal Modi


--001a1147faca04d29b05637a8db3--