mirror of https://github.com/djcb/mu.git
* mu4e-utils: better detect (and warn about) old-style options to mu4e-read-option
This commit is contained in:
parent
e1915139e8
commit
eb6e0906bd
|
@ -108,8 +108,8 @@ Function will return the cdr of the list element."
|
||||||
(optionsstr
|
(optionsstr
|
||||||
(mapconcat
|
(mapconcat
|
||||||
(lambda (option)
|
(lambda (option)
|
||||||
;; try to detect old-style options...
|
;; try to detect old-style options, and warn
|
||||||
(when (characterp (cdr option))
|
(when (characterp (car-safe (cdr-safe option)))
|
||||||
(error (concat "Please use the new format for options/actions; "
|
(error (concat "Please use the new format for options/actions; "
|
||||||
"see the manual")))
|
"see the manual")))
|
||||||
(let* ((kar (substring (car option) 0 1))
|
(let* ((kar (substring (car option) 0 1))
|
||||||
|
|
Loading…
Reference in New Issue