From e1f9ef198fa296c05dbd4915144d480bd3b20db3 Mon Sep 17 00:00:00 2001 From: Torsten Hilbrich Date: Sat, 10 Aug 2013 15:47:58 +0200 Subject: dictionary: Fix :type for dictionary-tooltip-dictionary Using type string gives the warning "(mismatch)" when used with the default value of nil. Using a more specific type where nil stands for no dictionary and the alternative string type specifies the dictionary to use. This was suggested by Kevin Ryde in debian bug #719041. --- dictionary.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dictionary.el b/dictionary.el index 9145363..91d37c5 100755 --- a/dictionary.el +++ b/dictionary.el @@ -1185,7 +1185,7 @@ It presents the word at point as default input and allows editing it." nil "This dictionary to lookup words for tooltips" :group 'dictionary - :type 'string) + :type '(choice (const :tag "None" nil) string)) (defun dictionary-definition (word &optional dictionary) (interactive) -- cgit v1.2.3