mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2025-01-23 19:49:32 +00:00
ox-koma-letter: Tiny refactor
ox-koma-letter.el (org-koma-letter--get-tagged-contents): Use assoc-string.
This commit is contained in:
parent
6f66c57e61
commit
c4d4e5e618
@ -453,8 +453,8 @@ was not present."
|
|||||||
(defun org-koma-letter--get-tagged-contents (key)
|
(defun org-koma-letter--get-tagged-contents (key)
|
||||||
"Get contents from a headline tagged with KEY.
|
"Get contents from a headline tagged with KEY.
|
||||||
The contents is stored in `org-koma-letter-special-contents'."
|
The contents is stored in `org-koma-letter-special-contents'."
|
||||||
(cdr (assoc (org-koma-letter--get-value key)
|
(cdr (assoc-string (org-koma-letter--get-value key)
|
||||||
org-koma-letter-special-contents)))
|
org-koma-letter-special-contents)))
|
||||||
|
|
||||||
(defun org-koma-letter--get-value (value)
|
(defun org-koma-letter--get-value (value)
|
||||||
"Turn value into a string whenever possible.
|
"Turn value into a string whenever possible.
|
||||||
|
Loading…
Reference in New Issue
Block a user