fix(org): eldoc showing empty heading breadcrumbs

Fix: #6795
Amend: ab9896c526
This commit is contained in:
Henrik Lissner 2022-09-17 10:37:09 +02:00
parent 811c18ca68
commit 46527c0b85
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -536,7 +536,8 @@ relative to `org-directory', unless it is an absolute path."
(if-let ((type (org-element-property :type context)) (if-let ((type (org-element-property :type context))
(eldocfn (org-link-get-parameter type :eldoc))) (eldocfn (org-link-get-parameter type :eldoc)))
(funcall eldocfn context) (funcall eldocfn context)
(format "Link: %s" (org-element-property :raw-link context))))) (when-let (raw-link (org-element-property :raw-link context))
(format "Link: %s" raw-link)))))
;; Add "lookup" links for packages and keystrings; useful for Emacs ;; Add "lookup" links for packages and keystrings; useful for Emacs
;; documentation -- especially Doom's! ;; documentation -- especially Doom's!