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
|
||||
(mapconcat
|
||||
(lambda (option)
|
||||
;; try to detect old-style options...
|
||||
(when (characterp (cdr option))
|
||||
;; try to detect old-style options, and warn
|
||||
(when (characterp (car-safe (cdr-safe option)))
|
||||
(error (concat "Please use the new format for options/actions; "
|
||||
"see the manual")))
|
||||
(let* ((kar (substring (car option) 0 1))
|
||||
|
|
Loading…
Reference in New Issue