From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.devel Subject: Re: scrollbar alternative Date: Mon, 15 Mar 2010 21:18:32 +0100 Message-ID: <87vdcxwd7r.fsf@engster.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1268684340 20578 80.91.229.12 (15 Mar 2010 20:19:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 15 Mar 2010 20:19:00 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 15 21:18:50 2010 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.69) (envelope-from ) id 1NrGkT-0005ai-QO for ged-emacs-devel@m.gmane.org; Mon, 15 Mar 2010 21:18:50 +0100 Original-Received: from localhost ([127.0.0.1]:49137 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NrGkS-0008GL-RJ for ged-emacs-devel@m.gmane.org; Mon, 15 Mar 2010 16:18:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NrGkK-0008Fv-Rz for emacs-devel@gnu.org; Mon, 15 Mar 2010 16:18:40 -0400 Original-Received: from [140.186.70.92] (port=52954 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NrGkH-0008Fk-Es for emacs-devel@gnu.org; Mon, 15 Mar 2010 16:18:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NrGkF-0000Cy-NG for emacs-devel@gnu.org; Mon, 15 Mar 2010 16:18:37 -0400 Original-Received: from m61s02.vlinux.de ([83.151.21.164]:55887) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NrGkF-0000Cr-E5 for emacs-devel@gnu.org; Mon, 15 Mar 2010 16:18:35 -0400 Original-Received: from dslc-082-083-049-134.pools.arcor-ip.net ([82.83.49.134] helo=void) by m61s02.vlinux.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1NrGkD-0000dR-Po for emacs-devel@gnu.org; Mon, 15 Mar 2010 21:18:34 +0100 In-Reply-To: (Leo's message of "Mon, 15 Mar 2010 19:41:53 +0000") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.92 (gnu/linux) Mail-Followup-To: emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:122024 Archived-At: --=-=-= Leo writes: > On 2010-03-15 17:28 +0000, David Engster wrote: >> To me, the GTK scrollbars always behaved a bit strange in this regard, >> anyway. For example, I think scrollbars should be hidden when there is >> nothing to scroll, this way giving you an immediate optical hint that >> you're currently seeing everything there is. But in Emacs, you can >> always scroll the window until (window-start) reaches (point-max). >> >> Therefore, I also disabled the scrollbar and now use some code to get a >> scrollbar-like display in the mode-line. I know there's >> size-indication-mode, but I find an information like "13% of 2.8k" not >> very helpful. > > Does your code just show the percentage in a fancy face? > > I turned off scrollbar too and use fringe arrows and percentage on the > modeline. I tried your code but didn't notice any difference. It displays the percentage and displays a moving bar, just like a scrollbar, but you can't drag it. It should look something like this: --=-=-= Content-Type: image/jpeg Content-Disposition: attachment; filename=scroll-mode-line.jpg Content-Transfer-Encoding: base64 /9j/4AAQSkZJRgABAQEAXABeAAD//gATQ3JlYXRlZCB3aXRoIEdJT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