From unknown Tue Jun 17 22:12:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28183: Customize always reports error when trying to enter characters to Whitespace Mode display mappings Resent-From: Andrew Toskin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Aug 2017 04:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28183 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 28183@debbugs.gnu.org X-Debbugs-Original-To: GNU Emacs Bug Tracker Received: via spool by submit@debbugs.gnu.org id=B.150337774325956 (code B ref -1); Tue, 22 Aug 2017 04:56:01 +0000 Received: (at submit) by debbugs.gnu.org; 22 Aug 2017 04:55:43 +0000 Received: from localhost ([127.0.0.1]:48478 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dk1E6-0006ka-Tu for submit@debbugs.gnu.org; Tue, 22 Aug 2017 00:55:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dk1D6-0006ij-Mk for submit@debbugs.gnu.org; Tue, 22 Aug 2017 00:54:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dk1D0-0007DF-74 for submit@debbugs.gnu.org; Tue, 22 Aug 2017 00:54:35 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:57794) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dk1D0-0007D9-3Z for submit@debbugs.gnu.org; Tue, 22 Aug 2017 00:54:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dk1Cy-00060X-Np for bug-gnu-emacs@gnu.org; Tue, 22 Aug 2017 00:54:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dk1Cx-0007CU-JK for bug-gnu-emacs@gnu.org; Tue, 22 Aug 2017 00:54:32 -0400 Received: from mail-io0-x235.google.com ([2607:f8b0:4001:c06::235]:34753) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dk1Cx-0007CC-DU for bug-gnu-emacs@gnu.org; Tue, 22 Aug 2017 00:54:31 -0400 Received: by mail-io0-x235.google.com with SMTP id g135so19876553iog.1 for ; Mon, 21 Aug 2017 21:54:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to; bh=JA2ZP/Ysvud8S0dPmj4OrCPPHDktL17sv2Jg5SWmAHY=; b=USiIcTwJoUiHJ0BDFV1iN0iaJilTFGkNa2WYFrdl5m1OkcX96GGnk66uiP/GmkyHj+ 7BmiCkoKQHP+B/s30ngzRuM69OQj+h8ilFS3fg7gaTwxyP9PbNJuMrG+dMbUgfcM7pU7 fnLkvofVN79L9bEA7JKHjeGhHRtXkyH8uGFqiOEI5B9mkinJwuIL2kgndNBkp9MamgCf nZhyEO3DD2YLkzMMry/jebGUV4zzXCrSgoK8b95jEm7uCaL6Gkg3kywVXnpM884rD+yK nHLe0X0tv9l4nDwAl/yzWexMoYtw+89qWmbCguag8UUXPQ+3zebqlOeUZuxVJhpXF41+ 394Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=JA2ZP/Ysvud8S0dPmj4OrCPPHDktL17sv2Jg5SWmAHY=; b=BqYcS6jlDkssav8uU8ujYsWbpPlbDZ9LNFLPven1mZP9nfgG++6Z7JDAn6yj06kngc OGEOmzktbUm9VKTwg7CcTTcfgT+EL93GBkiRt9zYR5QSUYVf167Prpsvw0oXQ0vXecal PpgQW924n5qxXF3F0UvOOupMkW0rNZXnnqkZkYJLMrG5lL+sXnwdl7p7PCqHXPc91J/7 pXiegRWA2c+e5nEo+3y1+fzgPkKABL4MVIkx0jDjuuSXOMaZ1I9zjEs2wXTI6CZ08/fr GgLzzNI/CwPqkqBWRV2qggDTFHEbWBRNXRfXpBlXsgWfl/7ye5oGTvhxGGwU4ISnuO2A m35Q== X-Gm-Message-State: AHYfb5hW8ZYV8dijdsS9+c7XNqD8Vj/z92zvg2+zpeUt1zP66bb8O8VT AcqxvOutSjRTljHZkw4F72dfqeDOqKKYAcg= X-Received: by 10.107.4.142 with SMTP id 136mr17381053ioe.251.1503377668910; Mon, 21 Aug 2017 21:54:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.149.3 with HTTP; Mon, 21 Aug 2017 21:54:08 -0700 (PDT) From: Andrew Toskin Date: Mon, 21 Aug 2017 21:54:08 -0700 X-Google-Sender-Auth: pBHdANkEB6rA4XWaHKNvUZZ9w_8 Message-ID: Content-Type: multipart/alternative; boundary="001a113ee9daeb35870557506370" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Mailman-Approved-At: Tue, 22 Aug 2017 00:55:41 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --001a113ee9daeb35870557506370 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable ## 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 "=E2=86=B5" (U+21b5 "Downwards Arrow With Corner Leftwa= rd"). 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: =C2=B7 or . (space-mark 32 [183] [46] ) ;; Non-breaking "hard" space: =E2=80=A2 or _ (space-mark 160 [8226] [95] ) ;; Newline: =E2=86=B5 or =C2=AC or $ (newline-mark 10 [8629 10] [172 10] [36 10]) ;; Tab: =E2=87=A5 or =C2=BB 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 --001a113ee9daeb35870557506370 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
## The problem

