From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#1355: suggestion on the modeline Date: Tue, 18 Nov 2008 11:30:07 -0500 Message-ID: References: <20081117232648.GA9335@muc.de> <20081118103731.GC2491@muc.de> Reply-To: Stefan Monnier , 1355@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1227027046 9256 80.91.229.12 (18 Nov 2008 16:50:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Nov 2008 16:50:46 +0000 (UTC) Cc: Juanma Barranquero , 1355@emacsbugs.donarmstrong.com To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 18 17:51:47 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L2Tng-0007wz-8l for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Nov 2008 17:51:40 +0100 Original-Received: from localhost ([127.0.0.1]:56025 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2TmX-0006G7-Kd for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Nov 2008 11:50:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L2TmI-0006CE-Mj for bug-gnu-emacs@gnu.org; Tue, 18 Nov 2008 11:50:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L2TmG-0006BP-Nf for bug-gnu-emacs@gnu.org; Tue, 18 Nov 2008 11:50:13 -0500 Original-Received: from [199.232.76.173] (port=57289 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2TmG-0006BI-Cj for bug-gnu-emacs@gnu.org; Tue, 18 Nov 2008 11:50:12 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:44263) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L2TmG-0000QR-EP for bug-gnu-emacs@gnu.org; Tue, 18 Nov 2008 11:50:12 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAIGo8oX012752; Tue, 18 Nov 2008 08:50:09 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mAIGe4J5009784; Tue, 18 Nov 2008 08:40:04 -0800 X-Loop: don@donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 18 Nov 2008 16:40:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1355 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1355-submit@emacsbugs.donarmstrong.com id=B1355.12270258148096 (code B ref 1355); Tue, 18 Nov 2008 16:40:03 +0000 Original-Received: (at 1355) by emacsbugs.donarmstrong.com; 18 Nov 2008 16:30:14 +0000 Original-Received: from pruche.dit.umontreal.ca (pruche.dit.umontreal.ca [132.204.246.22]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAIGU9PZ007951 for <1355@emacsbugs.donarmstrong.com>; Tue, 18 Nov 2008 08:30:11 -0800 Original-Received: from alfajor.home (vpn-132-204-232-46.acd.umontreal.ca [132.204.232.46]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id mAIGUhYT015583; Tue, 18 Nov 2008 11:30:43 -0500 Original-Received: by alfajor.home (Postfix, from userid 20848) id C2C9E1C72B; Tue, 18 Nov 2008 11:30:07 -0500 (EST) In-Reply-To: <20081118103731.GC2491@muc.de> (Alan Mackenzie's message of "Tue, 18 Nov 2008 10:37:31 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3149=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 18 Nov 2008 11:50:13 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:22473 Archived-At: >> %p -- print percent of buffer above top of window, or Top, Bot or All. > How about: > %p -- print Top, Bot, All, or how far through the buffer the window > is (in percent). This is 100 * A / (A + B), where A is the number > bytes above the window, B the number below it. >> Also, the same change should be done to %P, shouldn't it? > Hmmm. :-) If so, than %p + %P = 100% (modulo rounding errors), and %P > is kind of redundant. So, for backwards compatibility, %p and %P should > remain unchanged, and 100 * A / (A + B) should be attached to a new > %-construct, say %v. (Why %v? Why not? It's reminiscent of C-v, and > %M-v.) You'd have to ask people who use %P: how do they use it? Why (or what for)? Maybe it's OK to have %P represent B/(A+B), or maybe a better solution would be to offer access to A/(A+B) as well as (TOTAL-A-B)/TOTAL (i.e. percentage of buffer shown). I don't think it's urgent, so we should take the time to try and figure out what %P users want. Stefan