From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#15689: 24.3.50; Error in Customize: Symbol's function definition is void: nil Date: Tue, 22 Oct 2013 22:00:27 -0700 (PDT) Message-ID: <8b73a914-b541-435f-a9b1-c2ca48ef0fd0@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1382504545 2223 80.91.229.3 (23 Oct 2013 05:02:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2013 05:02:25 +0000 (UTC) To: 15689@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 23 07:02:28 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 1VYqaR-00031q-50 for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Oct 2013 07:02:27 +0200 Original-Received: from localhost ([::1]:47655 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYqaQ-00080o-Jp for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Oct 2013 01:02:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53188) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYqaD-00080O-IO for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2013 01:02:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VYqa3-00051U-Dr for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2013 01:02:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50862) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYqa3-00051P-AK for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2013 01:02:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VYqa2-0007ri-PQ for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2013 01:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Oct 2013 05:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15689 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.138250447130166 (code B ref -1); Wed, 23 Oct 2013 05:02:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Oct 2013 05:01:11 +0000 Original-Received: from localhost ([127.0.0.1]:36648 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VYqZB-0007qS-6r for submit@debbugs.gnu.org; Wed, 23 Oct 2013 01:01:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51344) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VYqZ6-0007pr-34 for submit@debbugs.gnu.org; Wed, 23 Oct 2013 01:01:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VYqYq-0004uG-JE for submit@debbugs.gnu.org; Wed, 23 Oct 2013 01:00:58 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:35880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYqYq-0004uC-G3 for submit@debbugs.gnu.org; Wed, 23 Oct 2013 01:00:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53033) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYqYh-0007wb-P2 for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2013 01:00:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VYqYZ-0004s7-5Q for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2013 01:00:39 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:46355) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYqYY-0004s1-U4 for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2013 01:00:31 -0400 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r9N50T8M028692 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 23 Oct 2013 05:00:29 GMT Original-Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r9N50S3B000076 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 23 Oct 2013 05:00:28 GMT Original-Received: from abhmt105.oracle.com (abhmt105.oracle.com [141.146.116.57]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r9N50R5G016593 for ; Wed, 23 Oct 2013 05:00:27 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] 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:79522 Archived-At: emacs -Q Evaluate this in *scratch*: (defcustom foo () "..." :type '(repeat (restricted-sexp :match-alternatives (custom-theme-p))) :group 'editing) M-x customize option foo 1.=20 Click the INS button. At the prompt use C-g. A DEL button and an extra INS button were inserted. Click the DEL button -> the error is raised. 2. Click the rightmost INS button. You again get the Lisp sexp prompt. Enter `42' (no quotes. The character `*' (value 42) appears in the Lisp sexp field, instead of the number 42 (which is also a sexp). And now there are 3 INS buttons and 2 DEL buttons. Getting a bit crazy. You can click the rightmost DEL button to delete it and the 3rd (or 2nd) INS button. Clicking the remaining DEL button still raises the error. 3. Clicking the rightmost INS button and typing sexps, you can end up with things like this, which is nuts: INS DEL Lisp expression: INS DEL Lisp expression: INS State: STANDARD 4. Starting over, you can enter `user', which is `custom-theme-p', no problem. But if you try to enter, say, `phlogisten', which is not, you get a "Wrong type argument: char-or-string-p, phlogisten" error. It's not good to show such a low-level error message. And in this case it makes little sense: a user will wonder why it is expecting a char or string. When you type `user', the successfully entered value is a symbol, not a char or a string. =20 IOW, the preliminary reading of input is being handled at too low a level wrt type errors. The right error message is to say that the input is not `custom-theme-p'. In GNU Emacs 24.3.50.1 (i686-pc-mingw32) of 2013-10-19 on LEG570 Bzr revision: 114715 rgm@gnu.org-20131019023520-s8mwtib7xcx9e05w Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --enable-checking 'CFLAGS=3D-O0 -g3' CPPFLAGS=3D-DGLYPH_DEBUG= =3D1'