From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Horn Subject: Re: error "Capture abort: (void-function org-pop-to-buffer-same-window)" Date: Thu, 5 Jan 2012 16:56:47 -0500 Message-ID: References: <4EFD9B13.30604@orange.fr> <87mxa821nb.wl%ded-law@ddoherty.net> <4EFF6382.9040109@orange.fr> <87wr96cbhb.wl%ded-law@ddoherty.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RivJ8-0007R2-Pp for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 16:57:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RivJ7-00046V-I6 for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 16:57:10 -0500 Received: from mail-tul01m020-f169.google.com ([209.85.214.169]:57873) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RivJ7-00046R-Dh for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 16:57:09 -0500 Received: by obcwo8 with SMTP id wo8so1394511obc.0 for ; Thu, 05 Jan 2012 13:57:08 -0800 (PST) In-Reply-To: <87wr96cbhb.wl%ded-law@ddoherty.net> 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 , Eric Belpaire , emacs-orgmode@gnu.org 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 wrot= e: > 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) > =A0"Add any org directory found in DIR-LIST to the front of the load-path= " > =A0(let ((local-dirs dir-list) > =A0 =A0 =A0 =A0(org-dirs '()) > =A0 =A0 =A0 =A0(org-dir nil)) > =A0 =A0(dolist (dir (reverse local-dirs) org-dir) > =A0 =A0 =A0(when (setq org-dirs > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(remove* "^org" > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (directory-files (expand-= file-name dir starter-kit-dir)) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 :test-not 'string-match)) > =A0 =A0 =A0 =A0(setq org-dir dir)) > =A0 =A0 =A0(when org-dirs > =A0 =A0 =A0 =A0;; Sort org-dirs by date to get most recent to car positio= n > =A0 =A0 =A0 =A0(setq org-dirs (sort org-dirs (lambda (x y) (string-lessp = y x)))) > =A0 =A0 =A0 =A0(setq org-dir (concat starter-kit-dir org-dir "/" (car org= -dirs))) > =A0 =A0 =A0 =A0(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 = init.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 > =A0 =A0 =A0(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 --=20 Jeffrey Horn http://www.failuretorefrain.com/jeff/