GNU bug report logs -
#28183
Customize always reports error when trying to enter characters to Whitespace Mode display mappings
Previous Next
Reported by: Andrew Toskin <andrew.toskin <at> gmail.com>
Date: Tue, 22 Aug 2017 04:56:01 UTC
Severity: normal
Tags: fixed, patch
Merged with 15925,
21771,
31869
Found in versions 24.3.50, 25.0.50, 27.0.50
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 28183 in the body.
You can then email your comments to 28183 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#28183
; Package
emacs
.
(Tue, 22 Aug 2017 04:56:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Andrew Toskin <andrew.toskin <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 22 Aug 2017 04:56:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
## The problem
Customize throws an error when trying to set characters in the Whitespace
Mode display mappings. When I paste the symbols I want into the Customize
fields, it says "This field should contain a single character." Even though
I've only deleted and entered a single character! There's a lot more
documentation about the syntax of setting the variable in code than through
the Customize interface, so I'm not sure if Customize is broken or if I'm
misunderstanding something. But when trying to edit more than one display
mapping, this error is at least vague and unhelpful.
## My system setup
* Fedora 26 Workstation x86_64
* Emacs 25.2.1 in an X window, with GTK+ 3.22.16
* Whitespace Mode 13.2.2 (packaged with Emacs, in Fedora)
## Steps to reproduce
1. Launch Emacs without any other configuration (`emacs --quick`).
2. Execute Customize and search for Whitespace Display Mappings.
3. Edit the character mapping. For example, delete the default "$" used for
newlines, and paste "↵" (U+21b5 "Downwards Arrow With Corner Leftward").
4. Click Apply. See the error in the mode line at the bottom of Emacs
I thought at first that Customize wasn't accepting Unicode characters that
might be more than a single byte, but I actually tried resetting all
mappings to default, then editing the newline mapping to replace the
default "$" with another ASCII character, "&", and it **still** says "This
field should contain a single character."
I ended up setting the display mapping manually from my config file.
(setq whitespace-display-mappings '(
;; Plain space: · or .
(space-mark 32 [183] [46] )
;; Non-breaking "hard" space: • or _
(space-mark 160 [8226] [95] )
;; Newline: ↵ or ¬ or $
(newline-mark 10 [8629 10] [172 10] [36 10])
;; Tab: ⇥ or » or \
(tab-mark 9 [8677 9] [187 9] [92 9] )))
**This** works as expected.
But I can't figure out why I couldn't do this in Customize. What do you
think?
Thank,
~ Andrew
[Message part 2 (text/html, inline)]
Merged 15925 28183.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 22 Aug 2017 19:27:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#28183
; Package
emacs
.
(Wed, 30 Aug 2017 03:13:02 GMT)
Full text and
rfc822 format available.
Message #12 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Bump.
Any ideas?
On Mon, Aug 21, 2017 at 9:54 PM, Andrew Toskin <andrew.toskin <at> gmail.com>
wrote:
> ## The problem
>
> Customize throws an error when trying to set characters in the Whitespace
> Mode display mappings. When I paste the symbols I want into the Customize
> fields, it says "This field should contain a single character." Even
> though I've only deleted and entered a single character! There's a lot more
> documentation about the syntax of setting the variable in code than through
> the Customize interface, so I'm not sure if Customize is broken or if I'm
> misunderstanding something. But when trying to edit more than one display
> mapping, this error is at least vague and unhelpful.
>
>
> ## My system setup
>
> * Fedora 26 Workstation x86_64
> * Emacs 25.2.1 in an X window, with GTK+ 3.22.16
> * Whitespace Mode 13.2.2 (packaged with Emacs, in Fedora)
>
>
> ## Steps to reproduce
>
> 1. Launch Emacs without any other configuration (`emacs --quick`).
> 2. Execute Customize and search for Whitespace Display Mappings.
> 3. Edit the character mapping. For example, delete the default "$" used
> for newlines, and paste "↵" (U+21b5 "Downwards Arrow With Corner Leftward").
> 4. Click Apply. See the error in the mode line at the bottom of Emacs
>
> I thought at first that Customize wasn't accepting Unicode characters that
> might be more than a single byte, but I actually tried resetting all
> mappings to default, then editing the newline mapping to replace the
> default "$" with another ASCII character, "&", and it **still** says "This
> field should contain a single character."
>
> I ended up setting the display mapping manually from my config file.
>
> (setq whitespace-display-mappings '(
> ;; Plain space: · or .
> (space-mark 32 [183] [46] )
> ;; Non-breaking "hard" space: • or _
> (space-mark 160 [8226] [95] )
> ;; Newline: ↵ or ¬ or $
> (newline-mark 10 [8629 10] [172 10] [36 10])
> ;; Tab: ⇥ or » or \
> (tab-mark 9 [8677 9] [187 9] [92 9] )))
>
> **This** works as expected.
>
> But I can't figure out why I couldn't do this in Customize. What do you
> think?
>
> Thank,
> ~ Andrew
>
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#28183
; Package
emacs
.
(Wed, 30 Aug 2017 03:22:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 28183 <at> debbugs.gnu.org (full text, mbox):
Andrew Toskin <andrew.toskin <at> gmail.com> writes:
> Bump.
>
> Any ideas?
There seems to be a suggestion for a fix in
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=15925#11.
Added tag(s) patch.
Request was from
Mauro Aranda <maurooaranda <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Tue, 22 Sep 2020 15:44:02 GMT)
Full text and
rfc822 format available.
Added tag(s) fixed.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 26 Sep 2020 15:11:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 28.1, send any further explanations to
15925 <at> debbugs.gnu.org and Claudio Bley <claudio.bley <at> googlemail.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 26 Sep 2020 15:11:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 25 Oct 2020 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 155 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.