Customize thr= ows an error when trying to set characters in the Whitespace Mode display m= appings. When I paste the symbols I want into the Customize fields, it says= "This field should co= ntain a single character." Even though I've only deleted an= d entered a single character! There's a lot more documentation about th= e syntax of setting the variable in code than through the Customize interfa= ce, so I'm not sure if Customize is broken or if I'm misunderstandi= ng something. But when trying to edit more than one display mapping, this e= rror 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
* W= hitespace Mode 13.2.2 (packaged with Emacs, in Fedora)


## Steps to reproduce

1. L= aunch Emacs without any other configuration (`emacs --quick`).
2. Execute Customize a= nd search for Whitespace Display Mappings.
3. Edit the character = mapping. For example, delete the default "$" used for newlines, a= nd paste "=E2=86=B5" (U+21b5 "Downwards Arrow With Corner Le= ftward").
4. Click Apply. See the error in the mode line at = the bottom of Emacs

I thought at first that Cu= stomize wasn't accepting Unicode characters that might be more than a s= ingle byte, but I actually tried resetting all mappings to default, then ed= iting the newline mapping to replace the default "$" with another= ASCII character, "&", and it *still* says "This field should contain a sing= le character."

I ended up setting = the display mapping manually from my config file.

= =C2=A0 (setq whitespace-dis= play-mappings '(
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; Plain= space: =C2=B7 or .
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (space-ma= rk=C2=A0=C2=A0 32=C2=A0 [183]=C2=A0=C2=A0=C2=A0=C2=A0 [46]=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 )
=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 ;; Non-breaking "hard" space: =E2=80=A2 = or _
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (space-mark=C2=A0=C2=A0 = 160 [8226]=C2=A0=C2=A0=C2=A0 [95]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 )
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;;= Newline: =E2=86=B5 or =C2=AC or $
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 (newline-mark 10=C2=A0 [8629 10] [172 10] [36 10])
=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; Tab: =E2=87=A5 or =C2=BB or \
=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (tab-mark=C2=A0=C2=A0=C2=A0=C2=A0 9=C2= =A0=C2=A0 [8677 9]=C2=A0 [187 9]=C2=A0 [92 9] )))


=
*This* works as expected.

But I = can't figure out why I couldn't do this in Customize. What do you t= hink?

