From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel E. Doherty Subject: Re: error "Capture abort: (void-function org-pop-to-buffer-same-window)" Date: Thu, 05 Jan 2012 11:20:32 -0600 Message-ID: <87wr96cbhb.wl%ded-law@ddoherty.net> References: <4EFD9B13.30604@orange.fr> <87mxa821nb.wl%ded-law@ddoherty.net> <4EFF6382.9040109@orange.fr> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51726) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RiqzZ-0005tj-JK for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 12:20:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RiqzY-0000kT-6A for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 12:20:41 -0500 Received: from mail-gx0-f169.google.com ([209.85.161.169]:54973) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RiqzY-0000kO-3f for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 12:20:40 -0500 Received: by ggni2 with SMTP id i2so355410ggn.0 for ; Thu, 05 Jan 2012 09:20:38 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jeff Horn Cc: emacs-orgmode@gnu.org, Eric Belpaire Jeff, What I actually did is the following: 1. Define the following function in a file called ded-org-load.el =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D ded-org-load.el =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D (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))))) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D in= it.el =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ;; 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) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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 wrote: >=20 > This did not fix the issue for me. >=20 > 1) Install org from ELPA. > 2) Place (package-initialize) in `init.el`. > 2.5) Remove .elc files. > 3) Restart emacs. >=20 > On Sat, Dec 31, 2011 at 14:33, Eric Belpaire wr= ote: > > Daniel, > >> > >> One soultion proposed elsewhere on this list is to do > >> (package-initialize) in the primary init.el before starter-kit gets > >> going. =C2=A0That way, it picks up the elpa version of org from the gi= t-go. > > > > > > I confirm that this solution fixed my issue. > > Thanks, Eric >=20 >=20 >=20 > --=20 > Jeffrey Horn > http://www.failuretorefrain.com/jeff/