all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: "M. P." <wintermute24x7@icloud.com>, help-gnu-emacs@gnu.org
Subject: Re: Can't Get Org-Drill to Work
Date: Fri, 30 Jun 2017 18:18:00 +0000	[thread overview]
Message-ID: <CAFyQvY0dMQtsofSPzWrdxA4bLkwLStkMFbLgJ2EUPkSnwfD=Rw@mail.gmail.com> (raw)
In-Reply-To: <4B0D4D29-A82D-4E70-A619-C2A1A2CF0295@icloud.com>

What is your emacs version?

On Fri, Jun 30, 2017 at 9:47 AM M. P. <wintermute24x7@icloud.com> wrote:

> I am trying to install org-drip. I have org and org-contrib installed
> through Elpa.


Not that that could be causing the issue you are seeing, but there is no
point installing both org and org-plus-contrib. org-plus-contrib is a
super-set of org.


> The Problem has something to do with the line (require `org-drill. When I
> try to run this config I get
>
> Warning (initialization): An error occurred while loading
> ‘/Users/m.r.p/.emacs’:
>
> Symbol's function definition is void: copy-list
>

copy-list is in the cl-lib library. So the order of your package
initialization is probably the issue.

The documentation tells me to You will also need to make sure that Org's
> "contrib/lisp" directory is in the emacs load-path. How do I do this?


You do not need to do anything like that if you are installing
org-plus-contrib. org-plus-contrib includes files from Org and contrib/
directories under one single flat directory hierarchy.

You need to update the load-path as suggested if you are cloning the Org
repo and *not* building Org as it's supposed to (by customizing the local.mk
).


>                              Here is my config file.
> ;; Added by Package.el.  This must come before configurations of
> ;; installed packages.  Don't delete this line.  If you don't want it,
> ;; just comment it out by adding a semicolon to the start of the line.
> ;; You may delete these explanatory comments.
> (package-initialize)
> (require 'org-drill)
> (require 'package)
> (add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t)
>
> Any Ideas would be most appreciated.
>

I would rearrange the above as:

(require 'package) ;You need this require so that the `package-archives'
var is declared
(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/")
:append)
(package-initialize)               ;MANDATORY (before you require *any*
package)
;; Now do all the package requires as needed (I would rather let the
packages be
;; auto-loaded instead.)
(require 'org-drill) ;Assumes that you have already installed
`org-plus-contrib' first

You can step through the above in an emacs -Q session as follows (tested on
emacs 25.2):

1. Start emacs -Q
2. Evaluate the below:

(progn
  (require 'package) ;You need this require so that the `package-archives'
var is declared
  (add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/")
:append)
  (package-initialize)
  (package-refresh-contents)
  (package-install 'org-plus-contrib)
  (require 'org-drill))

Then when I do M-: (featurep 'org-drill), I get "t" in the echo area. That
means that that package got loaded fine.
-- 

Kaushal Modi


      parent reply	other threads:[~2017-06-30 18:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-30  4:46 Can't Get Org-Drill to Work M. P.
2017-06-30 17:28 ` John Mastro
2017-06-30 18:18 ` Kaushal Modi [this message]

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

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

  git send-email \
    --in-reply-to='CAFyQvY0dMQtsofSPzWrdxA4bLkwLStkMFbLgJ2EUPkSnwfD=Rw@mail.gmail.com' \
    --to=kaushal.modi@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=wintermute24x7@icloud.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.