unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [drew.adams@oracle.com: customize-set-variable does not ask user for value or say that it changed value]
@ 2007-11-12  5:59 Richard Stallman
  0 siblings, 0 replies; only message in thread
From: Richard Stallman @ 2007-11-12  5:59 UTC (permalink / raw)
  To: emacs-devel

Would someone please DTRT and ack?
The current behavior is certainly bad.
There is a question about what is the best thing to do;
please do what seems reasonable.


------- Start of forwarded message -------
X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY 
	autolearn=failed version=3.1.0
From: "Drew Adams" <drew.adams@oracle.com>
To: "Bug-Gnu-Emacs" <bug-gnu-emacs@gnu.org>
Date: Tue, 6 Nov 2007 13:50:45 -0800
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Subject: customize-set-variable does not ask user for value or say that it
	changed value

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'
------- End of forwarded message -------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-11-12  5:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-12  5:59 [drew.adams@oracle.com: customize-set-variable does not ask user for value or say that it changed value] Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).