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 22:12:41 +0100 Message-ID: <8761epz99y.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> <87d28xznjs.fsf@rosalinde.fritz.box> <545E4C3B.7010605@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415481212 7202 80.91.229.3 (8 Nov 2014 21:13:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Nov 2014 21:13:32 +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 22:13:25 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 1XnDK0-0000Sa-8P for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Nov 2014 22:13:24 +0100 Original-Received: from localhost ([::1]:36871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnDJz-0004Ym-Qp for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Nov 2014 16:13:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35371) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnDJq-0004WR-O5 for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 16:13:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XnDJf-0005Ue-Vu for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 16:13:14 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnDJf-0005UY-Sy for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 16:13:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XnDJe-0007ZN-Ea for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 16:13:02 -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 21:13:02 +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.141548117729082 (code B ref 18990); Sat, 08 Nov 2014 21:13:02 +0000 Original-Received: (at 18990) by debbugs.gnu.org; 8 Nov 2014 21:12:57 +0000 Original-Received: from localhost ([127.0.0.1]:54014 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnDJX-0007Yw-Md for submit@debbugs.gnu.org; Sat, 08 Nov 2014 16:12:56 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:52312) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnDJS-0007Ye-Cm for 18990@debbugs.gnu.org; Sat, 08 Nov 2014 16:12:51 -0500 Original-Received: from rosalinde.fritz.box ([89.245.95.88]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0LlUZz-1YKtMz2drb-00bNuz; Sat, 08 Nov 2014 22:12:42 +0100 In-Reply-To: <545E4C3B.7010605@gmx.at> (martin rudalics's message of "Sat, 08 Nov 2014 18:00:43 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:uIbiUVs0GvetRj/Qv/P+FZmXAFpeJjujJJ4qJ9+Dql0vmPLQ8PD h/6DyVBXY1iEcr4WMIuTuX5UKZWJz/IQ5gXEHWN1HJ0JteFf5Ppr5+MY9rnkUScwucceORH QZdL9f3u3QIK34t5Sp9UHdNZdhaxxPLlUkzRXSi5pNKUEzkIvXdUbJgi9YAWm1xSOiW30KF VHRRf3441BZs4RbsUyGlQ== 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:95752 On Sat, 08 Nov 2014 18:00:43 +0100 martin rudalics wrote: >> 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). > > I suppose the window manager simply crops everything that doesn't fit > within its external borders. You should be able to convince yourself > for a single window frame by removing modeline and echo area and > decreasing the height of the horizontal scroll bar. As I mentioned (quoted below), I was already convinced by seeing the horizontal scroll bar partially cover the mode line. But by using a separate minibuffer frame (I suppose that's what you mean by removing the echo area), I do indeed see the analog with the horizontal scroll bar of what I see with the narrowed vertical scroll bar on the right: it is at the very bottom of the frame and cut off. Quite convincing, indeed. Thanks for the suggestion. >> And why does >> it happen on the right but not on the left (nor on the right side of a >> non-right window)? > > It doesn't happen on the left or for non-right windows because in this > case the (default sized) scroll bar gets drawn into Emacs' client area > and the window manager assumes that Emacs knows how to deal with it. Ok. >> 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. > > We must discriminate: Emacs reserves the area as you specify it. Gtk > draws its slider into that area alas with a width determined by the > theme or a resource file. >> Indeed: with (modify-all-frames-parameters '((scroll-bar-width . 32))) >> the scroll bar > > ... more precisely, the slider ... > >> 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. > > ... the width of the slider. I'm not sure I understand the distinction you're making. By "slider" do you mean what is sometimes called the "thumb" of the scroll bar? (According to Wikipedia, a slider is a different kind of widget from a scroll bar, but I didn't try checking other sources.) If so, are you saying that Gtk only controls the width (or height) of the slider (thumb), while Emacs controls the size of its container, which I guess is the scroll bar taken as a whole? >> As I mentioned, I can't simply build both the Lucid and the Gtk builds >> on my system, apparently due to incompatible libpng requirements. > > Maybe Jan has an idea. He did :) >> 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. > > Another problem is that currently we prescribe a minimum width for > scroll bars which has parts of the scroll bar background change > appearance when the Gtk slider is narrower. Not sure I understand; can you elaborate or tell me how I can see what you mean? Steve Berman