unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Subject: menu-bar-options-save and menu-bar-options-menu
Date: Mon, 17 Jan 2005 21:17:57 -0800	[thread overview]
Message-ID: <MEEKKIABFKKDFJMPIOEBKEOBCIAA.drew.adams@oracle.com> (raw)

I expect that modifying the Options menu will be one thing that customizing
users will want to do - especially adding options that are toggles.

Command `menu-bar-options-save' saves the changed options that appear in the
`menu-bar-options-menu'. However, the list of such options in
`menu-bar-options-save' is hard-coded, which seems inflexible.

If you change `menu-bar-options-menu' (e.g. adding an option to the menu),
you must (usually) separately change the hard-coded definition of
`menu-bar-options-save'. Presumably these two definitions were created by
hand and will be maintained by hand.

Could the list used in `menu-bar-options-save' be generated somehow from the
list of actual menu items at runtime? Or could the menu itself be generated
by a macro that also has the side effect of creating the list for
`menu-bar-options-save'? IOW, in some way (at runtime or compile-time), link
the two definitions by program, rather than by hand maintenance?

If such an approach is not taken, could a comment at least be added to 1)
the doc string of `menu-bar-options-save' and 2) the code defining the
Options menu, to indicate this maintenance relation between the function's
definition and the menu items more clearly? Something along the lines of "If
you modify the Options menu, you might want to also update the list of
options to be saved in `menu-bar-options-save'.

             reply	other threads:[~2005-01-18  5:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-18  5:17 Drew Adams [this message]
2005-01-18 19:28 ` menu-bar-options-save and menu-bar-options-menu Eli Zaretskii
2005-01-18 20:02   ` Drew Adams
2005-01-20  2:14     ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=MEEKKIABFKKDFJMPIOEBKEOBCIAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).