Skip to content

Commit dcd7ea2

Browse files
committed
Specify key and value types for alist defcustoms
1 parent adf3500 commit dcd7ea2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ledger-report.el

+2-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ The function is called with no parameters and expected to return
7878
a string, or a list of strings, that should replace the format specifier.
7979
Single strings are quoted with `shell-quote-argument'; lists of strings are
8080
simply concatenated (no quoting)."
81-
:type 'alist
81+
:type '(alist :key-type string
82+
:value-type function)
8283
:group 'ledger-report)
8384

8485
(defcustom ledger-report-auto-refresh t

ledger-schedule.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"List of weekday abbreviations.
7272
There must be exactly seven entries each with a two character
7373
abbreviation for a day and the number of that day in the week."
74-
:type '(alist :value-type (group integer))
74+
:type '(alist :key-type string :value-type (group integer))
7575
:group 'ledger-schedule)
7676

7777
(defsubst ledger-between (val low high)

0 commit comments

Comments
 (0)