From: martin rudalics <rudalics@gmx.at>
To: rms@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: "CHANGED outside Customize" in frames customization group
Date: Sun, 30 Dec 2007 19:18:25 +0100 [thread overview]
Message-ID: <4777E0F1.3080100@gmx.at> (raw)
In-Reply-To: <E1J90JX-0001EX-W7@fencepost.gnu.org>
> IIUC `custom-reevaluate-setting' can be used to set a variable after
> some environment value has been established as for `blink-cursor-mode'.
> The situation seems completely different for `default-frame-alist'.
>
> In what way is it different?
`frame-notice-user-settings' may set the value of `default-frame-alist'
overriding a saved or standard value. The value of `blink-cursor-mode'
is not reset by Emacs.
> The first reason is immediately visible
> when starting Emacs without your .emacs. The value is here:
>
> ((left-fringe) (right-fringe) (menu-bar-lines . 1) (tool-bar-lines . 1))
>
> I know how to get rid of the -fringe entries.
>
> ISTR someone recently posted a patch that would affect the handling
> of fringes in `default-frame-alist'. Would they get rid of those?
I hope so.
> But I don't know what to
> do with the -line entries (which are BTW already there in Emacs 21).
>
> Why does anything need to be done with them?
> Could you just leave them alone?
> Or else change the numbers?
>
> Delete them in the customization buffer, save your settings, restart
> Emacs, and here they are again.
>
> That is arguably a bug, and maybe we should fix it.
> However, I do not see that this bug is so grave
> that we should conclude that `default-frame-alist' is
> unsuitable for use with Custom.
The bug causes the "CHANGED outside Customize ..." state.
> A second reason is the function `modify-all-frames-parameters'. This
> function may set `default-frame-alist'. Customize `tool-bar-mode' or
> `fringe-mode' and you will change your `default-frame-alist' settings.
>
> I don't see a problem in that. Why do you think it is a problem?
> What aspect of it is the problem?
Customizing `fringe-mode' calls `modify-all-frames-parameters' which
sets `default-frame-alist'. I'm now told that `default-frame-alist' was
CHANGED outside Customize although all I actually did was _customizing_
some option.
> If the problem is in some detail of the behavior of Custom when it is
> used on `default-frame-alist', maybe we can fix that detail.
> For instance, maybe those other commands should do somethingto inform
> Custom of the changes, so that it looks like `default-frame-alist'
> was set using Custom.
Suppose I set and save a new value for `fringe-mode'. Should Emacs
automatically set and save the new value for `default-frame-alist'?
next prev parent reply other threads:[~2007-12-30 18:18 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-29 9:44 "CHANGED outside Customize" in frames customization group martin rudalics
2007-12-29 15:51 ` Drew Adams
2007-12-29 16:14 ` Luc Teirlinck
2007-12-29 17:33 ` martin rudalics
2007-12-29 18:14 ` Drew Adams
2007-12-30 1:36 ` Richard Stallman
2007-12-29 17:48 ` Richard Stallman
2007-12-30 14:07 ` martin rudalics
2007-12-30 15:42 ` Richard Stallman
2007-12-30 18:18 ` martin rudalics [this message]
2007-12-30 22:58 ` Richard Stallman
2007-12-31 11:04 ` martin rudalics
2008-01-01 3:18 ` Richard Stallman
2008-01-01 10:24 ` martin rudalics
2008-01-03 9:50 ` Richard Stallman
2008-01-03 19:32 ` martin rudalics
2008-01-05 5:54 ` Richard Stallman
2008-01-05 10:14 ` martin rudalics
2008-01-06 18:10 ` Richard Stallman
2008-01-06 19:00 ` martin rudalics
2008-01-07 11:31 ` 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=4777E0F1.3080100@gmx.at \
--to=rudalics@gmx.at \
--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).