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

Error in Minibuffer, Error running timer 'org-reveal' #2391

Open
Keisn1 opened this issue Sep 21, 2023 · 2 comments
Open

Error in Minibuffer, Error running timer 'org-reveal' #2391

Keisn1 opened this issue Sep 21, 2023 · 2 comments

Comments

@Keisn1
Copy link

Keisn1 commented Sep 21, 2023

Description

When I do a org-roam-capture, and I have a prompt option set in my template, the minibuffer is prompting an error saying

[Error running timer 'org-reveal': (error "'org-element-at-point' cannot be used in non-Org buffer #<buffer Minibuf-1> (minibuffer-mode)")]

I can still continue to type into the prompt without issues but it bugged me. I tried to search for where org-reveal is being called but couldn't find it.

Steps to Reproduce

I use doom emacs. The org-roam configuration with which I can reproduce the error showing is just by adding an option to the default template.

  1. Add option to default roam-capture-template
    (setq org-roam-capture-templates '(("d" "default" plain "Author: %^{Author} %?" :if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n") :unnarrowed t)))
  2. Run org-roam-capture

Backtrace

Debugger entered--Lisp error: (error "‘org-element-at-point’ cannot be used in non-Org b...")
  error("`org-element-at-point' cannot be used in non-Org b..." #<buffer  *Minibuf-1*> minibuffer-mode)
  org-element-at-point(nil cached)
  org-before-first-heading-p()
  org-at-encrypted-entry-p()
  org-decrypt-entry()
  org-reveal((4))
  apply(org-reveal (4))
  timer-event-handler([t 25868 6866 410149 nil org-reveal ((4)) nil 130000 nil])
  #<subr completing-read-default>("Author: " nil nil nil nil org-capture--prompt-history nil nil)
  apply((#<subr completing-read-default> "Author: " nil nil nil nil org-capture--prompt-history nil nil))
  vertico--advice(#<subr completing-read-default> "Author: " nil nil nil nil org-capture--prompt-history nil nil)
  apply(vertico--advice #<subr completing-read-default> ("Author: " nil nil nil nil org-capture--prompt-history nil nil))
  completing-read-default("Author: " nil nil nil nil org-capture--prompt-history nil nil)
  completing-read("Author: " nil nil nil nil org-capture--prompt-history nil nil)
  org-completing-read("Author: " nil nil nil nil org-capture--prompt-history nil)
  org-capture-fill-template("Author: %^{Author} %?")
  org-roam-capture--fill-template("Author: %^{Author} %?")
  org-roam-capture--prepare-buffer()
  org-capture-set-target-location(nil)
  org-capture(nil "d")
  org-roam-capture-(:goto nil :info nil :keys nil :templates nil :node #s(org-roam-node :file nil :file-title nil :file-hash nil :file-atime nil :file-mtime nil :id "325706cf-c721-404e-9d8e-a2dc210754d2" :level nil :point nil :todo nil :priority nil :scheduled nil :deadline nil :title "newNode" :properties nil :olp nil :tags nil :aliases nil :refs nil) :props (:immediate-finish nil :call-location #<marker at 8390 in config_doom.org>))
  org-roam-capture(nil)
  funcall-interactively(org-roam-capture nil)
  command-execute(org-roam-capture)`

Expected Results

No error showing

Actual Results

[Error running timer 'org-reveal': (error "'org-element-at-point' cannot be used in non-Org buffer #<buffer Minibuf-1> (minibuffer-mode)")]

Environment

  • Framework: Doom
  • Org: Org mode version 9.7 (9.7-??-e90a8a69a @ /home/kaypro/.config/emacs/.local/straight/build-28.2/org/)
  • Org-roam: 5c06471
  • sqlite-connector: sqliteCopy info below this line into issue:
  • Emacs: GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37, cairo version 1.16.0)
    of 2023-03-16, modified by Debian
@tekakutli
Copy link

tekakutli commented Sep 24, 2023

it's two of us,
Emacs 29.1 and Doom, just cloned
but with me happens with normal org-capture

@Dadams2
Copy link

Dadams2 commented Sep 27, 2023

I am also getting this error in mu4e-headers-mode when I call the following capture template:

("m" "Email Workflow")
    ("mr" "Read Later" entry (file+olp "~/Org/Mail.org" "Read Later")
          "* TODO Read %:subject\nSCHEDULED:%t\nDEADLINE: %(org-insert-time-stamp (org-read-date nil t \"+2d\"))\n\n%a\n\n%i" :immediate-finish t))

with both normal org-capture and and mu4e action

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

3 participants