From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ola Nilsson Newsgroups: gmane.emacs.bugs Subject: bug#28605: 26.0.60; Part of leftmost character hidden Date: Wed, 4 Oct 2017 11:59:44 +0200 Message-ID: References: <59CB5D69.7040404@gmx.at> <59CE05F2.1010202@gmx.at> <59CE8E74.5010308@gmx.at> <59D35549.6030905@gmx.at> <87wp4c750c.fsf@gmail.com> <59D4A45F.5010606@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1507111217 348 195.159.176.226 (4 Oct 2017 10:00:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 4 Oct 2017 10:00:17 +0000 (UTC) Cc: Robert Pluim , Lars Magne Ingebrigtsen , 28605@debbugs.gnu.org, Kaushal To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 04 12:00:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzgTJ-00081F-6T for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Oct 2017 12:00:09 +0200 Original-Received: from localhost ([::1]:34003 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzgTQ-0005mt-KS for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Oct 2017 06:00:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzgTH-0005kf-Ak for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2017 06:00:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzgTC-0008H2-Lc for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2017 06:00:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38879) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dzgTC-0008Gm-HD for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2017 06:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dzgTC-0007mN-8p for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2017 06:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ola Nilsson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Oct 2017 10:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28605 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28605-submit@debbugs.gnu.org id=B28605.150711119329853 (code B ref 28605); Wed, 04 Oct 2017 10:00:02 +0000 Original-Received: (at 28605) by debbugs.gnu.org; 4 Oct 2017 09:59:53 +0000 Original-Received: from localhost ([127.0.0.1]:47560 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzgT2-0007lR-TQ for submit@debbugs.gnu.org; Wed, 04 Oct 2017 05:59:53 -0400 Original-Received: from mail-oi0-f44.google.com ([209.85.218.44]:55767) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzgT1-0007l9-7n for 28605@debbugs.gnu.org; Wed, 04 Oct 2017 05:59:51 -0400 Original-Received: by mail-oi0-f44.google.com with SMTP id g125so1197778oib.12 for <28605@debbugs.gnu.org>; Wed, 04 Oct 2017 02:59:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=DkqeGnOURBnTlydVtnxFn1f7nHD8Vh7wSfwhN+vny1w=; b=erhe7Dr972/8pN3USHd9/QsY7KmdNmveAwAOVzxh8ij+kYIiC19x63O0fhaWBVE3av /vTyo+YfOkgsjA8wJ2FJJKAGSCaZlXE+pakLmpBQP3norRvjGSnAt9yVun9w8+yzC+XI WKUz0yx36TjCNAbPacTDDgFK4WZvsRAldkRvAqv4dpm+8XDeYvTk5JMniTz7LWbKvhxY GRkGD5UDx5Opg6S+LDzMqhU8sku2W9560+myTAYShnR9Q3SAiobgzDdh922swB7zcH7w FRz3ooF/7jc/+QVn3KW9IjUgG4yP+S1oKxKzKzlnUu/OCtlMGhoyDJsFdtFA92V6Eaci 5uBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=DkqeGnOURBnTlydVtnxFn1f7nHD8Vh7wSfwhN+vny1w=; b=mbOVzkbOARrtgwGYsolaMqenz/LNkerPAxSj+ban0PMHRGEDrv2EtijZnVhAIcCfpY SOVbd9kOglqtVPNGUpZ9in2Ur5D7iGmAAG1mFSA9alX3P108KTuKgkOZBZ9gNDsSiCfR f3Zujo0pCJztjLtRXqSQNktkXQy49Yow2S3h4Ti3AOkZJ8cmoa4r6g/Abg8Jo0rU/nzS FSFMr7dy/yGqijXJ7l7gj9Etzb4ghjhYiKyMu19duApwfI6W8gimhDvVJ0QaPoO147nl MGj685Pj4kRPagx0So4ayod0Cz+eNMH3SokV7eyzWdD6UwKRNx4OKWGQQYb+0gT8Oq+h 6uaQ== X-Gm-Message-State: AMCzsaUJVaazFnoHKg5A7S/FYyi/rHAmZ1QlBWcS9B0fkg0pI4pmawyf o3oz9jkCqjbOtbDPU6ID7Zs5KSudQmTnG7fy/4c= X-Google-Smtp-Source: AOwi7QA3GzQgaoSS28nDzaeLEx+LUAkz2rblY7N0tNSJjvvd9/wyruEvpCgSjulfhC9L79ViSHLFoAyxFIC3PQAMUzg= X-Received: by 10.202.6.129 with SMTP id 123mr8979938oig.399.1507111185248; Wed, 04 Oct 2017 02:59:45 -0700 (PDT) Original-Received: by 10.168.167.136 with HTTP; Wed, 4 Oct 2017 02:59:44 -0700 (PDT) In-Reply-To: <59D4A45F.5010606@gmx.at> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:137894 Archived-At: On Wed, Oct 4, 2017 at 11:05 AM, martin rudalics wrote: >On Tue, Oct 3, 2017 at 6:58 PM, Ola Nilsson wrote: >> This works for me: >> >> @@ -3883,7 +3883,7 @@ xg_update_scrollbar_pos (struct frame *f, >> top /= scale; >> left /= scale; >> height /= scale; >> - left -= (scale - 1) * ((width / scale) >> 1); >> + width /= scale; > > Deceptively simple. Whatever was that left rigmarole needed for? > What changes with > > width /= scale; > left -= (scale - 1) * (width >> 1); >From the top of my head, the vertical scrollbar is placed to far to the left overlapping the window to the left and leaving a white band between the scroll bar and the left-fringe of the window to the right. It does nothing if scale is 1, obviously. -- Ola Nilsson