From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 31 03:17:31 2019 Received: (at submit) by debbugs.gnu.org; 31 Mar 2019 07:17:31 +0000 Received: from localhost ([127.0.0.1]:37745 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hAUig-0001Xn-Fp for submit@debbugs.gnu.org; Sun, 31 Mar 2019 03:17:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hATTR-00082H-LO for submit@debbugs.gnu.org; Sun, 31 Mar 2019 01:57:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:47065) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hATTM-0007tB-90 for submit@debbugs.gnu.org; Sun, 31 Mar 2019 01:57:36 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hATTJ-0002Ep-UW for bug-gnu-emacs@gnu.org; Sun, 31 Mar 2019 01:57:36 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: **** X-Spam-Status: No, score=4.3 required=5.0 tests=BAYES_50,FREEMAIL_FROM, FREEMAIL_REPLYTO,HTML_MESSAGE,SPOOFED_FREEM_REPTO,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hATTH-0007sU-O6 for bug-gnu-emacs@gnu.org; Sun, 31 Mar 2019 01:57:33 -0400 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]:44694) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hATTH-0007s4-8W for bug-gnu-emacs@gnu.org; Sun, 31 Mar 2019 01:57:31 -0400 Received: by mail-ed1-x529.google.com with SMTP id x10so5309669edh.11 for ; Sat, 30 Mar 2019 22:57:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:from:date:message-id:subject:to; bh=Es1H7soYyIAp0AjBBjKU1MzTB30T1g8pCrZYUX2uiHI=; b=slkmbB3cSMYCuRombdYx81HCqL874Cpbu0PVzpDF2PDN5Qq78mZwygXPNW5IL/jgMw R9iBNfp6n7Q6SLgGTLvSJRY5NzvBxgG8/MtBMirkCRUiycxpvtawJfo0SXv1uMOpOm6z bg4T/SJoBbr8EnaeZZfdxsCQApo7RZ58N89pj7TFaLJoTd9bE758VhBlPjFdiMUqHSIT kSib/q1bYVpqCKwTXjVAxgRD+F9nh6MSIJMWD/4tVAZe6F1tJylU25gx7dpEgdxge2aS ySPIXQewDw252YjHJXBJeYgBEHTIzyYAcNDlfeop4CGmTZQnJlLDd9wUSAyzkY1CxnuS iKQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to; bh=Es1H7soYyIAp0AjBBjKU1MzTB30T1g8pCrZYUX2uiHI=; b=jVn08h9vYr6TZ2K/Ly7W9Ug1FlUj/Biby1NOQ9YiZummn8ex/1EK+Wsz3gyG43Pwuz XjoeDrXioFdTOjL3WGvjUe9oUtmtCY7vFXU7z7uKsrrCTywlUyzhLgQH2Fmkvo4BOeyA xfXI72u/H3xeGlGM2RjBz3lzMgknryLNdA9VFAuIqFJPyoisoGA7o7ph5bN6Isocb5RP t4cHGutWEUeMYtkaOiA5NjAW7mbbJNEie2uz2lgf/NOwrEd3x5gIO5UbtrebA434N9xb egoDcK/HB31GBMkuoy2OQpQf+GPdvM2+dt7N47yQQOckLKvvFoEhEWBb5i+6cc//g01h 9qGA== X-Gm-Message-State: APjAAAUHYTHZQXkpWPT/fP5T746VNiRPB+fov6bRcn8aaFpLWAhbfFk1 vwwHmeogip/fr+vRzZ3a3+Fxc9uzXzsLg36Ax6ZB5Xvc X-Google-Smtp-Source: APXvYqxhKxPlTF/N8NfHIGjr+i4y11XNNSzp66nr+1DVDdSbk4Oe3xZYyvc0kw4nWqPDphtK4fIH6V+rQ1kEgnFaoI0= X-Received: by 2002:a50:9b56:: with SMTP id a22mr16964520edj.22.1554011849109; Sat, 30 Mar 2019 22:57:29 -0700 (PDT) MIME-Version: 1.0 From: Michael Wu Date: Sun, 31 Mar 2019 01:57:18 -0400 Message-ID: Subject: window-setup-hook not working with the new frame parameters To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="0000000000003e351b05855d9493" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::529 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 4.5 (++++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: See this StackOverflow thread: https://emacs.stackexchange.com/questions/48645/if-start-with-maximized-frame-why-do-windows-open-top-bottom-not-side-by-side as well as Stefan's answer, and comments on that answer. Essentially, I do not believe window-setup-hook is properly running after all frame parameters have been set, as is suggested in the documentat [...] Content analysis details: (4.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: stackexchange.com] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (john.michael.wu[at]gmail.com) 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 HTML_MESSAGE BODY: HTML included in message 1.0 FREEMAIL_REPLYTO Reply-To/From or Reply-To/body contain different freemails 2.5 SPOOFED_FREEM_REPTO Forged freemail sender with freemail reply-to X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 31 Mar 2019 03:17:27 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: JohnMichaelWu@gmail.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --0000000000003e351b05855d9493 Content-Type: text/plain; charset="UTF-8" See this StackOverflow thread: https://emacs.stackexchange.com/questions/48645/if-start-with-maximized-frame-why-do-windows-open-top-bottom-not-side-by-side as well as Stefan's answer, and comments on that answer. Essentially, I do not believe window-setup-hook is properly running after all frame parameters have been set, as is suggested in the documentation here: https://www.gnu.org/software/emacs/manual/html_node/elisp/Startup-Summary.html In GNU Emacs 26.1 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.23.2) of 2018-08-13 built on buildvm-13.phx2.fedoraproject.org Windowing system distributor 'Fedora Project', version 11.0.12003000 System Description: Fedora release 29 (Twenty Nine) Recent messages: Wrote /home/OP/core/mind/sys/proc/as.md Saving file /home/OP/core/mind/sys/proc/as.md... Wrote /home/OP/core/mind/sys/proc/as.md Saving file /home/OP/core/mind/sys/proc/main.org... Wrote /home/OP/core/mind/sys/proc/main.org command-execute: Command attempted to use minibuffer while in minibuffer Quit [2 times] C-x C-g is undefined Mark set Making completion list... Configured using: 'configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=no --with-xwidgets --with-modules build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' LDFLAGS=-Wl,-z,relro PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES THREADS XWIDGETS LCMS2 Important settings: value of $LC_MONETARY: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: diff-auto-refine-mode: t shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t auto-fill-function: do-auto-fill transient-mark-mode: t Load-path shadows: /usr/share/asymptote/asy-keywords hides /usr/share/emacs/site-lisp/asymptote/asy-keywords /usr/share/asymptote/asy-mode hides /usr/share/emacs/site-lisp/asymptote/asy-mode /usr/share/asymptote/asy-init hides /usr/share/emacs/site-lisp/site-start.d/asy-init /usr/share/emacs/site-lisp/site-start.d/maxima-modes hides /usr/share/emacs/site-lisp/maxima/site_start.d/maxima-modes Features: (shadow sort emacsbug sendmail dired-aux mail-extr utop utop-minor-mode pcase vc-git diff-mode apropos misearch multi-isearch pulse xref project ruler-mode hl-line hexl pcmpl-unix pp cus-edit cus-start cus-load cl-print eieio-opt speedbar sb-image ezimage dframe completion help-fns radix-tree cl-extra help-mode markdown-mode color thingatpt shell org-rmail org-mhe org-irc org-info org-gnus nnir gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls gnutls utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range message rmc puny rfc822 mml mml-sec epa derived epg mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils mm-util mail-prsvr wid-edit org-docview doc-view jka-compr image-mode dired dired-loaddefs org-bibtex bibtex org-bbdb org-w3m org-element avl-tree generator org advice org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities noutline outline easy-mmode org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint comint ansi-color ring ob-core ob-eval org-compat org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs elec-pair edmacro kmacro server finder-inf tex-site proof-site proof-autoloads pg-vars rx info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib emacs-goodies-loaddefs time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting xwidget-internal move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 436153 75706) (symbols 48 41249 2) (miscs 40 840 1305) (strings 32 141082 5579) (string-bytes 1 3831899) (vectors 16 49868) (vector-slots 8 1694714 196144) (floats 8 392 1080) (intervals 56 2214 433) (buffers 992 30)) --0000000000003e351b05855d9493 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
See this StackOverf= low thread:
=
as well as Stefan's answer, and comments on that answer.= Essentially, I
do not believe window-setup-hook is properly runn= ing after all frame
parameters have been set, as is suggested in = the documentation here:

