unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* add generic toggle, turn on, and turn off commands to Options menu
@ 2006-03-04 21:24 Drew Adams
  2006-04-21 16:33 ` Drew Adams
  0 siblings, 1 reply; 5+ messages in thread
From: Drew Adams @ 2006-03-04 21:24 UTC (permalink / raw)


For after the Release or Godot, whichever comes first -

The question has occasionally been debated here whether such and such an
option merits a place on the Options menu, and, if so, where to put it
(submenu? order?). There are potentially lots and lots of boolean options
that could be added to the menu, but it also makes sense to keep the menu a
reasonable size.

Here's a suggestion that might mitigate the effect of leaving some options
out: As a fallback, add a generic menu item that reads the name of a binary
option and toggles its value. In fact, add three generic menu items, to 1)
toggle, 2) turn on, and 3) turn off any boolean option.

In my own code I use such commands, which are also in the Options menu. And
because many options are only "quasi-binary", you can use a prefix arg to
control how strict the interpretation of "binary" is, for purposes of
defining the set of completion candidates. Here's the doc string of the
toggle-option command:

 Toggle option's value.  This makes sense for binary (toggle) options.
 By default, completion candidates are limited to user options that
 have `boolean' custom types.  However, there are many "binary" options
 that allow other non-nil values than t.

 You can use a prefix argument to change the set of completion
 candidates, as follows:
  - With a non-negative prefix arg, all user options are candidates.
  - With a negative prefix arg, all variables are candidates.

Would this be useful?

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

end of thread, other threads:[~2006-04-24 11:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-04 21:24 add generic toggle, turn on, and turn off commands to Options menu Drew Adams
2006-04-21 16:33 ` Drew Adams
2006-04-23 21:58   ` Richard Stallman
2006-04-23 22:42     ` Drew Adams
2006-04-24 11:51       ` 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).