]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix choice in electric-pair-skip-whitespace-chars
authorMauro Aranda <maurooaranda@gmail.com>
Wed, 30 Aug 2023 22:45:09 +0000 (19:45 -0300)
committerStefan Kangas <stefankangas@gmail.com>
Thu, 31 Aug 2023 06:24:25 +0000 (08:24 +0200)
* lisp/elec-pair.el (electric-pair-skip-whitespace-chars): Use repeat
instead of list in custom :type.  (Bug#65625)

lisp/elec-pair.el

index e101cbc9e6ff74798cbfaa1420e4bac58a662a97..223c7d897735ddd4951bed03b387b5e3f9067dcd 100644 (file)
@@ -153,7 +153,7 @@ return value is considered instead."
   :type '(choice (set (const :tag "Space" ?\s)
                       (const :tag "Tab" ?\t)
                       (const :tag "Newline" ?\n))
-                 (list character)))
+                 (repeat (character :value " "))))
 
 (defvar-local electric-pair-skip-whitespace-function
   #'electric-pair--skip-whitespace