https://ww= w.gnu.org/software/emacs/manual/html_node/elisp/Startup-Summary.html



In GNU Emacs 26.1= (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.23.2)
=C2=A0of= 2018-08-13 built on b= uildvm-13.phx2.fedoraproject.org
Windowing system distributor= 'Fedora Project', version 11.0.12003000
System Descripti= on: Fedora release 29 (Twenty Nine)<= /div>

Recent messages:
Wrote /home/OP/core/min= d/sys/proc/as.md
Saving file /home/OP/core/mind/sys/proc/as.md...=
Wrote /home/OP/core/mind/sys/proc/as.md
Saving file /h= ome/OP/core/mind/sys/proc/main.org...
Wrote /home/OP/core/mind/sy= s/proc/main.org
command-execute: = Command attempted to use minibuffer while in minibuffer
Quit [2 t= imes]
C-x C-g is undefined
Mark set
Making co= mpletion list...

Configured using:
=C2= =A0'configure --build=3Dx86_64-redhat-linux-gnu
=C2=A0--host= =3Dx86_64-redhat-linux-gnu --program-prefix=3D
=C2=A0--disable-de= pendency-tracking --prefix=3D/usr --exec-prefix=3D/usr
=C2=A0--bi= ndir=3D/usr/bin --sbindir=3D/usr/sbin --sysconfdir=3D/etc
=C2=A0-= -datadir=3D/usr/share --includedir=3D/usr/include --libdir=3D/usr/lib64
=C2=A0--libexecdir=3D/usr/libexec --localstatedir=3D/var
= =C2=A0--sharedstatedir=3D/var/lib --mandir=3D/usr/share/man
=C2= =A0--infodir=3D/usr/share/info --with-dbus --with-gif --with-jpeg --with-pn= g
=C2=A0--with-rsvg --with-tiff --with-xft --with-xpm --with-x-to= olkit=3Dgtk3
=C2=A0--with-gpm=3Dno --with-xwidgets --with-modules=
=C2=A0build_alias=3Dx86_64-redhat-linux-gnu host_alias=3Dx86_64-= redhat-linux-gnu
=C2=A0'CFLAGS=3D-DMAIL_USE_LOCKF -O2 -g -pip= e -Wall -Werror=3Dformat-security
=C2=A0-Wp,-D_FORTIFY_SOURCE=3D2= -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions
=C2=A0-fstack-protector-s= trong -grecord-gcc-switches
=C2=A0-specs=3D/usr/lib/rpm/redhat/re= dhat-hardened-cc1
=C2=A0-specs=3D/usr/lib/rpm/redhat/redhat-annob= in-cc1 -m64 -mtune=3Dgeneric
=C2=A0-fasynchronous-unwind-tables -= fstack-clash-protection -fcf-protection'
=C2=A0LDFLAGS=3D-Wl,= -z,relro
=C2=A0PKG_CONFIG_PATH=3D:/usr/lib64/pkgconfig:/usr/share= /pkgconfig'

