* mu4e-utils: better detect (and warn about) old-style options to mu4e-read-option

This commit is contained in:
djcb 2012-06-19 14:14:25 +03:00
parent e1915139e8
commit eb6e0906bd
1 changed files with 2 additions and 2 deletions

View File

@ -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))