Function: denote--format-query-link
denote--format-query-link is a natively compiled function defined in
denote.el.
Signature
(denote--format-query-link TYPE QUERY FILE-TYPE)
Documentation
Format QUERY link of TYPE for the given FILE-TYPE.
Return an error if TYPE is not one among the symbols specified in
denote-query-link-types.
If FILE-TYPE is nil, use that of Org.
Source Code
;; Defined in /nix/store/yld6spsps5sfn9w4rjyhkvqlvdgsmvpq-emacs-packages-deps/share/emacs/site-lisp/elpa/denote-4.2.3/denote.el
(defun denote--format-query-link (type query file-type)
"Format QUERY link of TYPE for the given FILE-TYPE.
Return an error if TYPE is not one among the symbols specified in
`denote-query-link-types'.
If FILE-TYPE is nil, use that of Org."
(unless (memq type denote-query-link-types)
(error "Type `%s' is not one among `denote-query-link-types'" type))
(format (or (denote--link-format file-type) (denote--link-format 'org))
(format "%s:%s" type query)
(format "%s%s" denote-query-description-prefix query)))