all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Daniel Brockman <daniel@brockman.se>
Subject: Screen real estate utiliziation
Date: Fri, 16 Sep 2005 18:27:02 +0200	[thread overview]
Message-ID: <87zmqdnfl5.fsf@wigwam.deepwood.net> (raw)

Hi list,

Under a window system, Emacs frames want to be resized in
certain increments.  The window manager usually respects this,
so an Emacs frame is usually w * W pixels wide and h * H
pixels tall, where w and h are integers and W and H represent
the character width and height, respectively.

This usually results in each Emacs frame displaying a whole
number of lines of text.  But I've got my `mode-line' face
set to make it draw a two-pixel border around the mode line.
This means that my Emacs frames are not displaying a whole
number of lines of text.

Assuming plain-text buffers, I always see only part of the
bottom-most line of the bottom-most window of each frame.

This in itself doesn't bother me.  What does bother me is
what happens when Emacs is forced to be a certain height.
If an Emacs frame that is displaying a partial line
immediately above the mode line is forced to be a single
pixel taller, that one pixel goes to waste.

This screenshot demonstrates the phenomenon:
<http://www.brockman.se/software/emacs/dead-space.png>

Notice the dead space at the very bottom of the frame.
Those ca. 10 pixels could be put to better use by extending
the main window height by 10 pixels, so that the dead space
would be eliminated.

The same thing happens for the frame width (in the above
screenshot, I believe there are two pixels of dead space to
the far right), but that doesn't bother me as much.

You can reproduce this easily by bringing up a buffer with
large headings, such as the Info system, and then maximizing
the Emacs frame in, e.g., GNOME.  Unless you are very lucky
and the pixels add up just right, you should be able to
observe the partial line and dead space.

I have been strolling through the source code trying to
figure out how difficult this would be to fix, but I'm not
sufficiently familiar with the code so I have to give up.
I'd appreciate it if someone who knows this code better
could evaluate the difficulty of fixing the problem.

Please let me know if any part of the problem is unclear.


Best regards,

-- 
Daniel Brockman <daniel@brockman.se>

             reply	other threads:[~2005-09-16 16:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-16 16:27 Daniel Brockman [this message]
2005-09-18 12:14 ` Screen real estate utiliziation Richard M. Stallman
2005-09-23  5:56   ` Daniel Brockman
2005-09-23 18:13     ` Richard M. Stallman
2005-09-23 19:14       ` Stefan Monnier

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=87zmqdnfl5.fsf@wigwam.deepwood.net \
    --to=daniel@brockman.se \
    /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.