unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
To: martin rudalics <rudalics@gmx.at>
Cc: emacs-devel@gnu.org
Subject: Re: "CHANGED outside Customize" in frames customization group
Date: Sun, 30 Dec 2007 17:58:44 -0500	[thread overview]
Message-ID: <E1J977E-0003yc-Ku@fencepost.gnu.org> (raw)
In-Reply-To: <4777E0F1.3080100@gmx.at> (message from martin rudalics on Sun, 30 Dec 2007 19:18:25 +0100)

    `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.

Ok, but why does that matter for this issue?

     >     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.

Here's an idea.  We can create a new variable
`command-args-frame-alist', and make the functions which obey
`default-frame-alist' use `command-args-frame-alist' too.

Settings such as `menu-bar-lines', which are set by arguments and X
resources can go in `command-args-frame-alist', and would not affect
`default-frame-alist'.  One consequence would be that the values
specified by command line options and X resources would override your
customizations.  That seems correct.

    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.

The solution to that is just to inform Custom about the change, so it
will realize that the change to `default-frame-alist' was made within
Custom.

It's just a bug, it just needs to be fixed.

     > 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'?

Maybe it should, but that would require a new Custom feature:
dependencies, "If you save `foo', always save `bar' too".

  reply	other threads:[~2007-12-30 22:58 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
2007-12-30 22:58         ` Richard Stallman [this message]
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=E1J977E-0003yc-Ku@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=rudalics@gmx.at \
    /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).