emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Daniel E. Doherty <ded-law@ddoherty.net>
To: Jeff Horn <jrhorn424@gmail.com>
Cc: emacs-orgmode@gnu.org, Eric Belpaire <eric.belpaire@orange.fr>
Subject: Re: error "Capture abort: (void-function org-pop-to-buffer-same-window)"
Date: Thu, 05 Jan 2012 11:20:32 -0600	[thread overview]
Message-ID: <87wr96cbhb.wl%ded-law@ddoherty.net> (raw)
In-Reply-To: <CA+K2SAzTfUGL2J4zwqWjt_8b6ct7OPAGiQMeqeip-yM3Jmj-yg@mail.gmail.com>

Jeff,

What I actually did is the following:

1. Define the following function in a file called ded-org-load.el

========================== ded-org-load.el =======================
(require 'cl)

(defun ded-add-local-org-to-load-path (dir-list)
  "Add any org directory found in DIR-LIST to the front of the load-path"
  (let ((local-dirs dir-list)
        (org-dirs '())
        (org-dir nil))
    (dolist (dir (reverse local-dirs) org-dir)
      (when (setq org-dirs
                (remove* "^org"
                         (directory-files (expand-file-name dir starter-kit-dir))
                         :test-not 'string-match))
        (setq org-dir dir))
      (when org-dirs
        ;; Sort org-dirs by date to get most recent to car position
        (setq org-dirs (sort org-dirs (lambda (x y) (string-lessp y x))))
        (setq org-dir (concat starter-kit-dir org-dir "/" (car org-dirs)))
        (add-to-list 'load-path org-dir)))))
=====================================================================

2. In the main init file, in my case ~/.emacs.d/init.el, I added the
following line to load that function before any org-babel stuff takes
place.
======================== init.el =====================================
;; remember this directory
(setq starter-kit-dir
      (file-name-directory (or load-file-name (buffer-file-name))))

;;; These lines added to Eric Schulte's starter-kit init.el
;; put package version of org to the front of the load path
(load-file (concat starter-kit-dir "src/ded-org-load.el"))
(ded-add-local-org-to-load-path '("src" "elpa" "el-get"))

;; load up the starter kit
(org-babel-load-file (expand-file-name "starter-kit.org" starter-kit-dir))

;;; init.el ends here
(put 'narrow-to-page 'disabled nil)
======================================================================

3. The effect of the function is to look for the most recent org
distribution in the "src" "elpa" and "el-get" directories, in that order
of preference and add that directory to the front of the load-path so it
shadows the version that comes distributed with Emacs 24.

Hope this helps.

Dan

At Thu, 5 Jan 2012 11:56:47 -0500,
Jeff Horn <jrhorn424@gmail.com> wrote:
> 
> This did not fix the issue for me.
> 
> 1) Install org from ELPA.
> 2) Place (package-initialize) in `init.el`.
> 2.5) Remove .elc files.
> 3) Restart emacs.
> 
> On Sat, Dec 31, 2011 at 14:33, Eric Belpaire <eric.belpaire@orange.fr> wrote:
> > Daniel,
> >>
> >> One soultion proposed elsewhere on this list is to do
> >> (package-initialize) in the primary init.el before starter-kit gets
> >> going.  That way, it picks up the elpa version of org from the git-go.
> >
> >
> > I confirm that this solution fixed my issue.
> > Thanks, Eric
> 
> 
> 
> -- 
> Jeffrey Horn
> http://www.failuretorefrain.com/jeff/

  reply	other threads:[~2012-01-05 17:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-30 11:05 error "Capture abort: (void-function org-pop-to-buffer-same-window)" Eric Belpaire
2011-12-31 15:35 ` Daniel E. Doherty
2011-12-31 15:37 ` Daniel E. Doherty
2011-12-31 19:33   ` Eric Belpaire
2012-01-05 16:56     ` Jeff Horn
2012-01-05 17:20       ` Daniel E. Doherty [this message]
2012-01-05 21:56         ` Jeff Horn

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=87wr96cbhb.wl%ded-law@ddoherty.net \
    --to=ded-law@ddoherty.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=eric.belpaire@orange.fr \
    --cc=jrhorn424@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).