* default-frame-alist vs. initial-frame-alist
@ 2014-10-23 19:46 Tjernlund
2014-10-24 6:43 ` Eli Zaretskii
0 siblings, 1 reply; 14+ messages in thread
From: Tjernlund @ 2014-10-23 19:46 UTC (permalink / raw)
To: emacs-devel
I have to set both lists below to make the change in colors effective. I think it should be
enough with default-frame-alist. This is on both 24.3 and 24.4
;; Color settings.
(setq default-frame-alist '((background-color . "#333333") (foreground-color . "White") (cursor-color . "White")))
(setq initial-frame-alist default-frame-alist)
Jocke
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: default-frame-alist vs. initial-frame-alist
2014-10-23 19:46 default-frame-alist vs. initial-frame-alist Tjernlund
@ 2014-10-24 6:43 ` Eli Zaretskii
2014-10-24 13:04 ` Stefan Monnier
2014-10-24 17:46 ` Stefan Monnier
0 siblings, 2 replies; 14+ messages in thread
From: Eli Zaretskii @ 2014-10-24 6:43 UTC (permalink / raw)
To: Tjernlund; +Cc: emacs-devel
> From: Tjernlund <tjernlund@tjernlund.se>
> Date: Thu, 23 Oct 2014 21:46:27 +0200
>
> I have to set both lists below to make the change in colors
> effective. I think it should be enough with
> default-frame-alist. This is on both 24.3 and 24.4
This is the expected behavior, as described in the User Manual (see
the node "Frame Parameters"). Emacs always worked like that.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: default-frame-alist vs. initial-frame-alist
2014-10-24 6:43 ` Eli Zaretskii
@ 2014-10-24 13:04 ` Stefan Monnier
2014-10-24 13:08 ` Eli Zaretskii
2014-10-24 17:46 ` Stefan Monnier
1 sibling, 1 reply; 14+ messages in thread
From: Stefan Monnier @ 2014-10-24 13:04 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Tjernlund, emacs-devel
>> I have to set both lists below to make the change in colors
>> effective. I think it should be enough with
>> default-frame-alist. This is on both 24.3 and 24.4
> This is the expected behavior, as described in the User Manual (see
> the node "Frame Parameters"). Emacs always worked like that.
Really? When I do:
emacs -Q --eval '(setq default-frame-alist (quote ((background-color . "blue") (font . "fixed"))))'
I expect the initial frame to show me Emacs in a hideous font with
unbearable blue background. And indeed that's what I get here.
Stefan
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: default-frame-alist vs. initial-frame-alist
2014-10-24 13:04 ` Stefan Monnier
@ 2014-10-24 13:08 ` Eli Zaretskii
2014-10-24 13:51 ` Stefan Monnier
0 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2014-10-24 13:08 UTC (permalink / raw)
To: Stefan Monnier; +Cc: tjernlund, emacs-devel
> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Tjernlund <tjernlund@tjernlund.se>, emacs-devel@gnu.org
> Date: Fri, 24 Oct 2014 09:04:22 -0400
>
> >> I have to set both lists below to make the change in colors
> >> effective. I think it should be enough with
> >> default-frame-alist. This is on both 24.3 and 24.4
>
> > This is the expected behavior, as described in the User Manual (see
> > the node "Frame Parameters"). Emacs always worked like that.
>
> Really? When I do:
>
> emacs -Q --eval '(setq default-frame-alist (quote ((background-color . "blue") (font . "fixed"))))'
>
> I expect the initial frame to show me Emacs in a hideous font with
> unbearable blue background. And indeed that's what I get here.
I'm quite sure the OP customized the list from .emacs, not from the
command line. See the original message, which clearly shows that.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: default-frame-alist vs. initial-frame-alist
2014-10-24 13:08 ` Eli Zaretskii
@ 2014-10-24 13:51 ` Stefan Monnier
2014-10-24 14:12 ` Eli Zaretskii
0 siblings, 1 reply; 14+ messages in thread
From: Stefan Monnier @ 2014-10-24 13:51 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: tjernlund, emacs-devel
> I'm quite sure the OP customized the list from .emacs, not from the
> command line. See the original message, which clearly shows that.
I still don't understand: if I do
echo '(setq default-frame-alist (quote ((background-color . "blue") (font . "fixed"))))' >~/tmp/.emacs; HOME=$HOME/tmp emacs
I get the same result: a blue background and an ugly font, both on the
initial frame and on subsequent ones I might create with C-x 5 2.
Stefan
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: default-frame-alist vs. initial-frame-alist
2014-10-24 13:51 ` Stefan Monnier
@ 2014-10-24 14:12 ` Eli Zaretskii
2014-10-24 16:38 ` Tjernlund
0 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2014-10-24 14:12 UTC (permalink / raw)
To: Stefan Monnier; +Cc: tjernlund, emacs-devel
> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: tjernlund@tjernlund.se, emacs-devel@gnu.org
> Date: Fri, 24 Oct 2014 09:51:08 -0400
>
> > I'm quite sure the OP customized the list from .emacs, not from the
> > command line. See the original message, which clearly shows that.
>
> I still don't understand: if I do
>
> echo '(setq default-frame-alist (quote ((background-color . "blue") (font . "fixed"))))' >~/tmp/.emacs; HOME=$HOME/tmp emacs
>
> I get the same result: a blue background and an ugly font, both on the
> initial frame and on subsequent ones I might create with C-x 5 2.
Then whoever made this change in behavior failed to update the
documentation, which still says what I wrote.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: default-frame-alist vs. initial-frame-alist
2014-10-24 14:12 ` Eli Zaretskii
@ 2014-10-24 16:38 ` Tjernlund
2014-10-24 17:53 ` martin rudalics
0 siblings, 1 reply; 14+ messages in thread
From: Tjernlund @ 2014-10-24 16:38 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Stefan Monnier, emacs-devel
On Fri, 2014-10-24 at 17:12 +0300, Eli Zaretskii wrote:
> > From: Stefan Monnier <monnier@iro.umontreal.ca>
> > Cc: tjernlund@tjernlund.se, emacs-devel@gnu.org
> > Date: Fri, 24 Oct 2014 09:51:08 -0400
> >
> > > I'm quite sure the OP customized the list from .emacs, not from the
> > > command line. See the original message, which clearly shows that.
> >
> > I still don't understand: if I do
> >
> > echo '(setq default-frame-alist (quote ((background-color . "blue") (font . "fixed"))))' >~/tmp/.emacs; HOME=$HOME/tmp emacs
> >
> > I get the same result: a blue background and an ugly font, both on the
> > initial frame and on subsequent ones I might create with C-x 5 2.
>
> Then whoever made this change in behavior failed to update the
> documentation, which still says what I wrote.
Try my example:
Nothing gets me:
White background, Black text
Only (setq default-frame-alist '((background-color . "#333333") (foreground-color . "White") (cursor-color . "White"))) gets
White background, White text
Both:
Green background, White text
I find it asymmetric that with only default-frame-alist changes foreground, but not background nor cursor
Jocke
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: default-frame-alist vs. initial-frame-alist
2014-10-24 16:38 ` Tjernlund
@ 2014-10-24 17:53 ` martin rudalics
2014-10-29 18:04 ` Tjernlund
0 siblings, 1 reply; 14+ messages in thread
From: martin rudalics @ 2014-10-24 17:53 UTC (permalink / raw)
To: Tjernlund, Eli Zaretskii; +Cc: Stefan Monnier, emacs-devel
> Try my example:
> Nothing gets me:
> White background, Black text
>
> Only (setq default-frame-alist '((background-color . "#333333") (foreground-color . "White") (cursor-color . "White"))) gets
> White background, White text
>
> Both:
> Green background, White text
>
> I find it asymmetric that with only default-frame-alist changes foreground, but not background nor cursor
Which platform, which build?
martin
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: default-frame-alist vs. initial-frame-alist
2014-10-24 17:53 ` martin rudalics
@ 2014-10-29 18:04 ` Tjernlund
2014-11-03 9:41 ` martin rudalics
0 siblings, 1 reply; 14+ messages in thread
From: Tjernlund @ 2014-10-29 18:04 UTC (permalink / raw)
To: martin rudalics; +Cc: Eli Zaretskii, Stefan Monnier, emacs-devel
On Fri, 2014-10-24 at 19:53 +0200, martin rudalics wrote:
> > Try my example:
> > Nothing gets me:
> > White background, Black text
> >
> > Only (setq default-frame-alist '((background-color . "#333333") (foreground-color . "White") (cursor-color . "White"))) gets
> > White background, White text
> >
> > Both:
> > Green background, White text
> >
> > I find it asymmetric that with only default-frame-alist changes foreground, but not background nor cursor
>
> Which platform, which build?
Sorry for late reply, been travelling.
This is on Gentoo GNU Linux, both emacs 24.3 and 24.4
Jocke
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: default-frame-alist vs. initial-frame-alist
2014-10-29 18:04 ` Tjernlund
@ 2014-11-03 9:41 ` martin rudalics
2014-11-03 19:28 ` Tjernlund
0 siblings, 1 reply; 14+ messages in thread
From: martin rudalics @ 2014-11-03 9:41 UTC (permalink / raw)
To: Tjernlund; +Cc: Eli Zaretskii, Stefan Monnier, emacs-devel
>> Which platform, which build?
>
> Sorry for late reply, been travelling.
>
> This is on Gentoo GNU Linux, both emacs 24.3 and 24.4
And which toolkit? It might be better if you filed a bug report.
martin
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: default-frame-alist vs. initial-frame-alist
2014-11-03 9:41 ` martin rudalics
@ 2014-11-03 19:28 ` Tjernlund
2014-11-04 7:55 ` martin rudalics
0 siblings, 1 reply; 14+ messages in thread
From: Tjernlund @ 2014-11-03 19:28 UTC (permalink / raw)
To: martin rudalics; +Cc: Eli Zaretskii, Stefan Monnier, emacs-devel
On Mon, 2014-11-03 at 10:41 +0100, martin rudalics wrote:
> >> Which platform, which build?
> >
> > Sorry for late reply, been travelling.
> >
> > This is on Gentoo GNU Linux, both emacs 24.3 and 24.4
>
> And which toolkit? It might be better if you filed a bug report.
app-editors/emacs:
Installed versions: 24.4(24)(21:17:20 21/10/14)(X acl alsa dbus
gif gnutls gpm gtk gtk3 inotify jpeg png svg tiff xpm zlib -Xaw3d -aqua
-athena -games -gconf -gfile -gsettings -gzip-el -hesiod -imagemagick
-kerberos -libxml2 -livecd -m17n-lib -motif -pax_kernel -selinux -sound
-source -toolkit-scroll-bars -wide-int -xft)
You don't see the odd foreground change or the need to set both lists?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: default-frame-alist vs. initial-frame-alist
2014-11-03 19:28 ` Tjernlund
@ 2014-11-04 7:55 ` martin rudalics
2014-11-04 20:13 ` Tjernlund
0 siblings, 1 reply; 14+ messages in thread
From: martin rudalics @ 2014-11-04 7:55 UTC (permalink / raw)
To: Tjernlund; +Cc: Eli Zaretskii, Stefan Monnier, emacs-devel
> app-editors/emacs:
>
> Installed versions: 24.4(24)(21:17:20 21/10/14)(X acl alsa dbus
> gif gnutls gpm gtk gtk3 inotify jpeg png svg tiff xpm zlib -Xaw3d -aqua
> -athena -games -gconf -gfile -gsettings -gzip-el -hesiod -imagemagick
> -kerberos -libxml2 -livecd -m17n-lib -motif -pax_kernel -selinux -sound
> -source -toolkit-scroll-bars -wide-int -xft)
Hmm... I still have no idea which build you're using. What does C-h C-a
tell?
> You don't see the odd foreground change or the need to set both lists?
No. And AFAICT nobody could reproduce it so far.
martin
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: default-frame-alist vs. initial-frame-alist
2014-11-04 7:55 ` martin rudalics
@ 2014-11-04 20:13 ` Tjernlund
0 siblings, 0 replies; 14+ messages in thread
From: Tjernlund @ 2014-11-04 20:13 UTC (permalink / raw)
To: martin rudalics; +Cc: Eli Zaretskii, Stefan Monnier, emacs-devel
On Tue, 2014-11-04 at 08:55 +0100, martin rudalics wrote:
> > app-editors/emacs:
> >
> > Installed versions: 24.4(24)(21:17:20 21/10/14)(X acl alsa dbus
> > gif gnutls gpm gtk gtk3 inotify jpeg png svg tiff xpm zlib -Xaw3d -aqua
> > -athena -games -gconf -gfile -gsettings -gzip-el -hesiod -imagemagick
> > -kerberos -libxml2 -livecd -m17n-lib -motif -pax_kernel -selinux -sound
> > -source -toolkit-scroll-bars -wide-int -xft)
>
> Hmm... I still have no idea which build you're using. What does C-h C-a
> tell?
This is GNU Emacs, one component of the GNU/Linux operating system.
GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.12.2)
of 2014-10-21 on jocke
Copyright (C) 2014 Free Software Foundation, Inc.
Authors Many people have contributed code included in GNU Emacs
Contributing How to contribute improvements to Emacs
GNU and Freedom Why we developed GNU Emacs, and the GNU operating system
Absence of Warranty GNU Emacs comes with ABSOLUTELY NO WARRANTY
Copying Conditions Conditions for redistributing and changing Emacs
Getting New Versions How to obtain the latest version of Emacs
Ordering Manuals Buying printed manuals from the FSF
Emacs Tutorial Learn basic Emacs keystroke commands
Emacs Guided Tour See an overview of Emacs features at gnu.org
>
> > You don't see the odd foreground change or the need to set both lists?
>
> No. And AFAICT nobody could reproduce it so far.
Strange, I see this both at home and at work too:
GNU Emacs 24.3.92.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.23)
of 2014-07-07 on gentoo-jocke
Copyright (C) 2014 Free Software Foundation, Inc.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: default-frame-alist vs. initial-frame-alist
2014-10-24 6:43 ` Eli Zaretskii
2014-10-24 13:04 ` Stefan Monnier
@ 2014-10-24 17:46 ` Stefan Monnier
1 sibling, 0 replies; 14+ messages in thread
From: Stefan Monnier @ 2014-10-24 17:46 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Tjernlund, emacs-devel
> This is the expected behavior, as described in the User Manual (see
> the node "Frame Parameters"). Emacs always worked like that.
I still don't get it. The manual you quote says:
You can control the default appearance and behavior of all frames by
specifying a default list of "frame parameters" in the variable
default-frame-alist . Its value should be a list of entries, each
specifying a parameter name and a value for that parameter. These
entries take effect whenever Emacs creates a new frame, including the
initial frame.
So, it seems to agree with Tjernlund that adding entries to
default-frame-alist should be sufficient to affect the initial frame.
Stefan
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2014-11-04 20:13 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-23 19:46 default-frame-alist vs. initial-frame-alist Tjernlund
2014-10-24 6:43 ` Eli Zaretskii
2014-10-24 13:04 ` Stefan Monnier
2014-10-24 13:08 ` Eli Zaretskii
2014-10-24 13:51 ` Stefan Monnier
2014-10-24 14:12 ` Eli Zaretskii
2014-10-24 16:38 ` Tjernlund
2014-10-24 17:53 ` martin rudalics
2014-10-29 18:04 ` Tjernlund
2014-11-03 9:41 ` martin rudalics
2014-11-03 19:28 ` Tjernlund
2014-11-04 7:55 ` martin rudalics
2014-11-04 20:13 ` Tjernlund
2014-10-24 17:46 ` Stefan Monnier
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.