From eb6e0906bd6b79881b9f87962c52cac15e02b53f Mon Sep 17 00:00:00 2001 From: djcb Date: Tue, 19 Jun 2012 14:14:25 +0300 Subject: [PATCH] * mu4e-utils: better detect (and warn about) old-style options to mu4e-read-option --- emacs/mu4e-utils.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emacs/mu4e-utils.el b/emacs/mu4e-utils.el index a19e1d98..a8f305e3 100644 --- a/emacs/mu4e-utils.el +++ b/emacs/mu4e-utils.el @@ -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))