unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#6713: initial-frame-alist params applied to all frames
@ 2010-07-23 13:39 Stefan Monnier
  2010-07-23 16:07 ` Chong Yidong
  2011-01-13  4:42 ` Stefan Monnier
  0 siblings, 2 replies; 5+ messages in thread
From: Stefan Monnier @ 2010-07-23 13:39 UTC (permalink / raw)
  To: 6713

Package: Emacs
Version: 24.0.50

With a .emacs that contains just:

  (setq initial-frame-alist '((background-color . "grey75")))

start "emacs" and then hit C-x 5 2.  Notice that the second frame also
has a grey75 background.

OTOH my xrdb setting:

  Emacs.font:     -misc-fixed-medium-r-semicondensed--13-*-*-*-*-*-*-*

seems to only be applied to the initial frame, but not to the second frame.


        Stefan




In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2010-07-23 on ceviche
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
configured using `configure  'CFLAGS=-Wall -Wno-pointer-sign -DUSE_LISP_UNION_TYPE -DSYNC_INPUT -DENABLE_CHECKING -DXASSERTS -DFONTSET_DEBUG -g -O1 -I/usr/include/GNUstep' 'LDFLAGS=-L/home/monnier/src/Xaw3d' 'CPPFLAGS=-I/home/monnier/src/Xaw3d' '--enable-maintainer-mode''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: fr_CH.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Group

Minor modes in effect:
  gnus-undo-mode: t
  url-handler-mode: t
  global-reveal-mode: t
  reveal-mode: t
  auto-insert-mode: t
  savehist-mode: t
  minibuffer-electric-default-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<return> y <select-window> <select-window> g <select-window> 
<up> <down> <up> <return> <select-window> <help-echo> 
M-> <up> <up> <up> <right> <down> <down> <down> <down> 
<return> k q s <down> <down> <down> <down> <return> 
C-g C-u a C-x k <return> M-x r e p o r t - e m <tab> 
<return>

Recent messages:
Expiring articles...done
nnimap: Setting marks in inbox...done
nnimap: Setting marks in inbox...done
Saving /home/monnier/var/newsrc.eld...
Saving file /home/monnier/var/newsrc.eld...
Wrote /home/monnier/var/newsrc.eld
Saving /home/monnier/var/newsrc.eld...done
Retrieving newsgroup: nnimap+diro:emacs...
nnimap: Updating info for nnimap+diro:emacs...done
Quit getting the articles to read
Quit

Load-path shadows:
/usr/share/emacs23/site-lisp/bbdb/bbdb-migrate hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-migrate
/usr/share/emacs23/site-lisp/bbdb/bbdb hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb
/usr/share/emacs23/site-lisp/bbdb/bbdb-rmail hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-rmail
/usr/share/emacs23/site-lisp/bbdb/bbdb-gnus hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-gnus
/usr/share/emacs23/site-lisp/bbdb/bbdb-w3 hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-w3
/usr/share/emacs23/site-lisp/bbdb/bbdb-com hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-com
/usr/share/emacs23/site-lisp/bbdb/bbdb-merge hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-merge
/usr/share/emacs23/site-lisp/bbdb/bbdb-ftp hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-ftp
/usr/share/emacs23/site-lisp/bbdb/bbdb-sc hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-sc
/usr/share/emacs23/site-lisp/bbdb/bbdb-vm hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-vm
/usr/share/emacs23/site-lisp/bbdb/bbdb-gui hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-gui
/usr/share/emacs23/site-lisp/bbdb/bbdb-print hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-print
/usr/share/emacs23/site-lisp/bbdb/bbdb-hooks hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-hooks
/usr/share/emacs23/site-lisp/bbdb/bbdb-mhe hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-mhe
/usr/share/emacs23/site-lisp/bbdb/bbdb-whois hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-whois
/usr/share/emacs23/site-lisp/bbdb/bbdb-snarf hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-snarf

Features:
(shadow emacsbug executable copyright gnus-cite smiley ansi-color
mail-extr gnus-async gnus-bcklg parse-time timezone qp sort byte-opt
bytecomp byte-compile gnus-ml disp-table utf-7 utf7 netrc tls nnimap
imap nndraft nnmh nnagent nnml gnus-agent gnus-srvr gnus-score
score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 epg-config mm-view
smime password-cache dig mailcap nntp gnus-cache gnus-sum nnoo
gnus-group time-date gnus-undo nnmail mail-source format-spec server
gnus-start gnus-spec gnus-int gnus-range message sendmail rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045
ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems
nnheader mail-utils wid-edit noutline outline easy-mmode flyspell ispell
eldoc checkdoc regexp-opt thingatpt help-mode easymenu view prog-mode
package url-handlers url-parse auth-source gnus-util url-vars mm-util
mail-prsvr reveal autoinsert uniquify advice help-fns advice-preload
savehist minibuf-eldef cl cl-19 cl-loaddefs proof-site proof-autoloads
pg-vars bbdb-autoloads agda2 tooltip ediff-hook vc-hooks lisp-float-type
mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register
page newcomment menu-bar rfn-eshadow timer select scroll-bar mldrag
mouse jit-lock font-lock syntax font-core frame cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew
greek romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs
button faces cus-face files text-properties overlay md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
make-network-process dbusbind dynamic-setting system-font-setting
font-render-setting gtk x-toolkit x multi-tty emacs)





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#6713: initial-frame-alist params applied to all frames
  2010-07-23 13:39 bug#6713: initial-frame-alist params applied to all frames Stefan Monnier
@ 2010-07-23 16:07 ` Chong Yidong
  2010-07-26  0:23   ` Stefan Monnier
  2010-10-25 20:25   ` Stefan Monnier
  2011-01-13  4:42 ` Stefan Monnier
  1 sibling, 2 replies; 5+ messages in thread
From: Chong Yidong @ 2010-07-23 16:07 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 6713

Stefan Monnier <monnier@IRO.UMontreal.CA> writes:

> With a .emacs that contains just:
>
>   (setq initial-frame-alist '((background-color . "grey75")))
>
> start "emacs" and then hit C-x 5 2.  Notice that the second frame also
> has a grey75 background.

Hmm, I can't reproduce this.  For me, the second frame is white.  This
is with latest bzr sources, and `xrdb -remove' before running Emacs.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#6713: initial-frame-alist params applied to all frames
  2010-07-23 16:07 ` Chong Yidong
@ 2010-07-26  0:23   ` Stefan Monnier
  2010-10-25 20:25   ` Stefan Monnier
  1 sibling, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2010-07-26  0:23 UTC (permalink / raw)
  To: Chong Yidong; +Cc: 6713

>> With a .emacs that contains just:
>> (setq initial-frame-alist '((background-color . "grey75")))
>> start "emacs" and then hit C-x 5 2.  Notice that the second frame also
>> has a grey75 background.
> Hmm, I can't reproduce this.  For me, the second frame is white.  This
> is with latest bzr sources, and `xrdb -remove' before running Emacs.

Hmm... I tried again after "xrdb -remove" and a new "bzr update" and
"make bootstrap", but the problem persists for me.


        Stefan





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#6713: initial-frame-alist params applied to all frames
  2010-07-23 16:07 ` Chong Yidong
  2010-07-26  0:23   ` Stefan Monnier
@ 2010-10-25 20:25   ` Stefan Monnier
  1 sibling, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2010-10-25 20:25 UTC (permalink / raw)
  To: Chong Yidong; +Cc: 6713

>> With a .emacs that contains just:
>> (setq initial-frame-alist '((background-color . "grey75")))
>> start "emacs" and then hit C-x 5 2.  Notice that the second frame also
>> has a grey75 background.
> Hmm, I can't reproduce this.  For me, the second frame is white.  This
> is with latest bzr sources, and `xrdb -remove' before running Emacs.

I'm still seeing this bug (which appeared back when you changed the
default-frame-alist handling):

   % src/emacs -Q --eval '(setq initial-frame-alist (quote ((background-color . "grey75"))))'
   C-x 5 2

