mirror of
https://github.com/SqrtMinusOne/org-journal-tags.git
synced 2025-12-10 10:53:04 +03:00
refactor: lint
This commit is contained in:
parent
9d49fae07b
commit
5a892399ac
1 changed files with 7 additions and 3 deletions
|
|
@ -1348,7 +1348,8 @@ returned."
|
|||
(defun org-journal-tags--query-filter-location (refs location)
|
||||
"Filter REFS by LOCATION.
|
||||
|
||||
LOCATION can be `section', `inline', or `both'. REFS is a list of `org-journal-tag-reference'."
|
||||
LOCATION can be `section', `inline', or `both'. REFS is a list of
|
||||
`org-journal-tag-reference'."
|
||||
(pcase location
|
||||
((or 'both 'nil)
|
||||
refs)
|
||||
|
|
@ -2259,8 +2260,8 @@ OBJ is an instance of that class."
|
|||
(argument-regexp :initarg :argument-regexp))
|
||||
"Class used for sets of mutually exclusive command-line switches.
|
||||
|
||||
This is inspired by `transient-switches', but with a few
|
||||
modifications:
|
||||
This is inspired by the `transient-switches' class. The modifications
|
||||
are as follows:
|
||||
- Inherit from `org-journal-tags--transient-variable'.
|
||||
- Do not allow empty values.")
|
||||
|
||||
|
|
@ -2272,6 +2273,9 @@ The last value is \"don't use any of these switches\"."
|
|||
(nth (% (1+ idx) (length choices)) choices))))
|
||||
|
||||
(cl-defmethod transient-format-value ((obj org-journal-tags--transient-switches))
|
||||
"Format value of `org-journal-tags--transient-switches'.
|
||||
|
||||
OBJ is an instance of that class."
|
||||
(with-slots (value argument-format choices) obj
|
||||
(format (propertize argument-format
|
||||
'face (if value
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue