emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: "numbchild@gmail.com" <numbchild@gmail.com>
Cc: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: compatible issue between MELPA org and source code org
Date: Tue, 23 Jan 2018 16:15:35 +0000	[thread overview]
Message-ID: <CAFyQvY2FoMivWAFp1r1O6VYkrXbf0kRhJ2esvtEByQdQ5vdc-A@mail.gmail.com> (raw)
In-Reply-To: <CAL1eYuKPLSeBrJhyC+NzkVVn9WedgOBsVyK9LXGqxznxLzvjLQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1066 bytes --]

On Tue, Jan 23, 2018 at 11:09 AM numbchild@gmail.com <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

[-- Attachment #2: Type: text/html, Size: 1973 bytes --]

  reply	other threads:[~2018-01-23 16:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-22  9:39 compatible issue between MELPA org and source code org numbchild
2018-01-23 12:26 ` Kaushal Modi
2018-01-23 16:08   ` numbchild
2018-01-23 16:15     ` Kaushal Modi [this message]
2018-01-24  0:14       ` numbchild

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFyQvY2FoMivWAFp1r1O6VYkrXbf0kRhJ2esvtEByQdQ5vdc-A@mail.gmail.com \
    --to=kaushal.modi@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=numbchild@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).