GNU bug report logs - #15689
24.3.50; Error in Customize: Symbol's function definition is void: nil

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Drew Adams <drew.adams@HIDDEN>; Keywords: confirmed; merged with #25152; dated Wed, 23 Oct 2013 05:02:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Merged 15689 25152. Request was from npostavs@HIDDEN to control <at> debbugs.gnu.org. Full text available.
Added tag(s) confirmed. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
bug Marked as found in versions 25.0.94. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
bug Marked as found in versions 24.5. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 23 Oct 2013 05:01:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 23 01:01:10 2013
Received: from localhost ([127.0.0.1]:36648 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1VYqZB-0007qS-6r
	for submit <at> debbugs.gnu.org; Wed, 23 Oct 2013 01:01:09 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51344)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <drew.adams@HIDDEN>) id 1VYqZ6-0007pr-34
 for submit <at> debbugs.gnu.org; Wed, 23 Oct 2013 01:01:05 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1VYqYq-0004uG-JE
 for submit <at> debbugs.gnu.org; Wed, 23 Oct 2013 01:00: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.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:35880)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1VYqYq-0004uC-G3
 for submit <at> debbugs.gnu.org; Wed, 23 Oct 2013 01:00:48 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:53033)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1VYqYh-0007wb-P2
 for bug-gnu-emacs@HIDDEN; Wed, 23 Oct 2013 01:00:48 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1VYqYZ-0004s7-5Q
 for bug-gnu-emacs@HIDDEN; Wed, 23 Oct 2013 01:00:39 -0400
Received: from userp1040.oracle.com ([156.151.31.81]:46355)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1VYqYY-0004s1-U4
 for bug-gnu-emacs@HIDDEN; Wed, 23 Oct 2013 01:00:31 -0400
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 <bug-gnu-emacs@HIDDEN>; Wed, 23 Oct 2013 05:00:29 GMT
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 <bug-gnu-emacs@HIDDEN>; Wed, 23 Oct 2013 05:00:28 GMT
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 <bug-gnu-emacs@HIDDEN>; Wed, 23 Oct 2013 05:00:27 GMT
MIME-Version: 1.0
Message-ID: <8b73a914-b541-435f-a9b1-c2ca48ef0fd0@default>
Date: Tue, 22 Oct 2013 22:00:27 -0700 (PDT)
From: Drew Adams <drew.adams@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.3.50; Error in Customize: Symbol's function definition is void: nil
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8  (707110) [OL
 12.0.6680.5000 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
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-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)


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@HIDDEN
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --enable-checking 'CFLAGS=3D-O0 -g3' CPPFLAGS=3D-DGLYPH_DEBUG=
=3D1'




Acknowledgement sent to Drew Adams <drew.adams@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#15689; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 10 Dec 2016 04:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.