[chronometrist-details] fix Programming key-value display; add docstring
This commit is contained in:
parent
2297bb7393
commit
6e78eaf6a9
5
init.org
5
init.org
|
@ -599,7 +599,10 @@ Return nil (and run `magit-status') if the user answers no."
|
|||
|
||||
***** display-key-values
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
;; (contrapunctus-objects-to-string " - " nil) => ""
|
||||
;; (contrapunctus-objects-to-string " - " 1) => "1"
|
||||
(defun contrapunctus-objects-to-string (separator &rest args)
|
||||
"Return ARGS as a string, removing nil values."
|
||||
(mapconcat (lambda (elt)
|
||||
(format "%s" elt))
|
||||
(flatten-list
|
||||
|
@ -614,7 +617,7 @@ Return nil (and run `magit-status') if the user answers no."
|
|||
(-let [(&plist :project project
|
||||
:feature feature
|
||||
:component component) plist]
|
||||
(contrapunctus-objects-to-string " " project feature component)))
|
||||
(contrapunctus-objects-to-string " - " project component feature)))
|
||||
("Guitar"
|
||||
(-let* (((&plist :piece
|
||||
(&plist :name name
|
||||
|
|
Loading…
Reference in New Issue