From: Stefan <monnier@iro.umontreal.ca>
Subject: Re: Getting more info on a variable in Customize buffers
Date: Tue, 04 Jan 2005 09:13:26 -0500 [thread overview]
Message-ID: <m18y79qois.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <rjbrc5v95o.fsf@sheridan.dina.kvl.dk> (Per Abrahamsen's message of "Tue, 04 Jan 2005 10:24:51 +0100")
>>> I probably don't fully understand, although I think I follow you. Sounds
>>> like an implementation problem to me - or perhaps a design problem?
>>
>> The designer might call it a feature rather than a problem.
>>
>> I do tend to think that it was a mistake to design something that looks like
>> an elisp variable and which happens to be an elisp variable in 99% of the
>> cases but which may be something else.
> I kind of agree, I always thought there instead would be many more
> "defsomething".
> The :get, :set and :init were, if I remember right, introduced by
> XEmacs people for use with specifiers. And since I didn't really care
> about XEmacs (and certainly didn't understood specifiers to write a
> defspecifier) I let them have their way.
Interesting. And good to hear.
> And when it was there, it also got (ab)used in Emacs for minor modes.
> It should have been part of a define-minor-mode instead, but as I
> remember there already is was one of those.
We now have a proper `define-minor-mode' (which internally uses :set but
I guess that's OK).
> There also is a patch floating around here to overload defcustom for
> keymaps as well. Again, I can't come up with a good API for a
> "defkeymap", and wouldn't find the time to implement it anyway.
I remember trying to introduce `defkeymap' but there wasn't much support for
it (it was a long time ago, way before the keymap-custom hack appeared).
Most/all keymaps are defined as something similar to:
(defvar foo-map
(let ((map (make-sparse-keymap)))
(define-key map X1 Y1)
(define-key map X2 Y2)
(define-key map X3 Y3)
(substitute-key-definition X4 Y4 map global-map)
map))
so I suggested
(defkeymap foo-map
'((X1 Y1)
(X2 Y2)
(X3 Y3)
(X4 Y4)))
with some additional options like :inherit and :suppress. What it does
w.r.t Custom can then be adjusted as you please and improved over time.
Stefan
next prev parent reply other threads:[~2005-01-04 14:13 UTC|newest]
Thread overview: 71+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-02 6:41 Getting more info on a variable in Customize buffers Drew Adams
2005-01-02 13:27 ` Luc Teirlinck
2005-01-02 19:48 ` Drew Adams
2005-01-02 20:44 ` Luc Teirlinck
2005-01-02 23:52 ` Drew Adams
2005-01-03 16:55 ` Robert J. Chassell
2005-01-03 17:13 ` Drew Adams
2005-01-03 17:20 ` Luc Teirlinck
2005-01-03 17:57 ` Drew Adams
2005-01-04 9:03 ` Per Abrahamsen
2005-01-04 9:10 ` Per Abrahamsen
2005-01-04 9:26 ` Miles Bader
2005-01-04 10:16 ` Per Abrahamsen
2005-01-04 15:55 ` Luc Teirlinck
2005-01-04 18:12 ` Drew Adams
2005-01-04 18:27 ` Luc Teirlinck
2005-01-04 19:50 ` Drew Adams
2005-01-05 8:33 ` Per Abrahamsen
2005-01-05 17:50 ` Robert J. Chassell
2005-01-02 20:25 ` Reiner Steib
2005-01-02 20:34 ` Andreas Schwab
2005-01-02 23:52 ` Drew Adams
2005-01-03 0:35 ` Stefan
2005-01-03 1:57 ` Drew Adams
2005-01-03 17:39 ` Stefan Monnier
2005-01-03 20:45 ` Drew Adams
2005-01-04 9:46 ` Per Abrahamsen
2005-01-04 18:12 ` Drew Adams
2005-01-05 3:31 ` Richard Stallman
2005-01-05 17:31 ` Drew Adams
2005-01-05 20:48 ` Lennart Borgman
2005-01-05 21:43 ` Drew Adams
2005-01-05 21:54 ` Lennart Borgman
2005-01-06 9:06 ` Per Abrahamsen
2005-01-06 15:26 ` Robert J. Chassell
2005-01-06 20:23 ` Lennart Borgman
2005-01-06 19:05 ` Drew Adams
2005-01-06 19:55 ` Richard Stallman
2005-01-06 20:30 ` Lennart Borgman
2005-01-24 22:29 ` Lennart Borgman
2005-01-09 3:23 ` Richard Stallman
2005-01-04 9:24 ` Per Abrahamsen
2005-01-04 14:13 ` Stefan [this message]
2005-01-04 19:54 ` Richard Stallman
2005-01-04 20:39 ` Stefan Monnier
2005-01-05 20:07 ` Richard Stallman
2005-01-05 20:25 ` Stefan Monnier
2005-01-06 19:56 ` Richard Stallman
2005-01-05 8:48 ` Per Abrahamsen
2005-01-03 17:47 ` Robert J. Chassell
2005-01-03 20:39 ` Stefan Monnier
2005-01-04 1:58 ` Robert J. Chassell
2005-01-03 7:51 ` David Kastrup
2005-01-04 0:54 ` Luc Teirlinck
2005-01-05 3:31 ` Richard Stallman
2005-01-05 4:43 ` Stefan Monnier
2005-01-06 3:46 ` Luc Teirlinck
2005-01-06 13:43 ` Stefan Monnier
2005-01-07 2:49 ` Richard Stallman
2005-01-06 19:56 ` Richard Stallman
2005-01-07 4:17 ` Luc Teirlinck
2005-01-07 23:04 ` Richard Stallman
2005-01-04 3:38 ` Richard Stallman
2005-01-03 17:28 ` drkm
2005-01-03 18:16 ` Lennart Borgman
2005-01-03 18:56 ` drkm
2005-01-04 9:49 ` Per Abrahamsen
2005-01-04 9:32 ` Per Abrahamsen
2005-01-04 12:53 ` Lennart Borgman
2005-01-04 18:12 ` Drew Adams
2005-01-03 0:58 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m18y79qois.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.