From: Drew Adams <drew.adams@oracle.com>
To: martin rudalics <rudalics@gmx.at>, 24085@debbugs.gnu.org
Subject: bug#24085: 25.1.50; `make-frame' given `top' param creates frame with ~10x smaller `top'
Date: Wed, 27 Jul 2016 06:29:14 -0700 (PDT) [thread overview]
Message-ID: <3657859c-03f1-4eca-9a78-a9be0dee6552@default> (raw)
In-Reply-To: <57987CBA.2060405@gmx.at>
> Due to this change:
> 2006-06-30 Ralf Angeli <angeli@caeruleus.net>
>
> * w32term.c (x_make_frame_visible): Use SystemParametersInfo with
> SPI_GETWORKAREA to find the dimensions of the screen work area,
> and adjust vertical position of the frame in order to avoid being
> covered by the taskbar.
>
> See the thread starting at
> https://lists.gnu.org/archive/html/emacs-pretest-bug/2006-06/msg00142.html
> for the corresponding discussion.
Wow. That's a revealing thread. Thanks for finding it.
Such a large, and far-reaching (and bad) change resulting from so
little discussion, by only two people, who were apparently only
slightly annoyed by the _initial_ positioning of the initial
(startup) frame.
The thread is full of I-don't-know-whether-this-change-is-bad,
I'm-not-sure-if-make-frame-is-the-right-place,
maybe-we-should-not-do-this-if-top-is-explicitly-specified, etc.
That should have been a sign that something might be misguided here.
Would someone please revert this, and let `make-frame' respect the
frame parameters handed to it, in particular `top'?
I don't mind (I guess) if such fiddling is done only for the initial
frame. The initial frame is anyway treated specially by Emacs.
That would be the right place for this hack, if a place there must be.
(But even for that I think that an explicit setting (e.g. in
`initial-frame-alist') should be respected. And it does not make
a lot of sense to assume that the task bar is in the default
position, at the bottom of the screen.)
But as I say, I don't mind if such fiddling is done only for the
startup frame. It should not be done for other frames.
`make-frame' is definitely the wrong place to do such fiddling.
A user or code can (and should be able to) _move_ a frame to
_any_ position, including partly or completely off screen.
I see no reason why `make-frame' should not, likewise, respect
`top', `left', etc. And especially when (user-position . t)
is included!
(It's not even clear (predictable?) exactly what fudging is done.
You specify (top . 600) and you get something quite different
and unpredictable.)
Please, someone, reverse this (intentional) regression since
Emacs 21. I haven't noticed it before because my own setup
uses a standalone minibuffer and sets up other frames. I'm
now testing some code with emacs -Q, and I am really surprised
to see this behavior.
This "fix" does not really address the problem (hiding part of
the initial frame behind a Windows task bar) anyway, and it
shoots Emacs in the foot in a general way (`make-frame' is a
general, basic function).
Pretty please, can we remove this ball-&-chain from `make-frame'?
It should be a straightforward utility function, not some kind
of mysterious DWIM djinn.
next prev parent reply other threads:[~2016-07-27 13:29 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-27 4:49 bug#24085: 25.1.50; `make-frame' given `top' param creates frame with ~10x smaller `top' Drew Adams
2016-07-27 9:19 ` martin rudalics
2016-07-27 13:29 ` Drew Adams [this message]
2016-07-27 16:23 ` Eli Zaretskii
2016-07-28 8:57 ` martin rudalics
2016-07-28 14:50 ` Eli Zaretskii
2016-07-28 19:07 ` martin rudalics
2016-07-28 16:34 ` Drew Adams
2016-07-28 19:07 ` martin rudalics
2022-04-22 13:22 ` Lars Ingebrigtsen
2022-04-22 15:28 ` Drew Adams
[not found] ` <<3657859c-03f1-4eca-9a78-a9be0dee6552@default>
[not found] ` <<83h9bbrqx5.fsf@gnu.org>
2016-07-27 16:57 ` Drew Adams
2016-07-27 17:37 ` Eli Zaretskii
[not found] ` <<<3657859c-03f1-4eca-9a78-a9be0dee6552@default>
[not found] ` <<<83h9bbrqx5.fsf@gnu.org>
[not found] ` <<06a3fb2a-b975-41cf-8aa3-c2cbe207057f@default>
[not found] ` <<838twnrngr.fsf@gnu.org>
2016-07-27 18:39 ` Drew Adams
2016-07-27 19:00 ` Eli Zaretskii
[not found] ` <<<<3657859c-03f1-4eca-9a78-a9be0dee6552@default>
[not found] ` <<<<83h9bbrqx5.fsf@gnu.org>
[not found] ` <<<06a3fb2a-b975-41cf-8aa3-c2cbe207057f@default>
[not found] ` <<<838twnrngr.fsf@gnu.org>
[not found] ` <<325b79e8-c40b-46f7-a89a-11f0888b0a68@default>
[not found] ` <<8360rqsy7i.fsf@gnu.org>
2016-07-27 20:55 ` Drew Adams
2016-07-28 2:12 ` Clément Pit--Claudel
2016-07-28 16:35 ` Drew Adams
2016-07-28 8:57 ` martin rudalics
2016-07-28 16:35 ` Drew Adams
2016-07-28 14:40 ` Eli Zaretskii
[not found] ` <<<<<3657859c-03f1-4eca-9a78-a9be0dee6552@default>
[not found] ` <<<<<83h9bbrqx5.fsf@gnu.org>
[not found] ` <<<<06a3fb2a-b975-41cf-8aa3-c2cbe207057f@default>
[not found] ` <<<<838twnrngr.fsf@gnu.org>
[not found] ` <<<325b79e8-c40b-46f7-a89a-11f0888b0a68@default>
[not found] ` <<<8360rqsy7i.fsf@gnu.org>
[not found] ` <<6336b8b4-49c0-4ce6-9044-cf558f12c16e@default>
[not found] ` <<8337mtsu54.fsf@gnu.org>
2016-07-28 16:36 ` Drew Adams
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3657859c-03f1-4eca-9a78-a9be0dee6552@default \
--to=drew.adams@oracle.com \
--cc=24085@debbugs.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 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.