[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] error "Capture abort: (void-function org-pop-to-buffer-same-wind
Daniel E . Doherty
Re: [O] error "Capture abort: (void-function org-pop-to-buffer-same-window)"
Thu, 05 Jan 2012 11:20:32 -0600
Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/24.0.92 (x86_64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO)
What I actually did is the following:
1. Define the following function in a file called ded-org-load.el
========================== ded-org-load.el =======================
(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)
(dolist (dir (reverse local-dirs) org-dir)
(when (setq org-dirs
(directory-files (expand-file-name dir
(setq org-dir dir))
;; 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
======================== init.el =====================================
;; remember this directory
(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.
At Thu, 5 Jan 2012 11:56:47 -0500,
Jeff Horn <address@hidden> 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 <address@hidden> 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