From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: Stefan Monnier <monnier@iro.umontreal.ca>
Newsgroups: gmane.emacs.bugs
Subject: bug#16475: 24.3.50;
	enhancement request: remove vertical scroll bar automatically when
	not needed
Date: Fri, 17 Jan 2014 09:35:14 -0500
Message-ID: <jwvfvomllto.fsf-monnier+emacsbugs@gnu.org>
References: <8bfbddfb-237e-47b1-aed7-b28fc97d1f92@default>
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: ger.gmane.org 1389969385 9831 80.91.229.3 (17 Jan 2014 14:36:25 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Fri, 17 Jan 2014 14:36:25 +0000 (UTC)
Cc: 16475@debbugs.gnu.org
To: Drew Adams <drew.adams@oracle.com>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 17 15:36:31 2014
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>
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 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>)
	id 1W4AX8-0005Ay-5Q
	for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Jan 2014 15:36:30 +0100
Original-Received: from localhost ([::1]:38656 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>)
	id 1W4AX7-0007WJ-PA
	for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Jan 2014 09:36:29 -0500
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35484)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1W4AWp-00075z-FO
	for bug-gnu-emacs@gnu.org; Fri, 17 Jan 2014 09:36:17 -0500
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1W4AWi-0005El-2I
	for bug-gnu-emacs@gnu.org; Fri, 17 Jan 2014 09:36:11 -0500
Original-Received: from debbugs.gnu.org ([140.186.70.43]:40624)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1W4AWh-0005Dx-PJ
	for bug-gnu-emacs@gnu.org; Fri, 17 Jan 2014 09:36:03 -0500
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1W4AWh-00088v-GM
	for bug-gnu-emacs@gnu.org; Fri, 17 Jan 2014 09:36:03 -0500
X-Loop: help-debbugs@gnu.org
Resent-From: Stefan Monnier <monnier@iro.umontreal.ca>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Fri, 17 Jan 2014 14:36:03 +0000
Resent-Message-ID: <handler.16475.B16475.138996932331211@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 16475
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
Original-Received: via spool by 16475-submit@debbugs.gnu.org id=B16475.138996932331211
	(code B ref 16475); Fri, 17 Jan 2014 14:36:03 +0000
Original-Received: (at 16475) by debbugs.gnu.org; 17 Jan 2014 14:35:23 +0000
Original-Received: from localhost ([127.0.0.1]:54639 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1W4AW2-00087G-Et
	for submit@debbugs.gnu.org; Fri, 17 Jan 2014 09:35:22 -0500
Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:47094)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <monnier@iro.umontreal.ca>) id 1W4AVv-00086t-QC
	for 16475@debbugs.gnu.org; Fri, 17 Jan 2014 09:35:17 -0500
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av4EABK/CFFMCoyj/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLLQcHCxQYDSSIHgYMwSGNVYM1A4hhjkiNUYFegxU
X-IPAS-Result: Av4EABK/CFFMCoyj/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLLQcHCxQYDSSIHgYMwSGNVYM1A4hhjkiNUYFegxU
X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="45183297"
Original-Received: from 76-10-140-163.dsl.teksavvy.com (HELO pastel.home)
	([76.10.140.163])
	by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA;
	17 Jan 2014 09:35:15 -0500
Original-Received: by pastel.home (Postfix, from userid 20848)
	id E82BF6019C; Fri, 17 Jan 2014 09:35:14 -0500 (EST)
In-Reply-To: <8bfbddfb-237e-47b1-aed7-b28fc97d1f92@default> (Drew Adams's
	message of "Thu, 16 Jan 2014 20:42:17 -0800 (PST)")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
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" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
	<mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
	<mailto:bug-gnu-emacs-request@gnu.org?subject=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:83652
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/83652>

> Anyway, while fiddling a bit, in response to this request on
> StackOverflow:
> http://stackoverflow.com/questions/21175099/how-to-automatically-add-remove-scroll-bars-on-the-fly
[...]
> One thing I notice is that if you shrink the text by scaling it that
> does not seem to be taken into account by the code I tried: even if all

Duh!  Had you followed the link from the above page to http://stackoverflow.com/questions/20923655/how-to-test-whether-lines-of-text-are-greater-than-the-window-height
and read my answer in there, you'd know why.


        Stefan