Configured features:
XPM= JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS NOTIFY ACL
LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TO= OLKIT_SCROLL_BARS GTK3 X11 MODULES THREADS XWIDGETS LCMS2

Important settings:
=C2=A0 value of $LC_MONETARY: en_US.U= TF-8
=C2=A0 value of $LC_NUMERIC: en_US.UTF-8
=C2=A0 va= lue of $LC_TIME: en_US.UTF-8
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 value of $XMODIFIERS: @im=3Dibus
=C2=A0 locale-co= ding-system: utf-8-unix

Major mode: Emacs-Lisp

Minor modes in effect:
=C2=A0 diff-auto-ref= ine-mode: t
=C2=A0 shell-dirtrack-mode: t
=C2=A0 toolti= p-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 eldoc-mode= : t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-m= ode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t<= /div>
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock= -mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-m= ode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encr= yption-mode: t
=C2=A0 auto-compression-mode: t
=C2=A0 s= ize-indication-mode: t
=C2=A0 column-number-mode: t
=C2= =A0 line-number-mode: t
=C2=A0 auto-fill-function: do-auto-fill
=C2=A0 transient-mark-mode: t

Load-path s= hadows:
/usr/share/asymptote/asy-keywords hides /usr/share/emacs/= site-lisp/asymptote/asy-keywords
/usr/share/asymptote/asy-mode hi= des /usr/share/emacs/site-lisp/asymptote/asy-mode
/usr/share/asym= ptote/asy-init hides /usr/share/emacs/site-lisp/site-start.d/asy-init
=
/usr/share/emacs/site-lisp/site-start.d/maxima-modes hides /usr/share/= emacs/site-lisp/maxima/site_start.d/maxima-modes

