emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <schulte.eric@gmail.com>
To: Stelian Iancu <lists@siancu.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: Fwd:  Babel related bug in elpa version 20121231
Date: Sat, 05 Jan 2013 14:16:46 -0700	[thread overview]
Message-ID: <87zk0nryuv.fsf@gmail.com> (raw)
In-Reply-To: CAGoVJLEw7iP-V84uY-6y5U_dDhO1q9G3n-NFS-_CAWyghKm-Zw@mail.gmail.com

Stelian Iancu <lists@siancu.net> writes:

> On Sat, Jan 5, 2013 at 7:51 PM, Eric Schulte <schulte.eric@gmail.com> wrote:
>>
>>
>> That sounds like it should work, although I would go with the more
>> complete but possibly overkill
>>
>>     ;; emacs-lisp
>>     (package-initialize)
>>     (require 'org)
>>     (org-reload)
>>
>> Let me know if either of the above is sufficient to solve your problem
>> and ensure that only the latest ELPA version of Org-mode is used through
>> the entire startup process.  If so I will add this to the starter kit.
>
>
> What I did to get around this problem is the following (in init.el):
>
> ;; remove path to org shipped with emacs
> (require 'cl)
> (setq load-path (remove-if (lambda (x) (string-match-p "org$" x))
> load-path))
>
> ;; remember this directory
> (setq starter-kit-dir
>       (file-name-directory (or load-file-name (buffer-file-name))))
>
> ;; add the orgmode.org ELPA package
> (require 'package)
> (add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t)
>
> (package-initialize)
> (unless package-archive-contents    ;; Refrech the packages descriptions
>   (package-refresh-contents))
> (setq package-load-list '(all))     ;; List of packages to load
> (unless (package-installed-p 'org-plus-contrib)  ;; Make sure the Org
> package is
>   (package-install 'org-plus-contrib))           ;; installed, install it
> if not
> (package-initialize)                ;; Initialize & Install Package
>
> (add-to-list 'load-path (car (file-expand-wildcards (concat starter-kit-dir
> "elpa/org-plus-contrib-*"))))
> (require 'org)
>
> ;; load up the starter kit
> (org-babel-load-file (expand-file-name "main.org" starter-kit-dir))
>
> This solved the problem for me. I didn't come up with this though (I'm a
> newb when it comes to Emacs and elisp) but I've copied it from somebody.
>

Hi Stelian,

Thanks for the recipe, however it seems like overkill.  Specifically it
should not mandate the instillation of the latest version of Org-mode
through ELPA, rather it should use such an ELPA-installed Org-mode
*only* if it already exists.

Also, I do not want to change the user's load path.

I'm confident that a simple solution with `package-initialize' can be
found.

Best,

-- 
Eric Schulte
http://cs.unm.edu/~eschulte

  reply	other threads:[~2013-01-05 23:31 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-11 15:03 org version under Windows 7 Giovanni Ridolfi
2012-07-11 16:46 ` Achim Gratz
2012-07-11 17:43 ` [PATCH] " Achim Gratz
2012-07-11 20:21   ` Bastien
2012-07-11 21:15     ` Achim Gratz
2012-07-12  6:31       ` Bastien
2012-07-12  8:30       ` Giovanni Ridolfi
2012-07-12 13:24         ` Achim Gratz
2012-07-24 15:23   ` Bastien
2012-07-25  7:52     ` Giovanni Ridolfi
2012-07-26 12:50       ` Bastien
2012-07-26 18:49     ` Achim Gratz
2012-07-31 16:36       ` Bastien
2013-01-02 22:22 ` Babel related bug in elpa version 20121231 Robert Horn
2013-01-04  2:16   ` Robert Horn
2013-01-04 15:23     ` Bastien
2013-01-04 21:27   ` Achim Gratz
2013-01-05  0:10     ` Robert Horn
2013-01-05  7:07       ` Achim Gratz
2013-01-05 11:07         ` Bastien
2013-01-05 11:45           ` Achim Gratz
2013-01-05 12:33             ` Bastien
2013-01-05 13:40               ` Achim Gratz
2013-01-05 14:00                 ` Bastien
2013-01-05 16:40           ` Robert Horn
2013-01-05 16:55             ` Achim Gratz
2013-01-05 18:51               ` Eric Schulte
2013-01-05 19:07                 ` Achim Gratz
2013-01-05 19:28                   ` Eric Schulte
2013-01-05 20:39                     ` Achim Gratz
2013-01-05 23:29                       ` Eric Schulte
     [not found]                 ` <CAGoVJLFRky2wOZUkyAVTp3E9eXnsYoetAckWKJs1MKyqQHUCFA@mail.gmail.com>
2013-01-05 20:55                   ` Fwd: " Stelian Iancu
2013-01-05 21:16                     ` Eric Schulte [this message]
2013-01-05 21:10                 ` Robert Horn
2013-01-05 22:14                   ` Tom Davey
2013-01-05 23:30                     ` Eric Schulte
2013-01-06 20:21                       ` Stelian Iancu

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=87zk0nryuv.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=lists@siancu.net \
    /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).