From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel Subject: Re: Huge gap between fringe and scroll-bar Date: Mon, 01 Jan 2007 18:02:20 +0000 Message-ID: References: <459902B4.4080407@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1167674553 12718 80.91.229.12 (1 Jan 2007 18:02:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 Jan 2007 18:02:33 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 01 19:02:31 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 1H1RUS-0007Rh-RT for ged-emacs-devel@m.gmane.org; Mon, 01 Jan 2007 19:02:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H1RUS-00034u-ER for ged-emacs-devel@m.gmane.org; Mon, 01 Jan 2007 13:02:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H1RUI-00034p-6r for emacs-devel@gnu.org; Mon, 01 Jan 2007 13:02:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H1RUF-00034c-5o for emacs-devel@gnu.org; Mon, 01 Jan 2007 13:02:17 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H1RUE-00034Z-VG for emacs-devel@gnu.org; Mon, 01 Jan 2007 13:02:14 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1H1RUE-0000wy-8B for emacs-devel@gnu.org; Mon, 01 Jan 2007 13:02:14 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1H1RU2-0007MQ-9D for emacs-devel@gnu.org; Mon, 01 Jan 2007 19:02:02 +0100 Original-Received: from sl392.st-edmunds.cam.ac.uk ([131.111.223.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 01 Jan 2007 19:02:02 +0100 Original-Received: from sdl.web by sl392.st-edmunds.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 01 Jan 2007 19:02:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 53 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: sl392.st-edmunds.cam.ac.uk Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEUCAgBACgkrLClyEhG/ IR5VV1R7fXqFh4SNj4yam5ilp6SytLHCxMHKzMnY2tf9//vsY4CiAAAAAWJLR0QAiAUdSAAAAAlw SFlzAAAuIQAALiEBB1v8/wAAAAd0SU1FB9YLFgIVH7MoU08AAAHvSURBVDjLXZS9TgJBEMeHj9PC qBB4gIuJrWLYB8CwD2BM0E5otLW2ggcw0craylZjYYsvQHwBBRqt1EtINGqOW2dmP49pbmd/7Hzx 3wVl7WY/3tg8dy6Y728MbNEwD97AWvEiBD/grTj0IIsDAJEHd+jWZbvZlHIHl1sWUKCSJGtXRQOd iQEDXJcZyFZ5F51VDf7Ag6ZsU/6EwZSAaEpj5G0z4JJEpVCpMaAkSwS+uUbZgqrQach9QjDVQAoT alfHArVngDXKDisKMuxBiJbwhOei4AcKFLjgQYXIBGbcAmYUOXAKUwZtNxUDtuFSN73jK6jReg32 jN9wc6nTeoVAXZozZZumAcuAAynYzmwWXC5xd3VpZ+tABAt92+4NKC0Ad8IFM9ZCwP/G0X2eNDA5 AxSQyKXAcnsM1GMYjRu8JNBH8foKaAjrMD04OYlXtYhqwu7jEGenSn0VUWL6v48rusw+/KKGVA/1 oh46Z1eHxx2t4wQUgSxxF0ZrIEIxPKm8gRGD+vR738NblTHoIkg9eIV1rWTUO/YWxEoTXRxLNIyF dg0XWXbLICwJN6KEd+jiTIL9L9znGATmwZFB14Tgy+mzpJhWV6Ovsy8Mf/wePABpkMYENk9G6s7M J/lHJh3p7yhZeH2Ueh69jD/Gzv0H5wIyh8Q+en4AAAAASUVORK5CYII= User-Agent: Gnus v5.11, Emacs/23.0.0.1 (20070101), Fedora 6 gnu/linux Cancel-Lock: sha1:UTKHR3pDTWKyxwj1udXWlwv8/z4= 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:64605 Archived-At: * Jan Djärv (2007-01-01 13:46 +0100) said: ^^^^^^^^^ > 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). I see now. Before this post I did a search in Emacs info and can not find the answer not even scrollBarWidth. Is there a complete list of X resource options hidden somewhere? Also is there any reason to make the width of scroll-bar take up even character width? Because the gap is not pretty and very noticeable. > >> >> BTW, can I set scroll-bar width in X resource file? >> > > See above. Thank you ;) > > Jan D. -- Leo (GPG Key: 9283AA3F)