From: Lars Ingebrigtsen <larsi@gnus.org>
To: Colin Fraizer <colin.fraizer@gmail.com>
Cc: 24651@debbugs.gnu.org
Subject: bug#24651: 25.1; frame-inherited-parameters only partially works
Date: Mon, 30 Nov 2020 13:05:38 +0100 [thread overview]
Message-ID: <87360r9hil.fsf@gnus.org> (raw)
In-Reply-To: <CAGo9M378UmZnuztxqUmFH40iAeto1zf3Tx2CXcUGY6aGwdMPzA@mail.gmail.com> (Colin Fraizer's message of "Sat, 8 Oct 2016 15:29:00 -0400")
[-- Attachment #1: Type: text/plain, Size: 1414 bytes --]
Colin Fraizer <colin.fraizer@gmail.com> writes:
> $ emacs -Q
> M-: (setq frame-inherited-parameters '(height width top left)) <RET>
> M-: (defun my-debug-fcn ()
> (interactive)
> (kill-new (prin1-to-string (mapcar (lambda (f) (cons f (mapcar
> (lambda
> (elt) (cons elt (cons (frame-parameter f elt) nil)))
>
> frame-inherited-parameters))) (frame-list))))) <RET>
(This bug report unfortunately got no response at the time.)
The test case is a bit convoluted, but it's basically:
emacs -Q
(setq frame-inherited-parameters '(height width top left))
Make the frame shorter than the default, for instance 20 lines high.
C-x 5 2
I now get a frame that is, indeed, 20 lines high -- but not displaying a
mode line or a minibuffer. The following:
(defun my-debug-fcn ()
(mapcar (lambda (f)
(cons f (mapcar
(lambda
(elt) (cons elt (cons (frame-parameter f elt) nil)))
frame-inherited-parameters)))
(frame-list)))
evaluates to:
((#<frame *Messages* 0x56007c651568> (height 36) (width 80) (top 66) (left 1948)) (#<frame *Minibuf-1* 0x56007bfd6390> (height 20) (width 80) (top 66) (left 1958)))
So the first frame is 20 lines, and the new frame is 20 lines, but
`height' is (the default in "emacs -Q") 36 lines "internally", somehow.
Here's what the frame looks like:
[-- Attachment #2: Type: image/png, Size: 102237 bytes --]
[-- Attachment #3: Type: text/plain, Size: 72 bytes --]
If I then resize the frame, then the mode line and minibuffer appears:
[-- Attachment #4: Type: image/png, Size: 193592 bytes --]
[-- Attachment #5: Type: text/plain, Size: 273 bytes --]
So it seems like something is going wrong when doing the inherited
height parameter -- it's not initialising everything the correct way.
Anybody got an insight here?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2020-11-30 12:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-08 19:29 bug#24651: 25.1; frame-inherited-parameters only partially works Colin Fraizer
2020-11-30 12:05 ` Lars Ingebrigtsen [this message]
2020-11-30 17:30 ` martin rudalics
2020-12-02 9:57 ` Lars Ingebrigtsen
2020-12-02 10:31 ` martin rudalics
2020-12-02 17:00 ` Stefan Monnier
2020-12-03 9:53 ` martin rudalics
2020-12-03 10:28 ` Lars Ingebrigtsen
2020-12-03 15:26 ` Stefan Monnier
2020-12-03 15:45 ` martin rudalics
2022-02-08 6:38 ` Lars Ingebrigtsen
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=87360r9hil.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=24651@debbugs.gnu.org \
--cc=colin.fraizer@gmail.com \
/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).