--- Begin Message ---
Subject: |
30.0.50; electric-pair-skip-whitespace-chars choice looks wrong |
Date: |
Wed, 30 Aug 2023 12:34:43 -0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 |
Looking at the electric-pair-skip-whitespace-chars defcustom:
(defcustom electric-pair-skip-whitespace-chars (list ?\t ?\s ?\n)
"Whitespace characters considered by `electric-pair-skip-whitespace'."
:version "24.4"
:group 'electricity
:type '(choice (set (const :tag "Space" ?\s)
(const :tag "Tab" ?\t)
(const :tag "Newline" ?\n))
(list character)))
I think the 2nd choice should be (repeat character) rather than
(list character).
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#65625: 30.0.50; electric-pair-skip-whitespace-chars choice looks wrong |
Date: |
Thu, 31 Aug 2023 08:24:58 +0200 |
Version: 30.1
Mauro Aranda <maurooaranda@gmail.com> writes:
> What's important here is that the 2nd choice lets the user choose only
> one whitespace character, while it seems pretty clear to me
> that the intention was for the user to be able to customize it to a list
> of whitespace characters, not just to a list of one. And that's what
> the repeat widget is for, so yes, it is a real improvement.
OK, makes sense.
> I attach a patch.
Thanks. Installed on master as commit 4adedd29961, and I'm closing this bug.
--- End Message ---