Skip to content

‘org-element-at-point’ cannot be used in non-Org buffer #29

Open
@tkossak

Description

@tkossak

Reposting syl20bnr/spacemacs#16575 since it seems to be an issue with helm-org.

When I press SPC j i (command spacemacs/helm-jump-in-buffer) I get multiple errors:
⛔ Warning (org-element): ‘org-element-at-point’ cannot be used in non-Org buffer #<buffer *helm org inbuffer*> (helm-major-mode)

Reproduction

  1. Install spacemacs from scratch
mv ~/.emacs.d ~/.emacs.d.old
mv ~/.spacemacs ~/.spacemacs.old

git clone --recursive https://github.com/syl20bnr/spacemacs ~/.emacs.d
  1. Create dotfile as ~/.spacemacs. Only few lines changed from default dotfile - I added org layer, removed multi cursor layer and added these 2 lines:

    (setq helm-org-format-outline-path nil)
    (setq org-startup-indented 't)
    
  2. Create sample org file eg test.org with content:

    * heading1
    blabla
    
  3. Start spacemacs and perform first time installation of all packages it asks for

  4. Open test.org and press SPC j i. Result:
    image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions