Re: [O] error Capture abort: (void-function org-pop-to-buffer-same-window)

2012-01-05 Thread Jeff Horn
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.belpa...@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/



Re: [O] error Capture abort: (void-function org-pop-to-buffer-same-window)

2012-01-05 Thread Daniel E . Doherty
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 jrhorn...@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.belpa...@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/



Re: [O] error Capture abort: (void-function org-pop-to-buffer-same-window)

2012-01-05 Thread Jeff Horn
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-...@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/



Re: [O] error Capture abort: (void-function org-pop-to-buffer-same-window)

2011-12-31 Thread Daniel E . Doherty
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.belpa...@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
 
 
 



Re: [O] error Capture abort: (void-function org-pop-to-buffer-same-window)

2011-12-31 Thread Daniel E . Doherty
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.belpa...@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
 
 



Re: [O] error Capture abort: (void-function org-pop-to-buffer-same-window)

2011-12-31 Thread Eric Belpaire
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 



[O] error Capture abort: (void-function org-pop-to-buffer-same-window)

2011-12-30 Thread Eric Belpaire

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