the-ted / org-mind-map

This is an emacs package that creates graphviz directed graphs.
GNU General Public License v3.0
542 stars 53 forks source link

Symbol’s function definition is void: org-export-define-derived-backend #24

Open dotemacs opened 6 years ago

dotemacs commented 6 years ago

Hello @theodorewiles

thanks for this package.

I just tried it and got an error:

byte-code: Symbol’s function definition is void: org-export-define-derived-backend

I copied the example org file from the README and ran M-x org-mind-map-write on the file, only to get the above error.

My setup:

OS: macOS 10.13.3 M-x version: GNU Emacs 25.3.1 (x86_64-apple-darwin15.6.0, Carbon Version 157 AppKit 1404.47) of 2017-11-14

$ dot -V
dot - graphviz version 2.40.1 (20161225.0304)

The executable dot is available in the PATH, I can access it in eshell.

Installed org-mind-map via MELPA:

;; Package-Version: 20171206.645
;; Version: 0.3

Thanks

bubak4 commented 6 years ago

Same here:

gazzatav commented 6 years ago

I was getting the same error message. With help from Sacha Chua I found org-mind-map-write in ox.el. After evaluating the function in scratch the command org-mind-map-write worked fine. After putting (require 'ox) before (require 'org) in my .emacs file it works properly.

dotemacs commented 6 years ago

Thanks @gazzatav

alexandergogl commented 6 years ago

Thanks @gazzatav

For spacemacs:

(defun username/init-org-mind-map ()
  (require 'ox)
  (use-package org-mind-map
    :after org
    :config
    (setq org-mind-map-engine "dot")  ; default; Directed Graph
    ;; (setq org-mind-map-engine "neato")  ; Undirected Spring Graph"
    ;; (setq org-mind-map-engine "twopi")  ; Radial Layout"
    ;; (setq org-mind-map-engine "circo")  ; Circular Layout"
    ;; (setq org-mind-map-engine "fdp")  ; Undirected Spring Force-Directed"
    ))
lib314a commented 5 years ago

Thanks @gazzatav

For spacemacs:

(defun username/init-org-mind-map ()
  (require 'ox)
  (use-package org-mind-map
    :after org
    :config
    (setq org-mind-map-engine "dot")  ; default; Directed Graph
    ;; (setq org-mind-map-engine "neato")  ; Undirected Spring Graph"
    ;; (setq org-mind-map-engine "twopi")  ; Radial Layout"
    ;; (setq org-mind-map-engine "circo")  ; Circular Layout"
    ;; (setq org-mind-map-engine "fdp")  ; Undirected Spring Force-Directed"
    ))

Thanks! By the way, this function throws

Cannot use unknown "org" back-end as a parent

error in my case. And, according to https://github.com/theodorewiles/org-mind-map/issues/22#issuecomment-397415455, adding

(require 'ox-org) (require 'org-mind-map)

before

use-package org-mind-map

solves it.