emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: org-collect-keywords is void when config uses org-babel-load-file [9.3.6 (release_9.3.6-683-g3b2de4 @ /home/eric/.emacs.d/straight/build/org/)]
@ 2020-06-01  1:45 Eric Berquist
  2020-06-03  4:03 ` Kyle Meyer
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Berquist @ 2020-06-01  1:45 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 9178 bytes --]

When loading a configuration using `(org-babel-load-file (concat
user-emacs-directory "config.org"))` in `init.el`, this message is reported:

    org-export--get-inbuffer-options: Symbol’s function definition is
    void: org-collect-keywords

and export doesn't work.

The last commit that didn't have this issue for me was
3c4cb7b296c78aafb0d6302a4075f1f1fa1c7e1c.

An example `config.el` follows (or stick it in an Elisp source block in
`config.org`):

    (setq straight-use-package-by-default t)
    (defvar bootstrap-version)
    (let ((bootstrap-file
           (expand-file-name "straight/repos/straight.el/bootstrap.el"
user-emacs-directory))
          (bootstrap-version 5))
      (unless (file-exists-p bootstrap-file)
        (with-current-buffer
            (url-retrieve-synchronously
             "
https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
             'silent 'inhibit-cookies)
          (goto-char (point-max))
          (eval-print-last-sexp)))
      (load bootstrap-file nil 'nomessage))

    (setq use-package-always-defer t
          use-package-verbose t)
    (straight-use-package 'use-package)

    (bind-key (kbd "C-x C-b") 'switch-to-buffer)
    (bind-key (kbd "C-x b") 'ibuffer)
    (bind-key (kbd "C-c b") 'switch-to-previous-buffer)

    (add-to-list 'default-frame-alist '(font . "Panic Sans-11"))

    (use-package org)

Emacs  : GNU Emacs 27.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.20, cairo version 1.17.3)
 of 2020-05-24
Package: Org mode version 9.3.6 (release_9.3.6-683-g3b2de4 @
/home/eric/.emacs.d/straight/build/org/)

current state:
==============
(setq
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-latex-listings 'minted
 org-link-shell-confirm-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-html-format-inlinetask-function
'org-html-format-inlinetask-default-function
 org-latex-default-packages-alist '(("AUTO" "inputenc" t ("pdflatex"))
("T1" "fontenc" t ("pdflatex")) ("" "graphicx" t) ("" "grffile" t)
                                    ("" "longtable" nil) ("" "wrapfig" nil)
("" "rotating" nil) ("normalem" "ulem" t) ("" "amsmath" t)
                                    ("" "textcomp" t) ("" "amssymb" t) (""
"capt-of" nil) ("colorlinks=true" "hyperref" nil)
                                    ("" "braket" t) ("final" "microtype"
nil) ("usenames,dvipsnames,svgnames,table" "xcolor" nil))
 org-edit-src-content-indentation 0
 org-src-tab-acts-natively t
 org-link-descriptive nil
 org-latex-pdf-process '("latexmk -pdf -xelatex -shell-escape
-output-directory=%o %f")
 org-agenda-files '("~/Dropbox/Notes" "~/Dropbox/research/lab_notebook")
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-startup-folded nil
 org-mode-hook '(org-mode-export-hook #[0 "\300\301\302\303\304$\207"
[add-hook change-major-mode-hook org-show-all append local] 5]
                 #[0 "\300\301\302\303\304$\207" [add-hook
change-major-mode-hook org-babel-show-result-all append local] 5]
                 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-export-with-smart-quotes t
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-preview-latex-default-process 'imagemagick
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-bibtex-headline-format-function #[257 "\300 \236A\207" [:title] 3
"\n\n(fn ENTRY)"]
 org-adapt-indentation nil
 org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"]
 org-babel-pre-tangle-hook '(save-buffer)
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
 org-log-done 'time
 org-export-backends '(ascii html icalendar latex md)
 org-ascii-format-drawer-function #[771 " \207" [] 4 "\n\n(fn NAME CONTENTS
WIDTH)"]
 org-agenda-loop-over-headlines-in-active-region nil
 org-occur-hook '(org-first-headline-recenter)
 org-export-dispatch-use-expert-ui t
 org-cycle-hook '(org-cycle-hide-archived-subtrees
org-cycle-show-empty-lines org-optimize-window-after-visibility-change)
 org-speed-command-hook '(org-speed-command-activate
org-babel-speed-command-activate)
 org-clock-persist-file "/home/eric/.emacs.d/var/org/clock-persist.el"
 org-closed-keep-when-no-todo t
 org-html-with-latex '(mathjax)
 org-babel-tangle-lang-exts '(("python" . "py") ("emacs-lisp" . "el")
("elisp" . "el"))
 org-publish-timestamp-directory "/home/eric/.emacs.d/var/org/timestamps/"
 org-export-before-parsing-hook '(org-attach-expand-links)
 org-id-locations-file "/home/eric/.emacs.d/var/org/id-locations.el"
 org-confirm-shell-link-function 'yes-or-no-p
 org-link-parameters '(("attachment" :follow org-attach-follow :complete
org-attach-complete-link) ("id" :follow org-id-open)
                       ("eww" :follow org-eww-open :store
org-eww-store-link) ("rmail" :follow org-rmail-open :store
org-rmail-store-link)
                       ("mhe" :follow org-mhe-open :store
org-mhe-store-link)
                       ("irc" :follow org-irc-visit :store
org-irc-store-link :export org-irc-export)
                       ("info" :follow org-info-open :export
org-info-export :store org-info-store-link)
                       ("gnus" :follow org-gnus-open :store
org-gnus-store-link)
                       ("docview" :follow org-docview-open :export
org-docview-export :store org-docview-store-link)
                       ("bibtex" :follow org-bibtex-open :store
org-bibtex-store-link)
                       ("bbdb" :follow org-bbdb-open :export
org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-store-link)
                       ("w3m" :store org-w3m-store-link) ("file+sys")
("file+emacs") ("shell" :follow org-link--open-shell)
                       ("news" :follow #[257 "\301\300\302 Q!\207" ["news"
browse-url ":"] 5 "\n\n(fn URL)"])
                       ("mailto" :follow #[257 "\301\300\302 Q!\207"
["mailto" browse-url ":"] 5 "\n\n(fn URL)"])
                       ("https" :follow #[257 "\301\300\302 Q!\207"
["https" browse-url ":"] 5 "\n\n(fn URL)"])
                       ("http" :follow #[257 "\301\300\302 Q!\207" ["http"
browse-url ":"] 5 "\n\n(fn URL)"])
                       ("ftp" :follow #[257 "\301\300\302 Q!\207" ["ftp"
browse-url ":"] 5 "\n\n(fn URL)"])
                       ("help" :follow org-link--open-help) ("file"
:complete org-link-complete-file)
                       ("elisp" :follow org-link--open-elisp) ("doi"
:follow org-link--open-doi))
 org-latex-format-headline-function
'org-latex-format-headline-default-function
 org-link-elisp-confirm-function 'yes-or-no-p
 org-latex-format-inlinetask-function
'org-latex-format-inlinetask-default-function
 org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 org-latex-packages-alist '(("" "minted" nil))
 org-image-actual-width nil
 org-startup-truncated nil
 org-latex-classes '(("refsheet" "\\documentclass{refsheet}"
("\\section{%s}" . "\\section*{%s}")
                      ("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
                      ("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
                     ("article" "\\documentclass[11pt]{article}"
("\\section{%s}" . "\\section*{%s}")
                      ("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
                      ("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
                     ("report" "\\documentclass[11pt]{report}"
("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}")
                      ("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
                      ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
                     ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" .
"\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}")
                      ("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
                      ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
                     )
 org-html-format-headline-function
'org-html-format-headline-default-function
 org-latex-hyperref-template "\\hypersetup{\n pdfauthor={%a},\n
pdftitle={%t},\n pdfkeywords={%k},\n pdfsubject={%d},\n pdfcreator={%c},\n
pdflang={%L},\n colorlinks=true,\n linkcolor=MidnightBlue,\n
citecolor=MidnightBlue,\n urlcolor=MidnightBlue}\n"
 org-confirm-babel-evaluate nil
 org-directory "~/Dropbox/Notes"
 org-link-from-user-regexp "\\<eric@osmium\\>\\|\\<Eric Berquist\\>"
 org-latex-inline-image-rules '(("file" .
"\\.\\(pdf\\|jpeg\\|jpg\\|png\\|ps\\|eps\\|tikz\\|pgf\\|svg\\|gif\\)\\'"))
 org-list-allow-alphabetical t
 org-latex-minted-options '(("framesep" "2mm"))
 )

[-- Attachment #2: Type: text/html, Size: 11960 bytes --]

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

* Re: Bug: org-collect-keywords is void when config uses org-babel-load-file [9.3.6 (release_9.3.6-683-g3b2de4 @ /home/eric/.emacs.d/straight/build/org/)]
  2020-06-01  1:45 Bug: org-collect-keywords is void when config uses org-babel-load-file [9.3.6 (release_9.3.6-683-g3b2de4 @ /home/eric/.emacs.d/straight/build/org/)] Eric Berquist
@ 2020-06-03  4:03 ` Kyle Meyer
  0 siblings, 0 replies; 2+ messages in thread
