From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: Huge gap between fringe and scroll-bar Date: Mon, 01 Jan 2007 13:46:44 +0100 Message-ID: <459902B4.4080407@swipnet.se> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1167655663 30029 80.91.229.12 (1 Jan 2007 12:47:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 Jan 2007 12:47:43 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 01 13:47:42 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H1MZn-0000YB-02 for ged-emacs-devel@m.gmane.org; Mon, 01 Jan 2007 13:47:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H1MZm-0000tT-H5 for ged-emacs-devel@m.gmane.org; Mon, 01 Jan 2007 07:47:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H1MZZ-0000sO-26 for emacs-devel@gnu.org; Mon, 01 Jan 2007 07:47:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H1MZW-0000oo-Vx for emacs-devel@gnu.org; Mon, 01 Jan 2007 07:47:24 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H1MZW-0000oR-QR for emacs-devel@gnu.org; Mon, 01 Jan 2007 07:47:22 -0500 Original-Received: from [81.228.9.179] (helo=av6-1-sn3.vrr.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H1MZW-0007e4-CJ for emacs-devel@gnu.org; Mon, 01 Jan 2007 07:47:22 -0500 Original-Received: by av6-1-sn3.vrr.skanova.net (Postfix, from userid 502) id 87F3F38221; Mon, 1 Jan 2007 13:47:21 +0100 (CET) Original-Received: from smtp3-1-sn3.vrr.skanova.net (smtp3-1-sn3.vrr.skanova.net [81.228.9.101]) by av6-1-sn3.vrr.skanova.net (Postfix) with ESMTP id 59E54381D3; Mon, 1 Jan 2007 13:47:21 +0100 (CET) Original-Received: from husetbladh.homeip.net (81-235-205-78-no59.tbcn.telia.com [81.235.205.78]) by smtp3-1-sn3.vrr.skanova.net (Postfix) with ESMTP id 40F8137E43; Mon, 1 Jan 2007 13:47:20 +0100 (CET) User-Agent: Thunderbird 1.5.0.8 (X11/20061115) Original-To: Leo In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:64598 Archived-At: Leo skrev: > Emacs's native scroll-bar (--without-toolkit-scroll-bars) can have a > huge gap between fringe and scroll-bar. To see this: > > emacs -Q -l sb.el > > Where sb.el has: > ,----[ sb.el ] > | (setq initial-frame-alist > | '((scroll-bar-width . 10))) > `---- > > As you can see the gap between the fringe and scroll-bar is close to > 8 pixels. I see no gap for gtk scroll-bar though. The scroll bar width for the scroll bars are constrained to be equal to an even character width. So if you say scroll bar width 10, it is padded to an even character width. The GTK scroll bar is also padded, but it divides the padding evenly at the left and right side of the scroll bar. You can clearly see this if you run Emacs with a different background, like % emacs -bg gray50 -Q -xrm 'Emacs.scrollBarWidth: 10' and then change the character size to different sizes (use the font menu at Shift-Mouse-1 for example). > > BTW, can I set scroll-bar width in X resource file? > See above. Jan D.