Skip to content

org-elements "cannot be used in non-org buffer" #679

@ispringle

Description

@ispringle

I'm attempting to go through the lispytutor.el however I'm running into an issue. Seems that lispy supports orgmode in comments (very cool!) however org doesn't like this. On the step on line 33 (press i) as well as line 34 (press N) I get the following errors:

⛔ Warning (org-element): ‘org-element-at-point’ cannot be used in non-Org buffer #<buffer lispytutor.el> (emacs-lisp-mode)
⛔ Warning (org-element): org-element--cache: Org parser error in lispytutor.el::1307. Resetting.
 The error was: (error "rx ‘**’ range error")
 Backtrace:
"  backtrace-to-string(nil)
  org-element-at-point()
  org-at-item-p()
  org-cycle-internal-local()
  lispy-tab()
  funcall-interactively(lispy-tab)
  call-interactively(lispy-tab)
  (cond ((lispy--edebug-commandp) (call-interactively lispy--edebug-command)) ((region-active-p) (call-interactively 'lispy-tab)) ((lispy--in-string-or-comment-p) (setq this-command 'self-insert-command) (call-interactively 'self-insert-command)) ((or (lispy-left-p) (lispy-right-p) (and (lispy-bolp) (or (looking-at lispy-outline-header) (looking-at lispy-outline)))) (call-interactively 'lispy-tab)) (t (setq this-command 'self-insert-command) (call-interactively 'self-insert-command)))
  special-lispy-tab()
  funcall-interactively(special-lispy-tab)
  command-execute(special-lispy-tab)
"
 Please report this to Org mode mailing list (M-x org-submit-bug-report).
⛔ Warning (org-element): ‘org-element-at-point’ cannot be used in non-Org buffer #<buffer lispytutor.el> (emacs-lisp-mode)
⛔ Warning (org-element): org-element--cache: Org parser error in lispytutor.el::1307. Resetting.
 The error was: (error "rx ‘**’ range error")
 Backtrace:
"  backtrace-to-string(nil)
  org-element-at-point()
  org-narrow-to-subtree()
  lispy-narrow(1)
  funcall-interactively(lispy-narrow 1)
  call-interactively(lispy-narrow)
  (cond ((lispy--edebug-commandp) (call-interactively lispy--edebug-command)) ((region-active-p) (call-interactively 'lispy-narrow)) ((lispy--in-string-or-comment-p) (setq this-command 'self-insert-command) (call-interactively 'self-insert-command)) ((or (lispy-left-p) (lispy-right-p) (and (lispy-bolp) (or (looking-at lispy-outline-header) (looking-at lispy-outline)))) (call-interactively 'lispy-narrow)) (t (setq this-command 'self-insert-command) (call-interactively 'self-insert-command)))
  special-lispy-narrow()
  funcall-interactively(special-lispy-narrow)
  command-execute(special-lispy-narrow)
"
 Please report this to Org mode mailing list (M-x org-submit-bug-report).```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions