* error "Capture abort: (void-function org-pop-to-buffer-same-window)"
@ 2011-12-30 11:05 Eric Belpaire
2011-12-31 15:35 ` Daniel E. Doherty
2011-12-31 15:37 ` Daniel E. Doherty
0 siblings, 2 replies; 7+ messages in thread
From: Eric Belpaire @ 2011-12-30 11:05 UTC (permalink / raw)
To: emacs-orgmode
Hello
I'm trying to fix Lisp error: (error "Capture abort: (void-function
org-pop-to-buffer-same-window)").
I'm using GNU Emacs 24.0.91.1 (i386-mingw-nt5.1.2600) of 2011-11-08 on
MARVIN
started with the Emacs starter kit and using org-20111229.
I've done the following analysis:
- function org-pop-to-buffer-same-window found in org-20111229/org-compat.el
- autoload "org-compat.el" in
~/.emacs.d/elpa/org-20111229/org-autoloads.el doesn't work
- (require 'org-autoloads) --> doesn't work
- verify load-path --> found "~/.emacs.d/elpa/org-20111229" before
"c:/Usr/emacs/lisp/org"
What am I missing?
Can someone help me?
Thanks,
Eric
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: error "Capture abort: (void-function org-pop-to-buffer-same-window)"
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
1 sibling, 0 replies; 7+ messages in thread
From: Daniel E. Doherty @ 2011-12-31 15:35 UTC (permalink / raw)
To: Eric Belpaire; +Cc: emacs-orgmode
Eric,
I've seen this too. The problem is that the site-file version of org is
loaded by starter-kit, then you load a local version in your init file.
It looks like the local version is at the front of your load-path, but
that's only after your init file runs.
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.
At Fri, 30 Dec 2011 12:05:55 +0100,
Eric Belpaire <eric.belpaire@orange.fr> wrote:
>
> Hello
>
> I'm trying to fix Lisp error: (error "Capture abort: (void-function
> org-pop-to-buffer-same-window)").
>
> I'm using GNU Emacs 24.0.91.1 (i386-mingw-nt5.1.2600) of 2011-11-08 on
> MARVIN
> started with the Emacs starter kit and using org-20111229.
>
> I've done the following analysis:
> - function org-pop-to-buffer-same-window found in org-20111229/org-compat.el
> - autoload "org-compat.el" in
> ~/.emacs.d/elpa/org-20111229/org-autoloads.el doesn't work
> - (require 'org-autoloads) --> doesn't work
> - verify load-path --> found "~/.emacs.d/elpa/org-20111229" before
> "c:/Usr/emacs/lisp/org"
>
> What am I missing?
> Can someone help me?
>
> Thanks,
> Eric
>
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: error "Capture abort: (void-function org-pop-to-buffer-same-window)"
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
1 sibling, 1 reply; 7+ messages in thread
From: Daniel E. Doherty @ 2011-12-31 15:37 UTC (permalink / raw)
To: Eric Belpaire; +Cc: emacs-orgmode
Eric,
I've seen this too. The problem is that the site-file version of org is
loaded by starter-kit, then you load a local version in your init file.
It looks like the local version is at the front of your load-path, but
that's only after your init file runs.
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.
At Fri, 30 Dec 2011 12:05:55 +0100,
Eric Belpaire <eric.belpaire@orange.fr> wrote:
>
> Hello
>
> I'm trying to fix Lisp error: (error "Capture abort: (void-function
> org-pop-to-buffer-same-window)").
>
> I'm using GNU Emacs 24.0.91.1 (i386-mingw-nt5.1.2600) of 2011-11-08 on
> MARVIN
> started with the Emacs starter kit and using org-20111229.
>
> I've done the following analysis:
> - function org-pop-to-buffer-same-window found in org-20111229/org-compat.el
> - autoload "org-compat.el" in
> ~/.emacs.d/elpa/org-20111229/org-autoloads.el doesn't work
> - (require 'org-autoloads) --> doesn't work
> - verify load-path --> found "~/.emacs.d/elpa/org-20111229" before
> "c:/Usr/emacs/lisp/org"
>
> What am I missing?
> Can someone help me?
>
> Thanks,
> Eric
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: error "Capture abort: (void-function org-pop-to-buffer-same-window)"
2011-12-31 15:37 ` Daniel E. Doherty
@ 2011-12-31 19:33 ` Eric Belpaire
2012-01-05 16:56 ` Jeff Horn
0 siblings, 1 reply; 7+ messages in thread
From: Eric Belpaire @ 2011-12-31 19:33 UTC (permalink / raw)
To: Daniel E. Doherty; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: error "Capture abort: (void-function org-pop-to-buffer-same-window)"
2011-12-31 19:33 ` Eric Belpaire
@ 2012-01-05 16:56 ` Jeff Horn
2012-01-05 17:20 ` Daniel E. Doherty
0 siblings, 1 reply; 7+ messages in thread
From: Jeff Horn @ 2012-01-05 16:56 UTC (permalink / raw)
To: Eric Belpaire; +Cc: Daniel E. Doherty, emacs-orgmode
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/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: error "Capture abort: (void-function org-pop-to-buffer-same-window)"
2012-01-05 16:56 ` Jeff Horn
@ 2012-01-05 17:20 ` Daniel E. Doherty
2012-01-05 21:56 ` Jeff Horn
0 siblings, 1 reply; 7+ messages in thread
From: Daniel E. Doherty @ 2012-01-05 17:20 UTC (permalink / raw)
To: Jeff Horn; +Cc: emacs-orgmode, Eric Belpaire
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/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: error "Capture abort: (void-function org-pop-to-buffer-same-window)"
2012-01-05 17:20 ` Daniel E. Doherty
@ 2012-01-05 21:56 ` Jeff Horn
0 siblings, 0 replies; 7+ messages in thread
From: Jeff Horn @ 2012-01-05 21:56 UTC (permalink / raw)
To: Jeff Horn, Eric Belpaire, emacs-orgmode
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/
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-01-05 21:57 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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).