branch: elpa/magit
commit 0076d0499d0837cea852c6d2d080f03ddb2fa377
Author: Basil L. Contovounesios <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    magit-diff-highlight-indentation: Use alist and natnum custom types
---
 lisp/magit-diff.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lisp/magit-diff.el b/lisp/magit-diff.el
index 756742f23e..b453c07ca4 100644
--- a/lisp/magit-diff.el
+++ b/lisp/magit-diff.el
@@ -305,10 +305,10 @@ If the used INDENT is `tabs', highlight indentation with 
tabs.
 If INDENT is an integer, highlight indentation with at least
 that many spaces.  Otherwise, highlight neither."
   :group 'magit-diff
-  :type `(repeat (cons (string :tag "Directory regexp")
-                       (choice (const :tag "Tabs" tabs)
-                               (integer :tag "Spaces" :value ,tab-width)
-                               (const :tag "Neither" nil)))))
+  :type `(alist :key-type (regexp :tag "Directory regexp")
+                :value-type (choice (const :tag "Tabs" tabs)
+                                    (natnum :tag "Spaces" :value ,tab-width)
+                                    (const :tag "Neither" nil))))
 
 (defcustom magit-diff-hide-trailing-cr-characters
   (and (memq system-type '(ms-dos windows-nt)) t)

Reply via email to