From: Simon Josefsson <jas@extundo.com>
Cc: emacs-devel@gnu.org
Subject: Re: Customize key bindings?
Date: Tue, 30 Dec 2003 11:56:31 +0100 [thread overview]
Message-ID: <ilun09ar2u8.fsf@latte.josefsson.org> (raw)
In-Reply-To: <200312300217.hBU2Hxj26432@raven.dms.auburn.edu> (Luc Teirlinck's message of "Mon, 29 Dec 2003 20:17:59 -0600 (CST)")
Luc Teirlinck <teirllm@dms.auburn.edu> writes:
> Simon Josefsson wrote:
>
> Looking into why the :set functions need to do set-default for
> customize-variable to pick up the currently set valued would be useful
> as well. (See comment about custom bug below.)
>
> Why is this a bug? Custom sets default values, so it has to use
> set-default. (What else would you have wanted to use?)
It might not be a bug, but without set-default you get a rather
surprising result:
start emacs
M-x customize-variable RET custom-key-alist RET
add some settings
click on set + save
quit emacs
<<the variable the user selected is stored in .emacs>>
<<the variable itself in the running emacs was still nil>>
start emacs
M-x customize-variable RET custom-key-alist RET
the list is now empty?
clicking on set + save loses the settings made previously?
I think I understand why it behave like this now -- customize only
customizes real variable values, and the :set should be responsible
for setting the variable as well. I removed the comment about a
custom bug in my second release of custom-key.el to gnu.emacs.sources,
after realizing this, last night.
(Perhaps the "save" step in part 1 above really shouldn't have stored
the values the user selected? It should have saved the contents of
the variable, the value after calling :set?)
next prev parent reply other threads:[~2003-12-30 10:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-29 22:28 Customize key bindings? Simon Josefsson
2003-12-30 2:17 ` Luc Teirlinck
2003-12-30 10:56 ` Simon Josefsson [this message]
2003-12-30 14:38 ` Alex Schroeder
2003-12-30 20:21 ` Simon Josefsson
2003-12-30 19:43 ` Richard Stallman
2003-12-30 20:34 ` Simon Josefsson
2004-01-02 16:11 ` Kai Grossjohann
2004-01-03 23:25 ` Simon Josefsson
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=ilun09ar2u8.fsf@latte.josefsson.org \
--to=jas@extundo.com \
--cc=emacs-devel@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).