From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: Re: even more(1) tells you how big the file is on the first screen Date: 15 Apr 2003 22:59:17 +0200 Organization: muc.de e.V. -- private internet access Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <98ph7b.r5.ln@acm.acm> References: <878yufxgz9.fsf@jidanni.org> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1050440517 7810 80.91.224.249 (15 Apr 2003 21:01:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 15 Apr 2003 21:01:57 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 15 23:01:53 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 195XYJ-0001y8-00 for ; Tue, 15 Apr 2003 23:01:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 195XYp-00006P-02 for gnu-bug-gnu-emacs@m.gmane.org; Tue, 15 Apr 2003 17:01:47 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 195XYg-0008Sg-00 for bug-gnu-emacs@gnu.org; Tue, 15 Apr 2003 17:01:38 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 195XYa-0008Kl-00 for bug-gnu-emacs@gnu.org; Tue, 15 Apr 2003 17:01:38 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 195XYa-0008KZ-00 for bug-gnu-emacs@gnu.org; Tue, 15 Apr 2003 17:01:32 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.10) id 195XYZ-0000QR-00 for gnu-emacs-bug@prep.ai.mit.edu; Tue, 15 Apr 2003 17:01:31 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 195XYS-0008Ad-00 for gnu-emacs-bug@prep.ai.mit.edu; Tue, 15 Apr 2003 17:01:30 -0400 Original-Received: from marvin.muc.de ([193.149.48.2]) by monty-python.gnu.org with smtp (Exim 4.10.13) id 195XYR-0008AT-00 for gnu-emacs-bug@prep.ai.mit.edu; Tue, 15 Apr 2003 17:01:24 -0400 Original-Received: (qmail 27978 invoked by uid 8); 15 Apr 2003 20:59:18 -0000 Original-To: gnu-emacs-bug@prep.ai.mit.edu Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Date: Tue, 15 Apr 2003 20:15:05 +0000 Original-Lines: 42 Original-NNTP-Posting-Host: acm.muc.de Original-X-Trace: marvin.muc.de 1050440357 27974 193.149.49.134 (15 Apr 2003 20:59:17 GMT) Original-X-Complaints-To: news-admin@muc.de Original-NNTP-Posting-Date: 15 Apr 2003 20:59:17 GMT User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686)) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4801 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4801 Dan Jacobson wrote on Tue, 15 Apr 2003 04:57:00 +0800: >>>>>> "RMS" == Richard Stallman writes: > Well, here, a face saving solution: you know those little dots > etc. that now appear in the very left margin on wrapped lines, and > after the bottom of the file, when one has indicate-empty-lines=t? > Well, it turns out that if you add a special mark for the beginning of > the file in the very left margin, then one does not anymore need to > rely on "Top" in the modeline to tell us we are on top. Wouldn't work for those of us using Emacs without fringes. > Therefore, if the user enables that, then he should also have the > choice of having the modeline keep on indicating "traditional emacs > style percents" or "alternative more(1) style percents". > Anyway, how can we not convey how big the file is on the initial > screen when even the wimpy more(1) command has for what, 25 years? > (and less -M) Dan, I tend to agree with you on the substantive points. I personally think the mode line ought to contain the size of the file. Maybe this was left out for efficiency reasons when the machines running emacs had processor speeds measured in kilohertz rather than gigahertz. But until (??) Emacs gets this update, try the following in your .emacs: (defvar mode-line-changed-p nil) (when (not mode-line-changed-p) (setq-default mode-line-format (append (butlast default-mode-line-format) '((:eval (format "--P%s/%s" (point) (save-restriction (widen) (point-max))))) (last default-mode-line-format))) (setq mode-line-changed-p t)) -- Alan Mackenzie (Munich, Germany) Email: aacm@muuc.dee; to decode, wherever there is a repeated letter (like "aa"), remove half of them (leaving, say, "a").