branch: elpa/magit
commit 84c5c8c8c6108f6a5dbae1f145518cbaa9ca7480
Author: Lucius <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
magit-blame-styles: Fix custom type
The `magit-blame-styles' variable was incorrectly declared with
type `string', even though its value is an alist of style
definitions. This caused warnings when customizing the variable
or setting it with `setopt'.
This commit changes the custom type to a proper nested alist type
to match the actual data structure and suppress spurious warnings.
---
lisp/magit-blame.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/magit-blame.el b/lisp/magit-blame.el
index 14d4b6f7d78..bd0b444f7db 100644
--- a/lisp/magit-blame.el
+++ b/lisp/magit-blame.el
@@ -128,7 +128,8 @@ part of the default value:
(margin-body-face . (magit-blame-dimmed)))"
:package-version '(magit . "2.13.0")
:group 'magit-blame
- :type 'string)
+ :type '(alist :key-type symbol
+ :value-type (alist :key-type symbol :value-type sexp)))
(defcustom magit-blame-echo-style 'lines
"The blame visualization style used by `magit-blame-echo'.