Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Void function toc-org-enable when using spacemacs-base and spacemacs-org #7235

Closed
bmag opened this issue Oct 1, 2016 · 4 comments
Closed

Comments

@bmag
Copy link
Collaborator

bmag commented Oct 1, 2016

Description :octocat:

When spacemacs-org is used, and using a minimal Spacemacs config, opening an Org file causes a toc-org-enable void function error.
spacemacs-org layer assumes toc-org-enable is always defined (see

(add-hook 'org-mode-hook 'toc-org-enable))))
), but that isn't always true. The function is defined in core/tools/spacefmt/toc-org.el (see
(defun toc-org-enable ()
).

Reproduction guide 🪲

  • Have a Spacemacs configuration with the same layer list and distribution as in System Info section below.
  • Start Emacs
  • Open an Org file

Observed behaviour: 👀 💔
Org is not properly loaded (some settings are missing), and an error message in the echo area:

File mode specification error: (void-function toc-org-enable)

Expected behaviour: ❤️ 😄
No error, and Org is properly loaded.

System Info 💻

  • OS: windows-nt
  • Emacs: 25.1.1
  • Spacemacs: 0.105.22
  • Spacemacs branch: develop (rev. ac31e45)
  • Graphic display: t
  • Distribution: spacemacs-base
  • Editing style: hybrid
  • Completion: ivy
  • Layers:
((spacemacs-editing :packages
                    (avy expand-region))
 (spacemacs-evil :packages
                 (evil-lisp-state evil-iedit-state evil-nerd-commenter evil-numbers evil-surround))
 spacemacs-layouts
 (spacemacs-ui :packages
               (restart-emacs))
 ivy auto-completion emacs-lisp git markdown org spacemacs-org
 (latex :variables latex-enable-auto-fill t latex-enable-folding t))

Backtrace 🐾

Debugger entered--Lisp error: (void-function toc-org-enable)
  toc-org-enable()
  run-hooks(change-major-mode-after-body-hook text-mode-hook outline-mode-hook org-mode-hook)
  apply(run-hooks (change-major-mode-after-body-hook text-mode-hook outline-mode-hook org-mode-hook))
  run-mode-hooks(org-mode-hook)
  org-mode()
  set-auto-mode-0(org-mode nil)
  set-auto-mode()
  normal-mode(t)
  after-find-file(nil t)
  find-file-noselect-1(#<buffer config.org> "c:/Users/bar/Desktop/emacs/spacedirs/base/config.org" nil nil "c:/Users/bar/Desktop/emacs/spacedirs/base/config.org" (1688849861441643 9362352))
  find-file-noselect("c:/Users/bar/Desktop/emacs/spacedirs/base/config.org" nil nil nil)
  find-file("c:/Users/bar/Desktop/emacs/spacedirs/base/config.org")
  #[257 "\304\305�!!r\306\307\310\311\312�!\313\"\314$\216\315�@\316\"\210  \205�
@bmag
Copy link
Collaborator Author

bmag commented Oct 10, 2016

Update: this is happening also with a regular install, with or without org layer enabled: (the branch says "nil", but it's really latest develop)

System Info 💻

  • OS: gnu/linux
  • Emacs: 25.1.1
  • Spacemacs: 0.200.1
  • Spacemacs branch: nil (rev. 72d87de)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(helm emacs-lisp)

@bmag
Copy link
Collaborator Author

bmag commented Oct 10, 2016

The work-around is to exclude the package toc-org.

@rgrinberg
Copy link
Contributor

I'm unable to reproduce this on a clean, minimal install with or without spacemacs-org.

@bmag
Copy link
Collaborator Author

bmag commented Oct 12, 2016

@rpglover64 thank you, I updated my packages (toc-org was one of them) and the issue has disappeared. Must have been fixed upstream. Checked the difference, turns out my older version of toc-org was an empty file - meaning an installation error on my side (should have checked that).

@bmag bmag closed this as completed Oct 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants