Skip to content

Commit c2b4779

Browse files
committed
refactor: sexp value-type for citar-display-transform-functions
The value type for the custom variable `citar-display-transform-functions' is currently set to `list', which is not a proper elisp type. This will raise an error when attempting to byte-compile the file. Instead, the correct value-type should be sexp.
1 parent c968809 commit c2b4779

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

citar.el

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,9 @@ references as a string."
197197

198198
(defcustom citar-display-transform-functions
199199
;; TODO change this name, as it might be confusing?
200-
`((sn . (citar--shorten-names))
200+
;; `((sn . citar--shorten-names))
201+
;; (etal . (lambda () (citar--shorten-names 3 "&"))))
202+
'((sn . (citar--shorten-names))
201203
(etal . (citar--shorten-names 3 "&")))
202204
"Configure transformation of field display values from raw values.
203205
@@ -206,7 +208,7 @@ and optional arguments on the string value."
206208
:group 'citar
207209
:type '(alist :key-type symbol
208210
;; REVIEW is this OK for now?
209-
:value-type list))
211+
:value-type sexp))
210212

211213
;; Indicator defstruct
212214

0 commit comments

Comments
 (0)