Closed brabalan closed 1 month ago
Oops! This is a regression caused by a change I made (added a :help-echo
, which is useful).
Does this work for you?
(defun denote-get-identifier-at-point (&optional point)
"Return the Denote identifier at point or optional POINT."
(when-let ((position (or point (point)))
(face-at-point (get-text-property position 'face))
(_ (or (eq face-at-point 'denote-faces-link)
(member 'denote-faces-link face-at-point))))
(or (get-text-property position 'denote-link-id)
(when-let ((link-data (get-text-property position 'htmlize-link))
(link (cadr link-data)))
(string-match denote-id-regexp link)
(match-string-no-properties 0 link)))))
Yes, it works, thanks!
Very well! I just pushed the change. Closing now.
In the function
denote-get-identifier-at-point
, the call toget-text-property position 'help-echo
return the symboldenote-link-ol-help-echo
. As a consequence, thestring-match
right after fails as it’s not a string.