From mboxrd@z Thu Jan 1 00:00:00 1970 From: tftorrey@tftorrey.com (T.F. Torrey) Subject: Problem with org-clock-persistence-insinuate in org-plus-contrib Date: Thu, 25 Oct 2012 14:31:26 -0700 Message-ID: <871ugm2q8h.fsf@lapcat.tftorrey.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50996) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRV9t-000350-QD for emacs-orgmode@gnu.org; Thu, 25 Oct 2012 17:40:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TRV9r-0004nz-Dj for emacs-orgmode@gnu.org; Thu, 25 Oct 2012 17:40:09 -0400 Received: from slow3-v.mail.gandi.net ([217.70.178.89]:33040) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRV9r-0004jJ-3T for emacs-orgmode@gnu.org; Thu, 25 Oct 2012 17:40:07 -0400 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by slow3-v.mail.gandi.net (Postfix) with ESMTP id 1370F6FFAE for ; Thu, 25 Oct 2012 23:31:43 +0200 (CEST) Received: from mfilter14-d.gandi.net (mfilter14-d.gandi.net [217.70.178.142]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id D6DF117207E for ; Thu, 25 Oct 2012 23:31:40 +0200 (CEST) Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by mfilter14-d.gandi.net (mfilter14-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id 3cssW1RH95mT for ; Thu, 25 Oct 2012 23:31:39 +0200 (CEST) Received: from lapcat.tftorrey.com.tftorrey.com (fat-69-171-172-164.evdo.leapwireless.net [69.171.172.164]) (Authenticated sender: tftorrey@tftorrey.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 8AC59172097 for ; Thu, 25 Oct 2012 23:31:37 +0200 (CEST) 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: emacs-orgmode@gnu.org Hello, I am trying to use the latest version of the org-plus-contrib from the org Elpa repository (and using emacs-snapshot in Ubuntu 12-04), but I get a weird error. My first clue was this error: #+BEGIN_QUOTE Warning (initialization): An error occurred while loading `/home/tftorrey/.= emacs.d/init.el': Symbol's function definition is void: org-find-library-dir To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the `--debug-init' option to view a complete error backtrace. #+END_QUOTE Starting Emacs with emacs --debug-init produces this backtrace: #+BEGIN_QUOTE Debugger entered--Lisp error: (void-function org-find-library-dir) (org-find-library-dir "org") (file-name-directory (org-find-library-dir "org")) (expand-file-name "../contrib" (file-name-directory (org-find-library-dir= "org"))) (file-name-as-directory (expand-file-name "../contrib" (file-name-directo= ry (org-find-library-dir "org")))) (expand-file-name "scripts" (file-name-as-directory (expand-file-name "..= /contrib" (file-name-directory (org-find-library-dir "org"))))) (file-name-as-directory (expand-file-name "scripts" (file-name-as-directo= ry (expand-file-name "../contrib" (file-name-directory (org-find-library-di= r "org")))))) (expand-file-name "ditaa.jar" (file-name-as-directory (expand-file-name "= scripts" (file-name-as-directory (expand-file-name "../contrib" (file-name-= directory (org-find-library-dir "org"))))))) eval((expand-file-name "ditaa.jar" (file-name-as-directory (expand-file-n= ame "scripts" (file-name-as-directory (expand-file-name "../contrib" (file-= name-directory (org-find-library-dir "org")))))))) custom-initialize-reset(org-ditaa-jar-path (expand-file-name "ditaa.jar" = (file-name-as-directory (expand-file-name "scripts" (file-name-as-directory= (expand-file-name "../contrib" (file-name-directory (org-find-library-dir = "org")))))))) custom-declare-variable(org-ditaa-jar-path (expand-file-name "ditaa.jar" = (file-name-as-directory (expand-file-name "scripts" (file-name-as-directory= (expand-file-name "../contrib" (file-name-directory (org-find-library-dir = "org"))))))) ("/home/tftorrey/.emacs.d/elpa/org-plus-contrib-20121022/org-e= xp-blocks.elc" . 5960) :group org-babel :type string) require(org-exp-blocks) byte-code("\300\301!\210\300\302!\210\300\303!\210\300\304!\210\300\305!\= 210\300\306!\207" [require org org-macs org-agenda org-exp-blocks ob-exp or= g-src] 2) require(org-exp) require(org-clock) org-clock-persistence-insinuate() eval-buffer(# nil "/home/tftorrey/.emacs.d/emacs-t= ftorrey.el" nil t) ; Reading at buffer position 42296 load-with-code-conversion("/home/tftorrey/.emacs.d/emacs-tftorrey.el" "/h= ome/tftorrey/.emacs.d/emacs-tftorrey.el" nil nil) load("/home/tftorrey/.emacs.d/emacs-tftorrey.el" nil nil t) load-file("/home/tftorrey/.emacs.d/emacs-tftorrey.el") org-babel-load-file("/home/tftorrey/.emacs.d/emacs-tftorrey.org") eval-buffer(# nil "/home/tftorrey/.emacs.d/init.el" nil t= ) ; Reading at buffer position 379 load-with-code-conversion("/home/tftorrey/.emacs.d/init.el" "/home/tftorr= ey/.emacs.d/init.el" t t) load("/home/tftorrey/.emacs.d/init" t t) #[0 "\205\262 \306=3D\203=00\307\310Q\202; \311=3D\204=00\307\312Q\202= ;\313\307\314\315#\203*\316\202;\313\307\314\317#\203:\320\nB\321\202;\316\= 322\323\322\211#\210=0B\322=3D\203a\324\325\326\307\327Q!\"\323\322\211#\2= 10=0B\322=3D\203`=01\210=0B\203\243\330=0B!\331\232\203\243\332=0B!\211\333= P\334!\203}\211\202\210\334!\203\207=01\202\210\314\262=01\203\241\335=0B\"= \203\237\336\337=0B#\210\340\341!\210=13\266\f?\205\260\314\323\342\322\211= #)\262\207" [init-file-user system-type delayed-warnings-list user-init-fil= e inhibit-default-init inhibit-startup-screen ms-dos "~" "/_emacs" windows-= nt "/.emacs" directory-files nil "^\\.emacs\\(\\.elc?\\)?$" "~/.emacs" "^_e= macs\\(\\.elc?\\)?$" (initialization "`_emacs' init file is deprecated, ple= ase use `.emacs'") "~/_emacs" t load expand-file-name "init" file-name-as-d= irectory "/.emacs.d" file-name-extension "elc" file-name-sans-extension ".e= l" file-exists-p file-newer-than-file-p message "Warning: %s is newer than = %s" sit-for 1 "default"] 7 "\n\n(fn)"]() command-line() normal-top-level() #+END_QUOTE If I comment out (org-clock-persistence-insinuate) in my init files, Emacs starts without error. What's extra weird is that if I then uncomment (org-clock-persistence-insinuate) and restart Emacs, it starts without error -- once. After that, it produces the original error again. I don't understand that backtrace very well, but it looks like something is hardcoded to look in a contrib subdirectory for the contrib files and can't find them when they are moved to the root of the package directory. Finally, I haven't taken the time to debug it fully, but trying to prepare this bug report using the org-plus-contrib package also failed, with this error that looks related: #+BEGIN_QUOTE Calling org-submit-bug-report Debugger entered--Lisp error: (wrong-type-argument stringp nil) file-name-directory(nil) (expand-file-name "../contrib" (file-name-directory (or load-file-name bu= ffer-file-name))) (file-name-as-directory (expand-file-name "../contrib" (file-name-directo= ry (or load-file-name buffer-file-name)))) (expand-file-name "scripts" (file-name-as-directory (expand-file-name "..= /contrib" (file-name-directory (or load-file-name buffer-file-name))))) (file-name-as-directory (expand-file-name "scripts" (file-name-as-directo= ry (expand-file-name "../contrib" (file-name-directory (or load-file-name b= uffer-file-name)))))) (expand-file-name "ditaa.jar" (file-name-as-directory (expand-file-name "= scripts" (file-name-as-directory (expand-file-name "../contrib" (file-name-= directory (or load-file-name buffer-file-name))))))) eval((expand-file-name "ditaa.jar" (file-name-as-directory (expand-file-n= ame "scripts" (file-name-as-directory (expand-file-name "../contrib" (file-= name-directory (or load-file-name buffer-file-name)))))))) #[(v) "\302!\205;\303\304\305!\"\205;J\203=00\303\306\305!\"\2046\30= 7N\205;\310N\205;J\311\310N@!\232?\205; B\211\207" [v list boundp strin= g-match "\\`\\(org-\\|outline-\\)" symbol-name "\\(-hook\\|-function\\)\\'"= custom-type standard-value eval] 4](org-ditaa-jar-path) mapatoms(#[(v) "\302!\205;\303\304\305!\"\205;J\203=00\303\306\305!\"= \2046\307N\205;\310N\205;J\311\310N@!\232?\205; B\211\207" [v list bou= ndp string-match "\\`\\(org-\\|outline-\\)" symbol-name "\\(-hook\\|-functi= on\\)\\'" custom-type standard-value eval] 4]) org-submit-bug-report() call-interactively(org-submit-bug-report record nil) command-execute(org-submit-bug-report record) execute-extended-command(nil "org-submit-bug-report") call-interactively(execute-extended-command nil nil) #+END_QUOTE Best regards, Terry --=20 T.F. Torrey