Variable: org-link-make-description-function

org-link-make-description-function is a customizable variable defined in ol.el.gz.

Value

nil

Documentation

Function to use for generating link descriptions from links.

This function must take two parameters: the first one is the link, the second one is the description generated by org-insert-link. The function should return the description to use. If it returns nil, no default description is used, but no error is thrown (from the user’s perspective, this is equivalent to a default description of "").

Aliases

org-make-link-description-function (obsolete since 9.3)

Source Code

;; Defined in /usr/src/emacs/lisp/org/ol.el.gz
(defcustom org-link-make-description-function nil
  "Function to use for generating link descriptions from links.
This function must take two parameters: the first one is the
link, the second one is the description generated by
`org-insert-link'.  The function should return the description to
use.  If it returns nil, no default description is used, but no
error is thrown (from the user’s perspective, this is equivalent
to a default description of \"\")."
  :group 'org-link
  :type '(choice (const nil) (function))
  :safe #'null)