emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jeff Horn <jrhorn424@gmail.com>
To: Jeff Horn <jrhorn424@gmail.com>,
	Eric Belpaire <eric.belpaire@orange.fr>,
	emacs-orgmode@gnu.org
Subject: Re: error "Capture abort: (void-function org-pop-to-buffer-same-window)"
Date: Thu, 5 Jan 2012 16:56:47 -0500	[thread overview]
Message-ID: <CA+K2SAzjcaKMUEuLWv0wnQJF4LA5EK=f1j0he6indEfYei6_fg@mail.gmail.com> (raw)
In-Reply-To: <87wr96cbhb.wl%ded-law@ddoherty.net>

Thanks, Dan. This fits my preferences for loading org exactly. One
small hitch, however. No errors were produced during startup, but
trying to open the agenda (C-a a) produces the following error:

Debugger entered--Lisp error: (void-function org-babel-result-hide-spec)

It's probably unrelated, but since your solution is the only change
I've made I'm not sure what's triggering it.

On Thu, Jan 5, 2012 at 12:20, Daniel E. Doherty <ded-law@ddoherty.net> wrote:
> 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



-- 
Jeffrey Horn
http://www.failuretorefrain.com/jeff/

      reply	other threads:[~2012-01-05 21:57 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
2012-01-05 21:56         ` Jeff Horn [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

  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='CA+K2SAzjcaKMUEuLWv0wnQJF4LA5EK=f1j0he6indEfYei6_fg@mail.gmail.com' \
    --to=jrhorn424@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=eric.belpaire@orange.fr \
    /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).