From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.help Subject: Re: Can't Get Org-Drill to Work Date: Fri, 30 Jun 2017 18:18:00 +0000 Message-ID: References: <4B0D4D29-A82D-4E70-A619-C2A1A2CF0295@icloud.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1498846725 5625 195.159.176.226 (30 Jun 2017 18:18:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 30 Jun 2017 18:18:45 +0000 (UTC) To: "M. P." , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 30 20:18:41 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dR0V6-0001Aj-GK for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Jun 2017 20:18:40 +0200 Original-Received: from localhost ([::1]:45521 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dR0VB-0006Fz-P1 for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Jun 2017 14:18:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dR0Uj-0006Fg-IR for help-gnu-emacs@gnu.org; Fri, 30 Jun 2017 14:18:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dR0Uf-0001ee-JG for help-gnu-emacs@gnu.org; Fri, 30 Jun 2017 14:18:17 -0400 Original-Received: from mail-lf0-x233.google.com ([2a00:1450:4010:c07::233]:36574) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dR0Uf-0001eM-5H for help-gnu-emacs@gnu.org; Fri, 30 Jun 2017 14:18:13 -0400 Original-Received: by mail-lf0-x233.google.com with SMTP id h22so74670869lfk.3 for ; Fri, 30 Jun 2017 11:18:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=51hRLwWu3VkuIGypYhy8cPm9CdZ4VjKHDffb/rjgn8g=; b=S9jxtT8tYYAaLBEf4xlC1xyeo5XpsaeizkBeXbGLVWZPcJlM2Dvc8R364S3Um9Vpt1 wdK+SWDudft5CC4WF1T0z4micD/xwbgGGcHMBXGjJg04ltPhH4WO7KTgHaFkuxSgvwIG wvwv+VNfCRrZdiq3lFM+rRrQAQ/6ikdfKSok25TtIV5akIyt9+qd6hbhPgFg6XE5LpCM sLGtZDayR9vpG9zciY01Yk+61fueU4sMuLsfSlfuYvG6vtqXmQCSP1m8XkCyINmRcOjY ujNqE0DVcfmnDglJshpH/JimBap+1As7IAnYBCMI5a/uWeEVlylkDo+Wye7MWlpnledE 7u1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=51hRLwWu3VkuIGypYhy8cPm9CdZ4VjKHDffb/rjgn8g=; b=pWgMyesthQjDRoPpZUhWjvGWYC4bimyIAxUoYAoglT8R0b7KPF8GNtJrzxtg2beRqh 1QrJWariCn2/gnFZ0aQMfqZgZciBH60vsBSNS7bepjjX47W23tyA6Z9dMvCTpIdt3Zuw jFYBtlr4C6+vUX1e2aH4YY8pdImNNJfgkM0AX1ndlN3H6Q0Pnp6sidaVu9LmJYjhXxFq tNm2EAJclg/fnd6khnsDkLq6EPOUpaI4TktozWrgWlKUu65M4/jXHsfqzFrUWuhdeJAW HbBBzNEAqCLx4DfIpfvG+acX/QZWVi4udHCcJ+aBfmZ0LhldcFjzIuTy2R1p8GVy/vyR QSXQ== X-Gm-Message-State: AKS2vOyCgW210hHKxMczh4DGKLQ1pZf4r6r8Kz6e6Ket9JPLMsFhzTev Im3Vvtofh/DXa2fLlM+Xim3+cJeK+w== X-Received: by 10.25.196.194 with SMTP id u185mr5736386lff.88.1498846691767; Fri, 30 Jun 2017 11:18:11 -0700 (PDT) In-Reply-To: <4B0D4D29-A82D-4E70-A619-C2A1A2CF0295@icloud.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::233 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:113623 Archived-At: What is your emacs version? On Fri, Jun 30, 2017 at 9:47 AM M. P. 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 > =E2=80=98/Users/m.r.p/.emacs=E2=80=99: > > 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.m= k ). > 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. --=20 Kaushal Modi