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

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

Open
ispringle opened this issue Feb 19, 2024 · 0 comments
Open

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

ispringle opened this issue Feb 19, 2024 · 0 comments

Comments

@ispringle
Copy link

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).```
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

1 participant