mirror of
https://github.com/protesilaos/denote.git
synced 2026-09-09 23:06:23 -04:00
Rename a helper function to be private and have a more accurate name
Also tweak its docstring.
This commit is contained in:
parent
2c8cf137ac
commit
0a157981e5
|
|
@ -7041,8 +7041,9 @@ create a new one."
|
|||
"Get current Org heading text."
|
||||
(org-get-heading :no-tags :no-todo :no-priority :no-comment))
|
||||
|
||||
(defun denote-link-format-heading-description (file-text heading-text)
|
||||
"Return description for FILE-TEXT with HEADING-TEXT at the end or
|
||||
(defun denote-link--ol-format-heading-description (file-text heading-text)
|
||||
"Return heading description.
|
||||
Return description for FILE-TEXT with HEADING-TEXT at the end or
|
||||
only HEADING-TEXT if `denote-org-store-link-to-heading' is set to `local' links."
|
||||
(if (eq denote-org-store-link-to-heading 'local)
|
||||
(format "%s" heading-text)
|
||||
|
|
@ -7067,7 +7068,7 @@ Also see the user option `denote-org-store-link-to-heading'."
|
|||
(org-link-store-props
|
||||
:type "denote"
|
||||
:description (if (and heading-links heading)
|
||||
(denote-link-format-heading-description
|
||||
(denote-link--ol-format-heading-description
|
||||
description
|
||||
heading)
|
||||
description)
|
||||
|
|
|
|||
Loading…
Reference in a new issue