From: Stephen Berman <Stephen.Berman@gmx.net>
To: emacs-devel@gnu.org
Subject: Re: describe-{function,variable} shrinks frame (GTK+/KDE)
Date: Sun, 18 Nov 2007 20:31:56 +0100 [thread overview]
Message-ID: <87mytb4afn.fsf@escher.local.home> (raw)
In-Reply-To: 474006EC.1040308@gmx.at
On Sun, 18 Nov 2007 10:33:32 +0100 martin rudalics <rudalics@gmx.at> wrote:
>> I invoked this and frame-height diminished by one line after the first
>> interactive call.
>
> That is after the sit-for and before the `delete-other-windows'
>
> (sit-for 0.5)
> (delete-other-windows)
>
> your frame has got smaller by one line?
By stepping through srb-shrink-test-1 with edebug, I have seen the
reduction in frame-height occur in two places (on two different
invocations of srb-shrink-test-1 after emacs -Q): as above, after the
(sit-for 0.5) that immediately precedes (delete-other-windows), but also
after the (sit-for 0.5) that follows (delete-other-windows).
> The fact that it gets smaller
> by _one_ line and Info is involved might relate this to the header line.
> Unfortunately, it seems impossible to turn that line off by setting
> `Info-use-header-line', so I don't know how to test this.
I loaded the info library, did `M-x customize-variable RET
Info-use-header-line RET', clicked it to off with toggle button and set
it for the current session. Then I invoked srb-shrink-test-1 and the
Info buffer came up without a header line (C-h v header-line-format in
that buffer said its value is nil). Did you do the same thing and get a
different result, or did you do something else?
Anyway, even without the Info header line, frame-height got reduced by
one line just as with the header line. I also tried just loading info
and running srb-shrink-test-1 with the line (info) commented out: in
this case, frame-height did not change.
> You could try
> with a non-Info buffer displaying a header-line.
I tried variants of srb-shrink-test-1, respectively replacing (info)
with (ruler-mode 1), (tabbar-mode 1) (tabbar.el is an external library
that sets up a tabbed header line), and (setq header-line-format
"TEST"), but in each case frame-height did not change. It seems that
the header line is not relevant, but invoking info is.
>> I have repeated this many times and every time
>> frame-height has shrunk, whereas with srb-shrink-test-0 it has never
>> shrunk. It seems that call-interactively is somehow involved in
>> shrinking frame-height. I looked at the source code but found nothing
>> suggestive; but it is a very long and complex function, and I don't know
>> what to look for. It doesn't help that this problem seems to be
>> restricted to GTK+ builds running under gtk-qt.
>
> Maybe it's related to the KDE frame resizing problem you mentioned
> earlier
I strongly suspect this is the case. Unfortunately, I know nothing
about the gtk-qt engine and it seems that none of the core Emacs
developers uses it.
> (I suppose you still get that after the merge).
Yes, unfortunately.
> Does changing
> the font and/or changing the Info faces affect the behavior?
The frame-height reduction happens both with -Q as well as with my
personal settings, which use a different font. I also tried it after
setting all the oversized Info faces to default and still got the
frame-height reduction.
Steve Berman
next prev parent reply other threads:[~2007-11-18 19:31 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-16 23:21 describe-{function,variable} shrinks frame (GTK+/KDE) Stephen Berman
2007-11-17 9:16 ` martin rudalics
2007-11-17 23:42 ` Stephen Berman
2007-11-18 9:33 ` martin rudalics
2007-11-18 19:31 ` Stephen Berman [this message]
2007-11-18 22:21 ` martin rudalics
2007-11-19 13:53 ` Stephen Berman
2007-11-19 22:56 ` GTK+/KDE frame shrinking has to do with tool bar (was Re: describe-{function, variable} shrinks frame (GTK+/KDE)) Stephen Berman
2007-11-20 7:25 ` martin rudalics
2007-11-20 7:33 ` Jan Djärv
2007-11-20 19:48 ` GTK+/KDE frame shrinking has to do with tool bar Stephen Berman
2007-11-17 23:30 ` describe-{function,variable} shrinks frame (GTK+/KDE) Richard Stallman
2007-11-18 0:39 ` Stephen Berman
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=87mytb4afn.fsf@escher.local.home \
--to=stephen.berman@gmx.net \
--cc=emacs-devel@gnu.org \
/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).