From: Kyle Meyer @ 2020-06-03  4:03 UTC (permalink / raw)
  To: Eric Berquist, emacs-orgmode

Eric Berquist writes:

> When loading a configuration using `(org-babel-load-file (concat
> user-emacs-directory "config.org"))` in `init.el`, this message is reported:
>
>     org-export--get-inbuffer-options: Symbol’s function definition is
>     void: org-collect-keywords
>
> and export doesn't work.

Hmm, org-export--get-inbuffer-options is defined in ox.el, and
org-collect-keywords in org.el.  Even though ox.el doesn't load org.el
explicitly, it pulls it in through other things (org-element, at least),
so it should be defined.  But based on the org-babel-load-file
instructions you're giving, an older org.el is already loaded, and
presumably that is what is leading to the error.

I'd assume that in general using the built-in Org to load a newer Org is
going to be susceptible to these sorts of issues (along the lines of
what's described at <https://orgmode.org/worg/org-faq.html#mixed-install>).


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

end of thread, other threads:[~2020-06-03  4:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-01  1:45 Bug: org-collect-keywords is void when config uses org-babel-load-file [9.3.6 (release_9.3.6-683-g3b2de4 @ /home/eric/.emacs.d/straight/build/org/)] Eric Berquist
2020-06-03  4:03 ` Kyle Meyer

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).