F= eatures:
(shadow sort emacsbug sendmail dired-aux mail-extr utop = utop-minor-mode
pcase vc-git diff-mode apropos misearch multi-ise= arch pulse xref project
ruler-mode hl-line hexl pcmpl-unix pp cus= -edit cus-start cus-load
cl-print eieio-opt speedbar sb-image ezi= mage dframe completion help-fns
radix-tree cl-extra help-mode mar= kdown-mode color thingatpt shell
org-rmail org-mhe org-irc org-in= fo org-gnus nnir gnus-sum gnus-group
gnus-undo gnus-start gnus-cl= oud nnimap nnmail mail-source tls gnutls
utf7 netrc nnoo parse-ti= me gnus-spec gnus-int gnus-range message rmc
puny rfc822 mml mml-= sec epa derived epg mm-decode mm-bodies mm-encode
mail-parse rfc2= 231 mailabbrev gmm-utils mailheader gnus-win gnus
nnheader gnus-u= til rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums
mail-utils mm= -util mail-prsvr wid-edit org-docview doc-view jka-compr
image-mo= de dired dired-loaddefs org-bibtex bibtex org-bbdb org-w3m
org-el= ement avl-tree generator org advice org-macro org-footnote
org-pc= omplete pcomplete org-list org-faces org-entities noutline outline
easy-mmode org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob
ob-table ob-keys ob-exp ob-comint comint ansi-color ring ob-core o= b-eval
org-compat org-macs org-loaddefs format-spec find-func cal= -menu calendar
cal-loaddefs elec-pair edmacro kmacro server finde= r-inf tex-site
proof-site proof-autoloads pg-vars rx info package= easymenu epg-config
url-handlers url-parse auth-source cl-seq ei= eio eieio-core cl-macs
eieio-loaddefs password-cache url-vars seq= byte-opt gv bytecomp
byte-compile cconv cl-loaddefs cl-lib emacs= -goodies-loaddefs time-date
mule-util tooltip eldoc electric uniq= uify ediff-hook vc-hooks
lisp-float-type mwheel term/x-win x-win = term/common-win x-dnd tool-bar
dnd fontset image regexp-opt fring= e tabulated-list replace newcomment
text-mode elisp-mode lisp-mod= e prog-mode register page menu-bar
rfn-eshadow isearch timer sele= ct scroll-bar mouse jit-lock font-lock
syntax facemenu font-core = term/tty-colors frame cl-generic cham georgian
utf-8-lang misc-la= ng vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms = cp51932 hebrew greek romanian slovak czech european
ethiopic indi= an cyrillic chinese composite charscript charprop
case-table epa-= hook jka-cmpr-hook help simple abbrev obarray minibuffer
cl-prelo= aded nadvice loaddefs button faces cus-face macroexp files
text-p= roperties overlay sha1 md5 base64 format env code-pages mule
cust= om widget hashtable-print-readable backquote dbusbind inotify lcms2
dynamic-setting system-font-setting font-render-setting xwidget-internal=
move-toolbar gtk x-toolkit x multi-tty make-network-process emac= s)

