From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#18990: 25.0.50; Scroll bar display problems Date: Sat, 08 Nov 2014 17:04:23 +0100 Message-ID: <87d28xznjs.fsf@rosalinde.fritz.box> References: <87ioiqaa63.fsf@rosalinde.fritz.box> <83tx2aqg8p.fsf@gnu.org> <1918BF0D-0785-4A0F-8CDD-E421EC3F6649@swipnet.se> <87lhnlzs2k.fsf@rosalinde.fritz.box> <545E3357.4050308@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415462729 24033 80.91.229.3 (8 Nov 2014 16:05:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Nov 2014 16:05:29 +0000 (UTC) Cc: 18990@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 08 17:05:22 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xn8Vt-0002bX-1t for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Nov 2014 17:05:21 +0100 Original-Received: from localhost ([::1]:36186 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xn8Vs-0004tL-9I for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Nov 2014 11:05:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53871) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xn8Vk-0004sM-LI for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 11:05:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xn8Va-0002xQ-D4 for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 11:05:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56623) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xn8Va-0002ww-8P for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 11:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xn8VZ-0004Hs-Qb for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 11:05:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Nov 2014 16:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18990 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18990-submit@debbugs.gnu.org id=B18990.141546267416440 (code B ref 18990); Sat, 08 Nov 2014 16:05:01 +0000 Original-Received: (at 18990) by debbugs.gnu.org; 8 Nov 2014 16:04:34 +0000 Original-Received: from localhost ([127.0.0.1]:53836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xn8V7-0004H6-Qe for submit@debbugs.gnu.org; Sat, 08 Nov 2014 11:04:34 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:61037) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xn8V4-0004Gu-BT for 18990@debbugs.gnu.org; Sat, 08 Nov 2014 11:04:31 -0500 Original-Received: from rosalinde.fritz.box ([89.245.95.88]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MBmvH-1XuWER1dR9-00AoNF; Sat, 08 Nov 2014 17:04:24 +0100 In-Reply-To: <545E3357.4050308@gmx.at> (martin rudalics's message of "Sat, 08 Nov 2014 16:14:31 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:OA/2VahOWmyKWHW0z6XdbECAPc140dshTkAmqzjUApWiZWyEMz+ sB2ET2V4qCvogMyNjbX7yP3fYHUOBbAHraIR1jld1dm8NzC0hLcURrZwZKO7P9KdzGHOXcG pddGPXDihs2MEmgy9t2n9Ma48O8KNGY5kphD0yHPOUR9RsyhdXCN2X4bmjg176jXGgjqLfr c7mSfGwUZfZtfluVMwwwA== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:95723 On Sat, 08 Nov 2014 16:14:31 +0100 martin rudalics wrote: >> This is not what I observe: I have no setting for the scroll bar in a >> Gtk config file, but when I start emacs with -Q --eval >> "(modify-all-frames-parameters '((scroll-bar-width . 7)))", then the >> scroll bar is displayed thin on the right, unlike when I make it be on >> the left, and the right fringe is not overlaid by the scroll bar like the >> left fringe is; see the attached screen shot. The thin scroll bar looks >> crappy and clearly is not being properly modified as a toolkit widget, > > In the attached screenshot the left scroll bar is displayed in its > default width (you didn't tell us that value so far) With -Q (frame-parameters) includes this: (scroll-bar-width . 16). With the above invocation (frame-parameters) instead has (scroll-bar-width . 7). > partially > overlaying the left fringe of the window on the right. Ah, indeed. I hadn't noticed that, only that the right fringe of the left window is not hidden. > The right scroll > bar is cropped at the external border (by the window manager). That possibility didn't occur to me. Is there some command I can call, or some other way to convince myself that this is what is happening (not that I don't believe you, I'd just like to understand it). And why does it happen on the right but not on the left (nor on the right side of a non-right window)? >> but just as clearly Emacs is able to modify it. > > You mean that Emacs can move the slider? I meant Emacs can make it thinner, since it didn't occur to me that the appearance of the right scroll bar could be due to the WM. >> I guess the easiest >> solution would be to make modifying the Gtk scroll bar a noop. > > The width and the height, yes. The position can be modified without > problems. Of course, I only meant the width (also the height of the horizontal scroll bar). >> I hadn't noticed this before, but the attached screen shot confirms it. >> Interestingly, the right fringe of the left window is not hidden. > > Emacs tells Gtk where to put it. Make `scroll-bar-width' very wide and > you should be able to see how Gtk reacts. Indeed: with (modify-all-frames-parameters '((scroll-bar-width . 32))) the scroll bar still has the default width but there are nearly equally wide spaces on both sides of it (between the scroll and the fringe to the left and between the scroll bar and the frame border to the right). Ok, this convinces me that Emacs is not modifying the width. >> Do you mean that the above invocation should also make the horizontal >> scroll bar thinner? > > No. The corresponding frame parameter is called `scroll-bar-height'. > Some systems allow different values for height and width of scroll bars. Ah, ok. With -Q and the horizontal scroll bar enabled, (frame-parameters) shows (scroll-bar-height . 16), and with -Q --eval "(modify-all-frames-parameters '((scroll-bar-height . 7)))" (frame-parameters) shows (scroll-bar-height . 7), but the horizontal scroll bar is not thinner than with -Q, however, it partially obscures the mode line, which is even worse than the display problem with the vertical scroll bar on the left. >>(Does it with the Lucid build?) If so, then I can >> confirm that it isn't thinner for me; but I haven't seen any display >> glitches either with the horizontal scroll bar like I have with the >> vertical scroll bar on the left. > > I think you need Xaw3d support for Lucid scroll bars. Both Lucid and > Motif scroll bars can be arbitrarily resized here. As I mentioned, I can't simply build both the Lucid and the Gtk builds on my system, apparently due to incompatible libpng requirements. Anyway, it seems that the appropriate fix for this bug it to make modifying the scroll-bar-width and scroll-bar-height frame parameters noops in Gtk builds. Steve Berman