From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.bugs Subject: bug#27847: 26.0.50; mode-line-percent-position: line-based instead of char-based (optionally) Date: Thu, 27 Jul 2017 22:44:58 +0200 Message-ID: References: <83shhh4wsk.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1501188375 15559 195.159.176.226 (27 Jul 2017 20:46:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 27 Jul 2017 20:46:15 +0000 (UTC) Cc: 27847@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 27 22:46:08 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 1dapfb-0003d7-Ll for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Jul 2017 22:46:07 +0200 Original-Received: from localhost ([::1]:44704 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dapff-0001xY-Tg for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Jul 2017 16:46:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dapfa-0001xS-R5 for bug-gnu-emacs@gnu.org; Thu, 27 Jul 2017 16:46:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dapfW-0001lJ-U6 for bug-gnu-emacs@gnu.org; Thu, 27 Jul 2017 16:46:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56299) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dapfW-0001l6-RB for bug-gnu-emacs@gnu.org; Thu, 27 Jul 2017 16:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dapfW-0005ao-Hm for bug-gnu-emacs@gnu.org; Thu, 27 Jul 2017 16:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dani Moncayo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Jul 2017 20:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27847 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27847-submit@debbugs.gnu.org id=B27847.150118830721435 (code B ref 27847); Thu, 27 Jul 2017 20:46:02 +0000 Original-Received: (at 27847) by debbugs.gnu.org; 27 Jul 2017 20:45:07 +0000 Original-Received: from localhost ([127.0.0.1]:58976 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1daped-0005Ze-7o for submit@debbugs.gnu.org; Thu, 27 Jul 2017 16:45:07 -0400 Original-Received: from mail-lf0-f48.google.com ([209.85.215.48]:38197) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dapeb-0005Yt-Jy for 27847@debbugs.gnu.org; Thu, 27 Jul 2017 16:45:05 -0400 Original-Received: by mail-lf0-f48.google.com with SMTP id y15so84533666lfd.5 for <27847@debbugs.gnu.org>; Thu, 27 Jul 2017 13:45:05 -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=UkAjblqNl3BsjgkFUOIYCByEIbKdS1vPkD9CloG6XWE=; b=kJZGHVqJnvsrMrl1ipPYOK4e9W5HGKh44HnF4Yhh3k5Jj4vqsOkOF0j1z8/REmQYUl a0xyMIb0T4inUiA41AC99068zW0EXMjfay4krklrVy0BT/WOeuGAC8yCC44CG3KF6Pxz bFMcXV8FhArwk4rN4BepceAa3e/W3YELp4YfxkFM1slIX4zm5sbwx3VmGbwNqglGFfNr Uv21L+cw4iwLnSywaXGO9AaUxIPsclAjNy/zCf9/8Flu+53MUIMdxFR6uqiDwl8s6nxr 3g4cPkeWO5joIiF7e0in+dsv3+Qrxb997VU2muZWcSGRibGpBsmhxhi8MTIODAlTxZg7 8yDg== 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=UkAjblqNl3BsjgkFUOIYCByEIbKdS1vPkD9CloG6XWE=; b=Ky0/gjbwHfl12g8frrklxmfVSkLJ+5N+9YI9xdZ1B8kRHbwLQD725CFVv3p+N0wx4E Q1yvjwUN8iUWvmtiuqs9Fn9gMD9KkYIOWhY6BJx3CaiPDVeFhr9kzEkWbi96Trf2+3Lq wk+yuhz+akNsihS6V2kcSpAkinOkbuGh/ASqamrz8VNowhTKZDVElEg2qsunRqBO4NdB JZ0GOBVWLVWibB9pSiJO6X+GVKgP6B1tLAirwUIpGOkBZKvlm8FpiUViNkRtuomPbQNp SuxaxnsA1Bf7KaUKrN8c2u5X5u+iot5NwW3gB43VfVzTWAgMRvQpQw85zWnxo/W9X4i0 gJ1w== X-Gm-Message-State: AIVw112CD0mYhKUkJNakEFSdZfnB2amirs4eaDAErscbItkgvq51jg7n g/WsO1OZtjxZAn9PUZ4PH+f2Xai/3Q== X-Received: by 10.25.20.21 with SMTP id k21mr1982905lfi.89.1501188299568; Thu, 27 Jul 2017 13:44:59 -0700 (PDT) Original-Received: by 10.25.76.85 with HTTP; Thu, 27 Jul 2017 13:44:58 -0700 (PDT) In-Reply-To: <83shhh4wsk.fsf@gnu.org> 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:135058 Archived-At: >> I'd prefer this (those) percentage(s) to be based on the number of >> _lines_ instead > > What do you want to be displayed in that case when line numbers are > not counted and displayed as "???" ? Do you want Emacs to count lines > even though the limits which control that are exceeded? In cases where line numbers are not counted (I didn't know about such cases, BTW), I guess Emacs could display "??" as the percentage, meaning that the value is unknown at that moment. > Also note that for your feature to be implemented, Emacs needs to > count lines in the entire buffer each time the buffer is changed, so I > expect this feature to slow down redisplay. Maybe this computation could be optimized somehow. In any case, if someone implements it and the slow down is observable, it could be advertised in the manual and/or the docstring of the variable which enables this feature. -- Dani Moncayo