emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#65625: closed (30.0.50; electric-pair-skip-whitespace-chars choice l


From: GNU bug Tracking System
Subject: bug#65625: closed (30.0.50; electric-pair-skip-whitespace-chars choice looks wrong)
Date: Thu, 31 Aug 2023 06:26:01 +0000

Your message dated Thu, 31 Aug 2023 08:24:58 +0200
with message-id 
<CADwFkmkFum+KxjHRzrq-6skwMGTwU6rBiDW93w0h9E+dQoyZgA@mail.gmail.com>
and subject line Re: bug#65625: 30.0.50; electric-pair-skip-whitespace-chars 
choice looks wrong
has caused the debbugs.gnu.org bug report #65625,
regarding 30.0.50; electric-pair-skip-whitespace-chars choice looks wrong
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
65625: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=65625
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- 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 ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]