minad / marginalia

:scroll: marginalia.el - Marginalia in the minibuffer
GNU General Public License v3.0
780 stars 27 forks source link

⛔ Warning (org-element): ‘org-element-at-point’ cannot be used in non-Org buffer #<buffer *temp*> (fundamental-mode) #180

Closed danielpopescu closed 3 months ago

danielpopescu commented 3 months ago

Using latest emacs 30.1, macos X, native compilation, with latest packages (org-mode 9.7.9) and latest Marginalia.

When in org-mode, "M-x" produces the warning above.

The only way to get rid of it, it is to comment out my marginalia usage (the code below):

; Enable rich annotations using the Marginalia package (use-package marginalia ;; Bind marginalia-cycle' locally in the minibuffer. To make the binding ;; available in the *Completions* buffer, add it to the ;;completion-list-mode-map'. :bind (:map minibuffer-local-map ("M-A" . marginalia-cycle)) ;; The :init section is always executed. :init ;; Marginalia must be actived in the :init section of use-package such that ;; the mode gets enabled right away. Note that this forces loading the ;; package. (marginalia-mode))

Thank you