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: customize-set-variable does not ask user for value or say that it changed value Date: Tue, 6 Nov 2007 13:50:45 -0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1194386478 10057 80.91.229.12 (6 Nov 2007 22:01:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Nov 2007 22:01:18 +0000 (UTC) To: "Bug-Gnu-Emacs" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 06 23:01:20 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IpWU3-0004ex-9t for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Nov 2007 23:01:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IpWTs-0002Ro-98 for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Nov 2007 17:01:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IpWTm-0002OP-RR for bug-gnu-emacs@gnu.org; Tue, 06 Nov 2007 17:01:02 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IpWTl-0002Kg-0e for bug-gnu-emacs@gnu.org; Tue, 06 Nov 2007 17:01:02 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IpWTk-0002KK-Q5 for bug-gnu-emacs@gnu.org; Tue, 06 Nov 2007 17:01:00 -0500 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IpWKk-0004z0-EO for bug-gnu-emacs@gnu.org; Tue, 06 Nov 2007 16:51:42 -0500 Original-Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id lA6Lpb3u000559 for ; Tue, 6 Nov 2007 15:51:37 -0600 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id lA51l82R009922 for ; Tue, 6 Nov 2007 14:51:36 -0700 Original-Received: from dhcp-amer-whq-csvpn-gw3-141-144-81-9.vpn.oracle.com by acsmt350.oracle.com with ESMTP id 3348486421194385838; Tue, 06 Nov 2007 13:50:38 -0800 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16924 Archived-At: emacs -Q Evaluate this: (defcustom toto 'something-else "toto" :type '(choice (const :tag "foo" foo) (const :tag "bar" bar))) M-x customize-set-variable RET toto RET That correctly asks the user to choose `foo' or `bar'. Note, however, that the initial value does not correspond to the :type - there is a type mismatch. Now, change `something-else' to `foo' and try again (defcustom toto 'foo "toto" :type '(choice (const :tag "foo" foo) (const :tag "bar" bar))) M-x customize-set-variable RET toto RET `customize-set-variable' ends silently without prompting user to choose a value and without saying that the value was changed. It could be argued that this is correct - the value is toggled to `bar', but it's not obvious that the user wants that. More importantly, if this is the intended behavior (a feature, not a bug), then there should at least be some feedback for the user: a confirmation that the value was in fact changed to `bar'. In GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600) of 2007-06-02 on RELEASE Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --cflags -Ic:/gnuwin32/include'