Thank,
~ Andrew
--001a113ee9daeb35870557506370-- From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 22 15:26:43 2017 Received: (at control) by debbugs.gnu.org; 22 Aug 2017 19:26:43 +0000 Received: from localhost ([127.0.0.1]:49880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dkEp1-0005lX-9f for submit@debbugs.gnu.org; Tue, 22 Aug 2017 15:26:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49945) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dkEoz-0005lD-Pj for control@debbugs.gnu.org; Tue, 22 Aug 2017 15:26:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dkEou-0004YU-0v for control@debbugs.gnu.org; Tue, 22 Aug 2017 15:26:36 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35579) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkEot-0004YM-Ts for control@debbugs.gnu.org; Tue, 22 Aug 2017 15:26:35 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1dkEot-0004O2-LO for control@debbugs.gnu.org; Tue, 22 Aug 2017 15:26:35 -0400 Subject: control message for bug 28183 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Tue, 22 Aug 2017 15:26:35 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) merge 15925 28183 From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 22 15:32:53 2017 Received: (at control) by debbugs.gnu.org; 22 Aug 2017 19:32:53 +0000 Received: from localhost ([127.0.0.1]:49889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dkEuy-0007oX-UX for submit@debbugs.gnu.org; Tue, 22 Aug 2017 15:32:53 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dkEux-0007o2-9P for control@debbugs.gnu.org; Tue, 22 Aug 2017 15:32:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dkEur-0007Xq-F6 for control@debbugs.gnu.org; Tue, 22 Aug 2017 15:32:46 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35668) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkEur-0007Xl-BN for control@debbugs.gnu.org; Tue, 22 Aug 2017 15:32:45 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1dkEur-0003Dz-4E for control@debbugs.gnu.org; Tue, 22 Aug 2017 15:32:45 -0400 Subject: control message for bug 21771 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Tue, 22 Aug 2017 15:32:45 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) merge 15925 21771 From unknown Tue Jun 17 22:12:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28183: Customize always reports error when trying to enter characters to Whitespace Mode display mappings Resent-From: Andrew Toskin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Aug 2017 03:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28183 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 28183@debbugs.gnu.org X-Debbugs-Original-To: GNU Emacs Bug Tracker Received: via spool by submit@debbugs.gnu.org id=B.150406272618397 (code B ref -1); Wed, 30 Aug 2017 03:13:02 +0000 Received: (at submit) by debbugs.gnu.org; 30 Aug 2017 03:12:06 +0000 Received: from localhost ([127.0.0.1]:33066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dmtQE-0004mf-7K for submit@debbugs.gnu.org; Tue, 29 Aug 2017 23:12:06 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dmtQB-0004m7-Ml for submit@debbugs.gnu.org; Tue, 29 Aug 2017 23:12:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dmtQ5-0008Jd-6x for submit@debbugs.gnu.org; Tue, 29 Aug 2017 23:11:58 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:46173) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dmtQ5-0008JZ-3E for submit@debbugs.gnu.org; Tue, 29 Aug 2017 23:11:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmtQ3-0002U8-Lz for bug-gnu-emacs@gnu.org; Tue, 29 Aug 2017 23:11:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dmtQ2-0008IO-F4 for bug-gnu-emacs@gnu.org; Tue, 29 Aug 2017 23:11:55 -0400 Received: from mail-io0-x22f.google.com ([2607:f8b0:4001:c06::22f]:38709) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dmtQ2-0008Hh-7a for bug-gnu-emacs@gnu.org; Tue, 29 Aug 2017 23:11:54 -0400 Received: by mail-io0-x22f.google.com with SMTP id 81so1224186ioj.5 for ; Tue, 29 Aug 2017 20:11:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=K4iHumxM1NqUaIaN/W+f9H9o+ajpqrY04IsLiuxDwHg=; b=ZB9Y6PP1u7Wbop7/9xSzbSO6ZJccxZkC/Kc28u7IIDprc5uC4mnXzbsPwKHLIheGQ8 bbwKLqEdrl65H4PbABfbk62p/ax3D4ZomLoEVunKdV03H+IHFFXStrcUvCswCT+IvXz7 qxNGoj7+KJ8befnghEnQqKMSbtX67sDMTQcwfpaODcMZtWkAwjlA8UaxuTsJTVOeGVz4 LZdMUBtORxe3MBM1sVlXOoK9lQmtPAFzYQnVqSSgEe1ogBDa4e4/ONKkUzulGz/J/mY6 5yG15wmVSmimGLC2+QVB1eMlKzlev1Wf2ZI5SxwwGpRwhnJscMGJEXCgkTgymR2JijUa ucjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=K4iHumxM1NqUaIaN/W+f9H9o+ajpqrY04IsLiuxDwHg=; b=nRpC1cl1BbkcoWTm3obbTRC98gCb7hE4iUO5oJKSX3LCu8OqacKaSZTVeT/5q7ciMW BvgHkojOBd8FSj/rC2/rd+02rqyJjTLyg5JUTBNjMSBEdAg7LNaYmXz7oWlK13unDkDE YbW4kjK/oZzuHSqmmZ42YlJc3xcn8yRnL4/Xwuyw7KcQ6fxKLqaR0ofDuOKsDZTv9EKR 6xOGLSUjR3rMmBgHjsXr6XmfzIaO4VkQmd2lntPgJLGhOd/MwHnPM+/8DBLwXjNnfYSe C1IlRwcT+ya7RCW0E5sXtBhl/m3SiBiBiJR3cR0R19IecRqeqGA3dttNYgh6GOvDyYyc 15gw== X-Gm-Message-State: AHPjjUh2P5MPE+Pil9Qsn3VEUmGbDb3XRPAmL9AfDt9/Tb+R6BB6CdZM NfEHgdCwTBE0uck5egofNB8rtn6QVBMb X-Received: by 10.107.13.143 with SMTP id 137mr102741ion.94.1504062712063; Tue, 29 Aug 2017 20:11:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.149.3 with HTTP; Tue, 29 Aug 2017 20:11:31 -0700 (PDT) In-Reply-To: References: From: Andrew Toskin Date: Tue, 29 Aug 2017 20:11:31 -0700 X-Google-Sender-Auth: nuKxjTp-hwWbi4nQ9lRm02hqWV8 Message-ID: Content-Type: multipart/alternative; boundary="001a113fe08aac2e740557efe3db" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --001a113fe08aac2e740557efe3db Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Bump. Any ideas? On Mon, Aug 21, 2017 at 9:54 PM, Andrew Toskin 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 mo= re > documentation about the syntax of setting the variable in code than throu= gh > 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 "=E2=86=B5" (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 tha= t > 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 "Thi= s > field should contain a single character." > > I ended up setting the display mapping manually from my config file. > > (setq whitespace-display-mappings '( > ;; Plain space: =C2=B7 or . > (space-mark 32 [183] [46] ) > ;; Non-breaking "hard" space: =E2=80=A2 or _ > (space-mark 160 [8226] [95] ) > ;; Newline: =E2=86=B5 or =C2=AC or $ > (newline-mark 10 [8629 10] [172 10] [36 10]) > ;; Tab: =E2=87=A5 or =C2=BB 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 > --001a113fe08aac2e740557efe3db Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Bump.

Any ideas?


On Mon, Aug 21, 2017 at 9:54 PM, Andre= w Toskin <andrew.toskin@gmail.com> wrote:
## The problem

Customize throws an error when trying to set characters in the Whi= tespace Mode display mappings. When I paste the symbols I want into the Cus= tomize fields, it says "This field should contain a single character." Even though I&= #39;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 d= isplay mapping, this error is at least vague and unhelpful.

<= /div>

## My system setup

* Fedo= ra 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 "=E2=86=B5" (U+21b5 "Downward= s Arrow With Corner Leftward").
4. Click Apply. See the erro= r in the mode line at the bottom of Emacs

I th= ought at first that Customize wasn't accepting Unicode characters that = might be more than a single byte, but I actually tried resetting all mappin= gs to default, then editing the newline mapping to replace the default &quo= t;$" 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.

=C2= =A0 (setq whitespace-display-mappings '(
=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 ;; Plain space: =C2=B7 or .
=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (space-mark=C2=A0=C2=A0 32=C2=A0 [183]=C2=A0=C2=A0=C2=A0=C2= =A0 [46]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = )
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; Non-breaking "hard&= quot; space: =E2=80=A2 or _
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (= space-mark=C2=A0=C2=A0 160 [8226]=C2=A0=C2=A0=C2=A0 [95]=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 )
=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 ;; Newline: =E2=86=B5 or =C2=AC or $
=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (newline-mark 10=C2=A0 [8629 10] [172 10] [3= 6 10])
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; Tab: =E2=87=A5 or = =C2=BB or \
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (tab-mark=C2=A0= =C2=A0=C2=A0=C2=A0 9=C2=A0=C2=A0 [8677 9]=C2=A0 [187 9]=C2=A0 [92 9] )))

*This* works as expected.

But I can't figure out why I couldn't do this in C= ustomize. What do you think?

Thank,
= ~ Andrew

--001a113fe08aac2e740557efe3db-- From unknown Tue Jun 17 22:12:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28183: Customize always reports error when trying to enter characters to Whitespace Mode display mappings Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Aug 2017 03:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28183 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andrew Toskin Cc: 28183@debbugs.gnu.org Received: via spool by 28183-submit@debbugs.gnu.org id=B28183.150406328319274 (code B ref 28183); Wed, 30 Aug 2017 03:22:02 +0000 Received: (at 28183) by debbugs.gnu.org; 30 Aug 2017 03:21:23 +0000 Received: from localhost ([127.0.0.1]:33072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dmtZD-00050o-8a for submit@debbugs.gnu.org; Tue, 29 Aug 2017 23:21:23 -0400 Received: from mail-it0-f48.google.com ([209.85.214.48]:36299) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dmtZB-00050a-9q for 28183@debbugs.gnu.org; Tue, 29 Aug 2017 23:21:21 -0400 Received: by mail-it0-f48.google.com with SMTP id o132so1477448itc.1 for <28183@debbugs.gnu.org>; Tue, 29 Aug 2017 20:21:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=B7/XU5CAkTTR5j/sxhySL3GEFZz93tgxf0VypbbFXf0=; b=DrFLLvUzqBF8i0OJjBwX9en6y7hyd2Ll8g1NnM+D7hbQXfm9Fsvgma0C+YTXAxL8Gv i7Z1AOpPcFuaELhkeEoQJRuuSNFiuNeDPqvgWNWt5jSebL8mAG9r3n+XQJPQ70fMDJgq JezHC9p7unj9TcOFYAzloLK6pNX41LRw56oDVPwTz13Nuntwnxk5ZgYZtQBgec4KtUV4 6n39F3BTdPMuRGA7b2sB11zz1usmXSXA5t7DbCuduBbEuqCaU9K9KUBkUou0Cddq/av4 bsb5TYHXwd/JwFP5btuhtaUa/IFP/tOyX76hTN+PQBkvL8rj/eKiXH+liAiB/2z/zPVH MNJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=B7/XU5CAkTTR5j/sxhySL3GEFZz93tgxf0VypbbFXf0=; b=qNhZW+Pj1zSz7mFISBolaevCpnPiHLvQ093AMR+PgKs6CDZs/tSAgcGrjjrea02CYi Hc1OJD5zEz4GSgU8JK/1GkvC96XAqZB2vF5+VTrUS7FsIr5jOSXNrkptqDoNzAWfOsre 1CvzvFLUuaUk6pNRAj0IAim1g0fycifVE965Q90vmEy9RoMC/N3vqaHNpqlR265eRy6P x8RL0aFqimlJCH/dJrsdzzlAgMBxTSrcoWMlfDmyc4jHdQEvpbSfbVkXosW/HCjKEvoP 7RywfSmb2HFdy4clLc1Z4Un7cqvVU8a7jJS76QnVM9yNrWsGKOrGot+yTEm7vNB3SfnC wSTg== X-Gm-Message-State: AHYfb5iAKqsKfq6TjdDrqXdTB/ojqal/kDiRR7c9xk3AAEQmKK/Aj3YI pkV00zn7xQNn8IwT X-Received: by 10.36.162.65 with SMTP id o1mr151523iti.155.1504063275573; Tue, 29 Aug 2017 20:21:15 -0700 (PDT) Received: from zony ([45.2.119.49]) by smtp.googlemail.com with ESMTPSA id 80sm247201itk.11.2017.08.29.20.21.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 Aug 2017 20:21:14 -0700 (PDT) From: npostavs@users.sourceforge.net References: Date: Tue, 29 Aug 2017 23:22:55 -0400 In-Reply-To: (Andrew Toskin's message of "Tue, 29 Aug 2017 20:11:31 -0700") Message-ID: <87a82h91tc.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) Andrew Toskin writes: > Bump. > > Any ideas? There seems to be a suggestion for a fix in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=15925#11. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 17 12:20:10 2018 Received: (at control) by debbugs.gnu.org; 17 Jun 2018 16:20:10 +0000 Received: from localhost ([127.0.0.1]:54039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fUaPS-0003OR-D8 for submit@debbugs.gnu.org; Sun, 17 Jun 2018 12:20:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55105) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fUaPQ-0003OD-Mp for control@debbugs.gnu.org; Sun, 17 Jun 2018 12:20:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fUaPK-0001WY-Ui for control@debbugs.gnu.org; Sun, 17 Jun 2018 12:20:03 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50964) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUaPK-0001WO-Qz for control@debbugs.gnu.org; Sun, 17 Jun 2018 12:20:02 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1fUaPK-0006Vs-Ks for control@debbugs.gnu.org; Sun, 17 Jun 2018 12:20:02 -0400 Subject: control message for bug 31869 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Sun, 17 Jun 2018 12:20:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) merge 15925 31869 From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 22 11:43:18 2020 Received: (at control) by debbugs.gnu.org; 22 Sep 2020 15:43:18 +0000 Received: from localhost ([127.0.0.1]:32963 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKkRp-0008GZ-Ts for submit@debbugs.gnu.org; Tue, 22 Sep 2020 11:43:18 -0400 Received: from mail-wr1-f41.google.com ([209.85.221.41]:34596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKkRm-0008GK-Kc for control@debbugs.gnu.org; Tue, 22 Sep 2020 11:43:16 -0400 Received: by mail-wr1-f41.google.com with SMTP id t10so17621838wrv.1 for ; Tue, 22 Sep 2020 08:43:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=a3hMyl9NYBycwQpcJ2M7VmAzM9jbriWJG06X7az2FfY=; b=FWQ50qStTgxaOQ5SJxzW4PWt2O3MSQ1nhHxpS7mb0EgBm7Z0qcM3rNF1fwQvWjo78k c9E3CR4frF+t/WRR08tYLlcnzh5+my2JxwZqaCZnkkHrtUadIRL7lxwE2VzSA3x8QhO8 fUI8szKw2kALNm54yL4dko6EZwcrCjPjL1kTGeOajstbBHxF5B2FBh3Zitl+AdijGvQZ uArptJXRyOLZ4qmEkxFJTfcNhG8GW6sFIdQtTih1+5nnXQcYP2CyUvj+uhAKtQ0lPm06 flxFEwyhFAHOb90UNZxJuhK826sV8IegOBgeW+216G9LHPsx7E6CYzz2NEf65+pcjnCS Yc5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=a3hMyl9NYBycwQpcJ2M7VmAzM9jbriWJG06X7az2FfY=; b=G2LbGL2GkY9qBzdoYQPOhXjSWytVXtpcHrpnjU0cX8T9Vu3gfjSDSq2VZrIXm5G8Gc cuuzmJB+pGTwsEKFOV6rXOS9SODnJQWrpecYyHaLgF7P1SNllgJQC7e65byUPasw4zPn HR3YzqerW3eBRHa9n7K427Nyc5taCxfmpPlbmyO58W/7fW2Ml3QQqSF2y2X8ZQTsgcQU ObK/06Mnhdnm/i5DTNfaHVNCboQv64ZC/G0lGZgZ5ExO2e3uUYmN3gAo+zuRqHoDx3WU FN1CvDnzOdv+SoCvOHzOW+3DBkTRIE1yoA4S5Nii+7St9I1A1LcWaXE78ZUzVX3xkk0E T3Pw== X-Gm-Message-State: AOAM530aMvzt98y+TEr+gIUzfsTGVumV6OChHoTs8T4dKW26Rc6h0fyk P6Q3lxGAT0LjIkeDTIUA9OgVvfYEYcu5ehKOWIpGryWCxXY= X-Google-Smtp-Source: ABdhPJwL9pMOxZBT/en4zb/W+Uf+3IROb/ubew4zE01g2t46eNFW9EBE5Goj6QWy9tjYl5DvmsiJ7YAfiocs6sGSyo0= X-Received: by 2002:adf:a3c3:: with SMTP id m3mr6012739wrb.70.1600789388642; Tue, 22 Sep 2020 08:43:08 -0700 (PDT) MIME-Version: 1.0 From: Mauro Aranda Date: Tue, 22 Sep 2020 12:42:57 -0300 Message-ID: Subject: To: control@debbugs.gnu.org Content-Type: multipart/alternative; boundary="000000000000decbc905afe8d2e0" X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 15925 patch quit tags 15925 patch quit Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (maurooaranda[at]gmail.com) 0.0 HTML_MESSAGE BODY: HTML included in message -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.221.41 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.221.41 listed in list.dnswl.org] 2.0 BLANK_SUBJECT Subject is present but empty X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) --000000000000decbc905afe8d2e0 Content-Type: text/plain; charset="UTF-8" tags 15925 patch quit --000000000000decbc905afe8d2e0 Content-Type: text/html; charset="UTF-8"
tags 15925 patch
quit
--000000000000decbc905afe8d2e0-- From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 26 11:10:33 2020 Received: (at control) by debbugs.gnu.org; 26 Sep 2020 15:10:33 +0000 Received: from localhost ([127.0.0.1]:47560 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMBqK-0004b4-T2 for submit@debbugs.gnu.org; Sat, 26 Sep 2020 11:10:33 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMBqI-0004al-T9 for control@debbugs.gnu.org; Sat, 26 Sep 2020 11:10:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=kRgvWAeGE3t8XbggmV0G7GUcMugmPNbrUkUbeJDe3j4=; b=sepA1p2NjpMlCcSs2qPxRF706G 54KsQCqekomqJZlUUIbh+YEqW4e6Tyc9ZF0yEaD8mJbEkOtNVpop+Q6+p3/ZfDAyqeL6/FHVQfN7Q AG6dwNQqjXNV+XVqH+TH8SXNZbByQr7F+lslj7Vxvwc/ieSMSCtftIcIWMQ3ysnBwSN4=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kMBqB-0000DA-Aj for control@debbugs.gnu.org; Sat, 26 Sep 2020 17:10:25 +0200 Date: Sat, 26 Sep 2020 17:10:21 +0200 Message-Id: <873634k202.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #15925 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 15925 fixed close 15925 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 15925 fixed close 15925 28.1 quit