From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Claudio Bley Newsgroups: gmane.emacs.bugs Subject: bug#15925: 24.3.50; error when customizing whitespace-display-mappings Date: Tue, 19 Nov 2013 08:37:49 +0100 Message-ID: <87mwl0vo36.wl%claudio.bley@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1384846754 28998 80.91.229.3 (19 Nov 2013 07:39:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Nov 2013 07:39:14 +0000 (UTC) To: 15925@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 19 08:39:19 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vifu1-00066J-2e for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Nov 2013 08:39:17 +0100 Original-Received: from localhost ([::1]:47604 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vifu0-0008Ac-NL for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Nov 2013 02:39:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37427) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vifts-0008AK-GA for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2013 02:39:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Viftn-0002eU-3Z for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2013 02:39:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Viftn-0002e2-07 for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2013 02:39:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Viftm-0006PF-D5 for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2013 02:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Claudio Bley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Nov 2013 07:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15925 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.138484669824480 (code B ref -1); Tue, 19 Nov 2013 07:39:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Nov 2013 07:38:18 +0000 Original-Received: from localhost ([127.0.0.1]:60851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vift3-0006Mi-Nc for submit@debbugs.gnu.org; Tue, 19 Nov 2013 02:38:18 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35649) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vift0-0006M2-KB for submit@debbugs.gnu.org; Tue, 19 Nov 2013 02:38:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vifsq-0002NA-6L for submit@debbugs.gnu.org; Tue, 19 Nov 2013 02:38:09 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:48440) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vifsq-0002N6-3h for submit@debbugs.gnu.org; Tue, 19 Nov 2013 02:38:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vifsk-0007mT-Ns for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2013 02:38:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vifsf-0002M1-Ct for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2013 02:37:58 -0500 Original-Received: from mail-ea0-x22c.google.com ([2a00:1450:4013:c01::22c]:44252) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vifsf-0002Lv-53 for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2013 02:37:53 -0500 Original-Received: by mail-ea0-f172.google.com with SMTP id q10so695434ead.17 for ; Mon, 18 Nov 2013 23:37:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:message-id:from:to:subject:user-agent:mime-version :content-type; bh=VL/qbS1oXvZcLPI04vhA4E2w/VRFcmTUAMUIxizw72w=; b=bhYVRyud1/d88nLp3LNDwyw87joPhawP9ARtHDu/fp4Iw1BBgJxiLQNqrrA/tp3JJ8 7eCznepQ2Ejgadh73HI23bIcjXCz5YTiluY9LRrxb9lFctREtXwxsD+LqbVfU47ZLlH6 13w3WW9D2hXheghT+2wMD++5mWuej6yNsHNG8qhMJm+OYa3szL3ZkCUJfGF1FStP70TH 5xijPmqNS/LweC7TbYpoWKuioCyGsEn1bHq88vxXvDYoA1+TTLCt4DMQ+eTpKFmWbgGf jKUt/21YxM4Ed/eAdRTFilVbp5vY2knTdjOWiOa363lr9Dn3+c4x6owxxE7lqEsAHuNS KeZg== X-Received: by 10.14.109.1 with SMTP id r1mr18589743eeg.32.1384846672113; Mon, 18 Nov 2013 23:37:52 -0800 (PST) Original-Received: from CLAUDIO-PC.localdomain.de (178-24-125-95-dynip.superkabel.de. [178.24.125.95]) by mx.google.com with ESMTPSA id o47sm45805454eem.21.2013.11.18.23.37.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Nov 2013 23:37:51 -0800 (PST) User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL/10.8 Emacs/24.3.50 (i686-pc-mingw32) MULE/6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:80752 Archived-At: 1. M-x customize-option RET whitespace-display-mappings RET 2. click INS to insert an arbitrary char into one of the vectors 3. click the State button and select "Set for current session" You should see this error / backtrace: Debugger entered--Lisp error: (error "This field should contain a single character") signal(error ("This field should contain a single character")) error("%s" "This field should contain a single character") custom-variable-set((custom-variable :documentation-shown t :custom-state modified :tag "Whitespace Display Mappings" :value whitespace-display-mappings :custom-form edit :custom-magic [...] call-interactively(widget-button-click nil nil) command-execute(widget-button-click) In wid-edit.el the character widget is defined as (define-widget 'character 'editable-field "A character." :tag "Character" :value 0 :size 1 :format "%{%t%}: %v\n" :valid-regexp "\\`.\\'" :error "This field should contain a single character" [...] Note, that the regexp does not match a single newline character, which happens to be the problem here, as the default value of `whitespace-display-mappings' is ((space-mark 32 [183] [46]) (space-mark 160 [164] [95]) (newline-mark 10 [36 10]) ;; <- ?\n here (tab-mark 9 [187 9] [92 9])) I think the regexp should be changed to "\\`\(.\|\n\)\\'" to allow a single newline also. Claudio -- Claudio