all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alex Schroeder <alex@gnu.org>
Cc: "Kim F. Storm" <storm@cua.dk>
Subject: Re: Can someone explain this code in xterm.c?
Date: Mon, 28 Apr 2003 21:16:22 +0200	[thread overview]
Message-ID: <87issysa9l.fsf@gnu.org> (raw)
In-Reply-To: <E19A0PT-00020w-00@fencepost.gnu.org> (Richard Stallman's message of "Mon, 28 Apr 2003 00:38:35 -0400")

Richard Stallman <rms@gnu.org> writes:

>     This setting is used in the calculation of the total width of the
>     frame window (in macro CHAR_TO_PIXEL_WIDTH), but in other parts of the
>     code, the width of the scroll bar _area_ is always calculated as the
>     number of scroll bar colums multiplied by the font width (canonical x
>     unit).
>
> I think that in some cases the actual display of the scroll bar is
> determined by the number of columns.  You can specify a non-integral
> width, but it leaves the excess blank.
>
> I don't remember the reason it is done this way, but I do remember 
> there was one.

Perhaps because we want scroll-bars to always look the same even if
the frame-width is not a multiple of of the column-width.  This
happens in window managers that have only one maximized window such
as ratpoison.  You cannot change the width of frames under such a
window manager, therefore you can either shrink or expand the
scroll-bars, or you can leave some space.

This is just a guess in the dark because I happen to use the
ratpoison window manager.

Alex.
-- 
http://www.emacswiki.org/cgi-bin/alex.pl

  reply	other threads:[~2003-04-28 19:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-25  1:56 Can someone explain this code in xterm.c? Kim F. Storm
2003-04-28  4:38 ` Richard Stallman
2003-04-28 19:16   ` Alex Schroeder [this message]
2003-04-28 22:16   ` Kim F. Storm
2003-04-29 19:29     ` Richard Stallman

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=87issysa9l.fsf@gnu.org \
    --to=alex@gnu.org \
    --cc=storm@cua.dk \
    /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.