Memory information:
((conses 16 43615= 3 75706)
=C2=A0(symbols 48 41249 2)
=C2=A0(miscs 40 840= 1305)
=C2=A0(strings 32 141082 5579)
=C2=A0(string-byt= es 1 3831899)
=C2=A0(vectors 16 49868)
=C2=A0(vector-sl= ots 8 1694714 196144)
=C2=A0(floats 8 392 1080)
=C2=A0(= intervals 56 2214 433)
=C2=A0(buffers 992 30))
--0000000000003e351b05855d9493-- From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 31 04:20:46 2019 Received: (at 35059) by debbugs.gnu.org; 31 Mar 2019 08:20:46 +0000 Received: from localhost ([127.0.0.1]:37756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hAVhu-00034a-0n for submit@debbugs.gnu.org; Sun, 31 Mar 2019 04:20:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38814) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hAVhr-00034L-Uc for 35059@debbugs.gnu.org; Sun, 31 Mar 2019 04:20:44 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53557) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hAVhm-0000j4-LG; Sun, 31 Mar 2019 04:20:38 -0400 Received: from [176.13.243.16] (port=1639 helo=[10.132.229.151]) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1hAVhl-00009I-UX; Sun, 31 Mar 2019 04:20:38 -0400 Date: Sun, 31 Mar 2019 11:20:35 +0300 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: bug#35059: window-setup-hook not working with the new frame parameters To: JohnMichaelWu@gmail.com, Michael Wu , 35059@debbugs.gnu.org From: Eli Zaretskii Message-ID: <25CD59D4-2351-4781-85B7-1C31EF309C99@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35059 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On March 31, 2019 8:57:18 AM GMT+03:00, Michael Wu wrote: > See this StackOverflow thread: > https://emacs=2Estackexchange=2Ecom/questions/48645/if-start-with-maximi= zed-frame-why-do-windows-open-top-bottom-not-side-by-side >=20 > as well as Stefan's answer, and comments on that answer=2E Essentially, > I > do not believe window-setup-hook is properly running after all frame > parameters have been set, as is suggested in the documentation here: >=20 > https://www=2Egnu=2Eorg/software/emacs/manual/html_node/elisp/Startup-Su= mmary=2Ehtml There's nothing wrong with window-setup-hook, AFAICT, it indeed runs after= all the parameters of the frame have been set according to your customizat= ions=2E The problem is in your apparent assumption that frame maximization happens= immediately after you put the fullscreen parameter into frame-parametets= =2E But actually, frame maximization is performed through interaction with= the window-manager, which generally happens asynchronously and takes some = short, but non-zero time=2E Add to your hook a call to 'message' that displays the width and height o= f the selected window, and you will see why you get windows split verticall= y=2E The conclusion is that if you want to see windows split like you expected,= you need to insert a wait into your emacs=2E Or just split horizontally = by an explicit command=2E From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 18 12:50:34 2020 Received: (at 35059) by debbugs.gnu.org; 18 Aug 2020 16:50:34 +0000 Received: from localhost ([127.0.0.1]:36813 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k84ok-00008z-9B for submit@debbugs.gnu.org; Tue, 18 Aug 2020 12:50:34 -0400 Received: from mail-yb1-f176.google.com ([209.85.219.176]:36128) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k84ob-00007z-4T for 35059@debbugs.gnu.org; Tue, 18 Aug 2020 12:50:26 -0400 Received: by mail-yb1-f176.google.com with SMTP id g3so11741762ybc.3 for <35059@debbugs.gnu.org>; Tue, 18 Aug 2020 09:50:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=F8Kp75UYyiQUjfx/oJ99Z6JCl7zGcU8g/L/zDb2kl+E=; b=ZqFPsEags6iSipfvNukjP4BmgXAuEkloeMZxHrXKB9Ns8mbg/0QUXCU2hBBNMzoWcb puj/8tlS6jNW8Zhk7PwkE5LSetQTSngIk/mGoZvIjS4UQU1VXuyn2E4l0Y9LOiuEMvR/ 3qtOD+Azki9XdqUN7/PLDU8wQPtkxgsEJENhrnMBcNSOJfDPy/Yg1yBy+VMpHPUXHZ6X i9CNACbTBzW568BfSKo544ajMV5pQfI3WmN3Y/n9uFZ/cEQBonoldLcnusPs9HW73Brd RdJ2c0ljHMjPJC/5/wKxxaG3iN4wJNfKvi3Dn+G1wRfbb6kRQFAaSg3kRkCTX4MIT1QF 3/mg== X-Gm-Message-State: AOAM533gmIkv6S4TOlW0/qHPuynAJq1qDnenNE3lVjCF7XGKoKF/Ldme VRIG1kYde2OeArijR/4aVkKXuPL78k3zJsqseR8= X-Google-Smtp-Source: ABdhPJzFJblFtrwpIZatbVMjV7zkUGg/f8zWJBr0Prms9MJ+HTFQEoml0gpfq3G918Bw1uOVN082Ks/t4aZwk14lD9M= X-Received: by 2002:a25:9843:: with SMTP id k3mr28697001ybo.466.1597769419697; Tue, 18 Aug 2020 09:50:19 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 18 Aug 2020 16:50:19 +0000 From: Stefan Kangas In-Reply-To: <25CD59D4-2351-4781-85B7-1C31EF309C99@gnu.org> (Eli Zaretskii's message of "Sun, 31 Mar 2019 11:20:35 +0300") References: <25CD59D4-2351-4781-85B7-1C31EF309C99@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Tue, 18 Aug 2020 16:50:19 +0000 Message-ID: Subject: Re: bug#35059: window-setup-hook not working with the new frame parameters To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 35059 Cc: Michael Wu , JohnMichaelWu@gmail.com, 35059@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) tags 35059 + notabug close 35059 thanks Eli Zaretskii writes: > On March 31, 2019 8:57:18 AM GMT+03:00, Michael Wu wrote: >> See this StackOverflow thread: >> https://emacs.stackexchange.com/questions/48645/if-start-with-maximized-frame-why-do-windows-open-top-bottom-not-side-by-side >> >> as well as Stefan's answer, and comments on that answer. Essentially, >> I >> do not believe window-setup-hook is properly running after all frame >> parameters have been set, as is suggested in the documentation here: >> >> https://www.gnu.org/software/emacs/manual/html_node/elisp/Startup-Summary.html > > > There's nothing wrong with window-setup-hook, AFAICT, it indeed runs after all the parameters of the frame have been set according to your customizations. > > The problem is in your apparent assumption that frame maximization happens > immediately after you put the fullscreen parameter into frame-parametets. But > actually, frame maximization is performed through interaction with the > window-manager, which generally happens asynchronously and takes some short, but > non-zero time. > > Add to your hook a call to 'message' that displays the width and height of the selected window, and you will see why you get windows split vertically. > > The conclusion is that if you want to see windows split like you expected, you need to insert a wait into your emacs. Or just split horizontally by an explicit command. No further updates within more than a year, so I'm closing this bug report with the above explanation. If this conclusion is incorrect, please reply to this email (use "Reply to all" in your email client) and we can reopen the bug report. Best regards, Stefan Kangas From unknown Sat Sep 06 14:23:33 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 16 Sep 2020 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator