From: David Kastrup <dak@gnu.org>
Cc: emacs-pretest-bug@gnu.org, Emacs-Devel <emacs-devel@gnu.org>
Subject: Re: Help with partial line needed
Date: Sat, 12 Feb 2005 22:34:56 +0100 [thread overview]
Message-ID: <x5fz01ea2n.fsf@lola.goethe.zz> (raw)
In-Reply-To: <420E6D91.9070205@swipnet.se> (Jan D.'s message of "Sat, 12 Feb 2005 21:56:49 +0100")
"Jan D." <jan.h.d@swipnet.se> writes:
> There is definitly some bug in fluxbox, it sends the most crazy
> configure notify events to Emacs when the tool bar is detached. It
> usually sends three, two correct ones and one that is off by about 5
> pixels. It is those missing 5 pixels that shrinks the window
> (i.e. Emacs rounds it to an even line). There should only be one
> configure notify.
>
> Emacs is special in the way it handles (or rather the GTK version)
> detaching and attaching of the tool bar. It tries to keep the same
> lines as before, thus the resizing and the configure notify events.
Hm.
> I see that other applications instead keeps the total pixel size, so
> then no configure notify is sent (the frame size is kept). I can
> change to that behaviour, but since the tool bar height may not be a
> multiple of the line height (as it is in other Emacs ports), there
> will most probably be a partial line. And that partial line is the
> minibuffer. It would be better if that partial line was in a
> non-minibuffer. Does anybody know how to achive that (I just call
> change_frame_size)?
More concretely: it would be perfect if the _whole_ area from the
toolbar was added to the window immediately below the toolbar, and if
at the same time vscrol was adjusted by that amount, so that detaching
and reattaching the toolbar would not cause any text to move on the
screen. There may be exceptions:
a) if the buffer display is already at the beginning of the buffer
when the toolbar gets detached, the window contents will have to move
up.
b) if attaching the toolbar moves the cursor off-screen, recentering
will become necessary.
And of course, the toolbar can't be attached in that manner if the top
window does not have the space to accommodate it.
> There are another race condition involving configure notify and tool
> bar attach/detach, but they happen very seldom, and usually ends up
> growing the Emacs frame rather than shrink it. The fluxbox
> behaviour is not changed by fixing that race condition. I haven't
> checked in the fix for the race condition. If there is a way to
> force the partial line to a non-minibuffer I think I'll go with that
> solution instead.
That sounds much better.
> Sorry I couldn't help.
Well, if the problem with fluxbox could be wrapped in a bug report and
sent to the maintainers, this _could_ help. For me, the effect is not
overly tragic since I usually don't use the toolbar, let alone detach
it. Detached, I'd consider it quite more useful if it would be
vertically arranged, but I have no clue about what GTK+ might offer in
that respect.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
next prev parent reply other threads:[~2005-02-12 21:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <x57jlh9qna.fsf@lola.goethe.zz>
[not found] ` <420BC387.3000503@swipnet.se>
[not found] ` <x5acqcqfx0.fsf@lola.goethe.zz>
2005-02-12 20:56 ` Help with partial line needed (was: Bad resizing upon detaching/reattaching GTK toolbar) Jan D.
2005-02-12 21:34 ` David Kastrup [this message]
2005-02-13 10:14 ` Help with partial line needed Jan D.
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=x5fz01ea2n.fsf@lola.goethe.zz \
--to=dak@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=emacs-pretest-bug@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 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.