unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: RE: customizing key definitions with Customize
Date: Fri, 16 May 2008 01:02:26 -0700	[thread overview]
Message-ID: <004b01c8b72b$2e4c2cc0$0200a8c0@us.oracle.com> (raw)
In-Reply-To: <E1JwhQt-0005KH-Fc@fencepost.gnu.org>

>     Command `custom-create-keymap-option' creates a user 
>     option of the same = name as
>     its keymap argument, but with `-defs' appended. E.g.,
> 
>      M-x custom-create-keymap-option RET bookmark-map
> 
> We should not ask _users_ to type any commands to make a map
> customizable.

"Should", "should". This thread started with my mail about libraries
(programmers) using defcustom to provide users the ability to customize some key
bindings. It would typically be libraries, not users, that would create
customizable keymaps (i.e. options). But please don't get hung up on where or
when the option is created. The first item to discuss is the means of
customizing - how it works in Lisp and what the user experiences in Customize.

There are lots of possibilities along the lines of the topic raised, including
complete customization of a keymap or of all keymaps, and automatic defcustoms
(or defkeymaps or whatever) for all keymaps. Let's keep the discussion open for
the moment, without immediately nailing down what "should" be done.

> Rather, all the keymaps that Emacs knows about should
> be known to Custom as well.  So anything that has to be done in order
> to make a keymap known to Custom should be done in the Lisp code.

Should be _doable_ in Lisp code. It's not a foregone conclusion that we want
users to use Customize on all keymaps. But Lisp should be able to make any
keymap customizable.

> It would make sense to have a command `customize-keymap' as a user
> interface for running Custom to customize one particular keymap.

Yes. In the approach I suggested, that is just `customize-option'. I hope you
will at least try the code.

> But we also should be able to include keymaps in custom groups.

Keymaps or keymap-valued variables? That's one question. The approach I outlined
was to use the latter. And being normal defcustoms, they can of course be
included in groups.

>     Unlike faces, keymaps, apart from keymap-valued variables, do not
>     have names, so the approach I suggested makes sense: customize
>     keymap variables, not "first-class" keymap objects.
> 
> If that works out conveniently, I am not against it.
> 
> It would be nice if the macros for defining major modes
> were connected to this, so that all the keymaps were
> customizable.

I agree. But we might (might) want to be able to specify some keymaps, or some
parts of some keymaps, as not customizable - or at least not make it immediate
and easy to customize them.






  reply	other threads:[~2008-05-16  8:02 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-11 19:40 customizing key definitions with Customize Drew Adams
2008-05-11 22:02 ` Lennart Borgman (gmail)
2008-05-11 22:28   ` Drew Adams
2008-05-11 22:40     ` Lennart Borgman (gmail)
2008-05-11 23:02       ` Drew Adams
2008-05-11 23:09         ` Lennart Borgman (gmail)
2008-05-11 23:19           ` Drew Adams
2008-05-11 23:23             ` Lennart Borgman (gmail)
2008-05-11 23:34               ` Drew Adams
2008-05-12 20:42                 ` Lennart Borgman (gmail)
2008-05-14  5:24         ` Drew Adams
2008-05-12  8:59 ` Reiner Steib
2008-05-12 20:58   ` Drew Adams
2008-05-12 11:20 ` Richard M Stallman
2008-05-12 14:01   ` Drew Adams
2008-05-13  0:03     ` Juri Linkov
2008-05-13  0:40       ` Lennart Borgman (gmail)
2008-05-13 14:59       ` Richard M Stallman
2008-05-13 23:59         ` Juri Linkov
2008-05-14  1:10           ` Stefan Monnier
2008-05-14 16:40           ` Richard M Stallman
2008-05-15  4:46             ` Drew Adams
2008-05-15 17:39               ` Richard M Stallman
2008-05-16  8:01                 ` Drew Adams
2008-05-16 17:46                   ` Richard M Stallman
2008-05-16 18:00                     ` David Kastrup
2008-05-16 23:58                       ` Drew Adams
2008-05-17  5:00                       ` Richard M Stallman
2008-05-16  7:51               ` Drew Adams
2008-05-18  1:22                 ` Drew Adams
2008-05-18  9:07                   ` Key/menu bug? (was: customizing key definitions with Customize) David Kastrup
2008-05-13 15:07       ` customizing key definitions with Customize David Reitter
2008-05-13 19:05         ` David Kastrup
2008-05-14  5:23       ` Drew Adams
2008-05-13  5:16     ` Richard M Stallman
2008-05-14  5:23       ` Drew Adams
2008-05-14 16:39         ` Richard M Stallman
2008-05-15  4:36           ` Drew Adams
2008-05-15 17:39             ` Richard M Stallman
2008-05-16  8:02               ` Drew Adams [this message]
2008-05-16 17:46                 ` Richard M Stallman
2008-05-16 23:58                   ` Drew Adams
2008-05-12 20:42   ` Lennart Borgman (gmail)

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='004b01c8b72b$2e4c2cc0$0200a8c0@us.oracle.com' \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    /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).