unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* set-variable and customize-set-variable
@ 2006-06-03 17:43 Drew Adams
  2006-06-05 15:37 ` Richard Stallman
  0 siblings, 1 reply; 2+ messages in thread
From: Drew Adams @ 2006-06-03 17:43 UTC (permalink / raw)


1. It's not clear to me why we have two commands for setting a user option,
`set-variable' and `customize-set-variable', and why their user interfaces
are so different.

The doc strings for these two commands are very similar. IIUC, the main
difference is that s-v sets the current value only, and c-s-v sets the
default value. I might not understand the difference 100% well - what is it?
When do we expect users to use one or the other command?

Can/should these two commands be combined somehow? Each already lets you use
a prefix arg to alter its behavior slightly (local value for s-v, add a
comment for c-s-v). Why not merge the two commands somehow?


2. As long as we do have both commands:

 - I don't find any mention of c-s-v in the Emacs manual (or the
   Elisp manual).

 - Can we change the UI of s-v so that it too allows completion
   when appropriate (e.g. for a `choice' that includes `const's)?
   If completion can be used for c-s-v, then why not also for s-v?

Of course, completion would only be available for user options defined with
defcustom, not with defvar (with `*' starting the doc string). That is,
completion would only be available when the possible values were known. IOW,
why not let s-v do what c-s-v does when it can do so?

The convenience of completion makes it all the more questionable that c-s-v
is not even mentioned in the manual.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-06-05 15:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-03 17:43 set-variable and customize-set-variable Drew Adams
2006-06-05 15:37 ` 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).