From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Fwd: Babel related bug in elpa version 20121231 Date: Sat, 05 Jan 2013 14:16:46 -0700 Message-ID: <87zk0nryuv.fsf@gmail.com> References: <1342018996.75825.YahooMailNeo@web29804.mail.ird.yahoo.com> <8738ygbpvg.fsf@Rainer.invalid> <87mwworttu.fsf@Rainer.invalid> <87wqvrc2hu.fsf@bzg.ath.cx> <87bod3r2lo.fsf@Rainer.invalid> <87k3rrh38w.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TrdDA-0002Gn-TY for emacs-orgmode@gnu.org; Sat, 05 Jan 2013 18:31:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TrdD9-0000FG-Gf for emacs-orgmode@gnu.org; Sat, 05 Jan 2013 18:31:32 -0500 Received: from mail-ia0-f175.google.com ([209.85.210.175]:32975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TrdD9-0000FC-Bi for emacs-orgmode@gnu.org; Sat, 05 Jan 2013 18:31:31 -0500 Received: by mail-ia0-f175.google.com with SMTP id z3so15032841iad.34 for ; Sat, 05 Jan 2013 15:31:29 -0800 (PST) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Stelian Iancu Cc: emacs-orgmode@gnu.org Stelian Iancu writes: > On Sat, Jan 5, 2013 at 7:51 PM, Eric Schulte 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