Gives me 2 frames, both with a grey75 background.  If I change grey75 to
something else (like "red"), I get a red background in both frames.

But I recently noticed that the bug was not present on one of my
machine; which happens to be one where I was running a mix of Debian
"stable"&"testing" (because of a problem in the "testing" version of the
X11 driver).  I've now upgraded it back to "testing" and the bug is now
present there as well, so it appears to also depend on the version of
some library (probably libX11 since the bug appears both with Gtk and
Lucid toolkits).

Also the bug is not present in the emacs-23 branch, so while the version
of some library might matter, Emacs's own code also matters.


        Stefan





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#6713: initial-frame-alist params applied to all frames
  2010-07-23 13:39 bug#6713: initial-frame-alist params applied to all frames Stefan Monnier
  2010-07-23 16:07 ` Chong Yidong
@ 2011-01-13  4:42 ` Stefan Monnier
  1 sibling, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2011-01-13  4:42 UTC (permalink / raw)
  To: 6713

Trying to come back to this bug that's been affecting my Emacs's
background for the last 6 months now ;-)

I just found out that the behavior is affected by the Xft.dpi value:

  % echo Xft.dpi: 124 | xrdb
  % emacs -Q --eval '(progn (setq initial-frame-alist (quote ((background-color . "grey75")))) (make-frame))'
  C-x 5 2

leaves me with 3 frames: the initial frame with grey75 background (yay!), and
2 frames with white background (yay!).

OTOH

  % echo Xft.dpi: 123 | xrdb
  % emacs -Q --eval '(progn (setq initial-frame-alist (quote ((background-color . "grey75")))) (make-frame))'
  C-x 5 2

leaves me with 3 frames: the initial frame with grey75 background (yay!), the
second frame with white background (yay!), but the last frame with
grey75 background (nay!).

Only the value 124 gives me the right answer, on this machine.
xdpyinfo says "96x96 dpi", so I'm not sure from where the 124 comes.

Does this ring a bell to anyone?


        Stefan





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-01-13  4:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-23 13:39 bug#6713: initial-frame-alist params applied to all frames Stefan Monnier
2010-07-23 16:07 ` Chong Yidong
2010-07-26  0:23   ` Stefan Monnier
2010-10-25 20:25   ` Stefan Monnier
2011-01-13  4:42 ` Stefan Monnier

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