all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Problem with org-clock-persistence-insinuate in org-plus-contrib
@ 2012-10-25 21:31 T.F. Torrey
  2012-10-26  6:29 ` Achim Gratz
  0 siblings, 1 reply; 3+ messages in thread
From: T.F. Torrey @ 2012-10-25 21:31 UTC (permalink / raw)
  To: emacs-orgmode

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-directory (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-directory (expand-file-name "../contrib" (file-name-directory (org-find-library-dir "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-name "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-exp-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 org-src] 2)
  require(org-exp)
  require(org-clock)
  org-clock-persistence-insinuate()
  eval-buffer(#<buffer  *load*-724658> nil "/home/tftorrey/.emacs.d/emacs-tftorrey.el" nil t)  ; Reading at buffer position 42296
  load-with-code-conversion("/home/tftorrey/.emacs.d/emacs-tftorrey.el" "/home/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(#<buffer  *load*> 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/tftorrey/.emacs.d/init.el" t t)
  load("/home/tftorrey/.emacs.d/init" t t)
  #[0 "\b\205\262	\306=\203\0\307\b\310Q\202;	\311=\204\0\307\b\312Q\202;\313\307\314\315#\203*\316\202;\313\307\314\317#\203:\320\nB\321\202;\316\322\323\322\211#\210\v\322=\203a\324\325\326\307\b\327Q!\"\323\322\211#\210\v\322=\203`\x01\210\v\203\243\330\v!\331\232\203\243\332\v!\211\333P\334!\203}\211\202\210\334!\203\207\x01\202\210\314\262\x01\203\241\335\v\"\203\237\336\337\v#\210\340\341!\210\x13\266\f?\205\260\314\323\342\322\211#)\262\207" [init-file-user system-type delayed-warnings-list user-init-file inhibit-default-init inhibit-startup-screen ms-dos "~" "/_emacs" windows-nt "/.emacs" directory-files nil "^\\.emacs\\(\\.elc?\\)?$" "~/.emacs" "^_emacs\\(\\.elc?\\)?$" (initialization "`_emacs' init file is deprecated, please use `.emacs'") "~/_emacs" t load expand-file-name "init" file-name-as-directory "/.emacs.d" file-name-extension "elc" file-name-sans-extension ".el" 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 buffer-file-name)))
  (file-name-as-directory (expand-file-name "../contrib" (file-name-directory (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-directory (expand-file-name "../contrib" (file-name-directory (or load-file-name buffer-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-name "scripts" (file-name-as-directory (expand-file-name "../contrib" (file-name-directory (or load-file-name buffer-file-name))))))))
  #[(v) "\302\b!\205;\303\304\305\b!\"\205;\bJ\203\0\303\306\305\b!\"\2046\b\307N\205;\b\310N\205;\bJ\311\b\310N@!\232?\205;\b	B\211\207" [v list boundp string-match "\\`\\(org-\\|outline-\\)" symbol-name "\\(-hook\\|-function\\)\\'" custom-type standard-value eval] 4](org-ditaa-jar-path)
  mapatoms(#[(v) "\302\b!\205;\303\304\305\b!\"\205;\bJ\203\0\303\306\305\b!\"\2046\b\307N\205;\b\310N\205;\bJ\311\b\310N@!\232?\205;\b	B\211\207" [v list boundp string-match "\\`\\(org-\\|outline-\\)" symbol-name "\\(-hook\\|-function\\)\\'" 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
-- 
T.F. Torrey

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problem with org-clock-persistence-insinuate in org-plus-contrib
  2012-10-25 21:31 Problem with org-clock-persistence-insinuate in org-plus-contrib T.F. Torrey
@ 2012-10-26  6:29 ` Achim Gratz
  0 siblings, 0 replies; 3+ messages in thread
From: Achim Gratz @ 2012-10-26  6:29 UTC (permalink / raw)
  To: emacs-orgmode

T.F. Torrey writes:
> 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.

Actually, you will need to customize that variable if you want to use
ditaa.  But the error is that ob-ditaa is missing a (require
'org-compat), I've pushed a fix for that.  But you may still do your
own customizations for Org too early, you should defer them to after
package-initialize has run.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problem with org-clock-persistence-insinuate in org-plus-contrib
       [not found] <mailman.110.1351267221.9364.emacs-orgmode@gnu.org>
@ 2012-10-26 19:10 ` T.F. Torrey
  0 siblings, 0 replies; 3+ messages in thread
From: T.F. Torrey @ 2012-10-26 19:10 UTC (permalink / raw)
  To: emacs-orgmode

That's curious.

Achim Gratz writes:

> Actually, you will need to customize that variable if you want to use
> ditaa.  But the error is that ob-ditaa is missing a (require
> 'org-compat), I've pushed a fix for that.  But you may still do your
> own customizations for Org too early, you should defer them to after
> package-initialize has run.

First, thanks so much for your help.  My whole life is in Emacs and
Org.

My initial report should be amended, because after a few cycles,
the error came back even with org-clock-persistence-insinuate commented
out.  I did not run and save a backtrace of that.

I don't use ditaa at all, and I have no mention of it in my init
file.  Something else must have been pretty far off the rails to be
calling it.

Finally, the only things before package-initialize in my init file were
some general Emacs interface settings (tool bar off, some others, I can
post a list if anyone is interested).  Nothing org related was before
it.  Nonetheless, when I move package-initialize to be the first thing
in the init file, the problem goes away.

Thanks again for your help.

Best regards,
Terry
-- 
T.F. Torrey

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-10-26 19:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-25 21:31 Problem with org-clock-persistence-insinuate in org-plus-contrib T.F. Torrey
2012-10-26  6:29 ` Achim Gratz
     [not found] <mailman.110.1351267221.9364.emacs-orgmode@gnu.org>
2012-10-26 19:10 ` T.F. Torrey

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.