From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Re: Proposal: new mode-line `%'-construct %o meaning "Degree of travel of window through buffer". Date: Mon, 15 May 2017 20:38:38 -0400 Message-ID: References: <20170515204416.GA7349@acm.fritz.box> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1494895164 23176 195.159.176.226 (16 May 2017 00:39:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 16 May 2017 00:39:24 +0000 (UTC) Cc: Emacs developers To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 16 02:39:17 2017 Return-path: Envelope-to: ged-emacs-devel@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 1dAQWD-0005qz-04 for ged-emacs-devel@m.gmane.org; Tue, 16 May 2017 02:39:17 +0200 Original-Received: from localhost ([::1]:39366 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dAQWF-0005Kq-UB for ged-emacs-devel@m.gmane.org; Mon, 15 May 2017 20:39:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dAQVe-0005HY-2K for emacs-devel@gnu.org; Mon, 15 May 2017 20:38:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dAQVb-0007Wp-LE for emacs-devel@gnu.org; Mon, 15 May 2017 20:38:42 -0400 Original-Received: from mail-oi0-x235.google.com ([2607:f8b0:4003:c06::235]:36498) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dAQVb-0007Wh-EL for emacs-devel@gnu.org; Mon, 15 May 2017 20:38:39 -0400 Original-Received: by mail-oi0-x235.google.com with SMTP id h4so7244848oib.3 for ; Mon, 15 May 2017 17:38:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=zYVldlkvo7fuaW2/RHkPtNmBDqcLWIjHGhFxkXvLUzY=; b=YzJCcGK7k1x5AQjEK6kHkOBLDl98H11qqMohpyCi7B3R2fAPu1Ih3H9VU2lndxHAu1 2GTyBPipzW1A0Ltfs11r+PESuEZVu0a8+evcOik2wHEsvHCRjV3yy7GaDslD0IcFMFnG v+5LCAk2VsylJkJXuDU8oPJ5WiNojA568yiE6KbH8ue+SqxwFmYEfxNZW6KhWMCX17li 7NlQkybnW5oAmGo2qSio9A63RIQtS3fDHLRO6M9/1itwqP7mgx+u6MjYgbLpXawwE4f1 xmctuWn6Of3LWrFOgC6D/dryisjImj4mvAESrKXVom1bYrR8n6h29s2Uea5SA5kgMU8S 8Dfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=zYVldlkvo7fuaW2/RHkPtNmBDqcLWIjHGhFxkXvLUzY=; b=EhJSQUyIGMo7G/R2l+igOZhV0H3E+6bC1iBbo8/GRuOaNayIL5n+bcCMyX/4DF+JMg p/9ApxG4s5ore/UqOFfyuBKIbZhUWy3G5lapI1TT1W2Zv2gyxxHg/67VEIONLrf5DC83 PRxgh2oxR/ffa+L3cl5gH6pGdsLPTF5co+6xy58MXMgiu5d7FXwtVsWhij8ocdWFy4oC hPUPgWhWZ/FqrYnznv+a/xkhw/N9rxKmHbrBwYQxNyfhTFHKAIURJbB95fGUaJVfsrJ5 mhVo1S5bZ8ZWkyAFsakWJjBYcVgP5BixEmxwZja7GLVxM1J7aVETy2MDbF27r4j+uErp RmFg== X-Gm-Message-State: AODbwcCfcWCk3A1ugEmr5Ve7Nzw4aCKt0tx68Pg/ef6Kl6VVd8WrTJ9e qlHyJn9wxq/KwxPSnB0+/PiUMLsiig== X-Received: by 10.157.14.46 with SMTP id c43mr4230304otc.200.1494895118450; Mon, 15 May 2017 17:38:38 -0700 (PDT) Original-Received: by 10.157.25.10 with HTTP; Mon, 15 May 2017 17:38:38 -0700 (PDT) In-Reply-To: <20170515204416.GA7349@acm.fritz.box> X-Google-Sender-Auth: vtQvfRcA_7-1lXO7ominf-01NaQ X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::235 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:214869 Archived-At: On Mon, May 15, 2017 at 4:44 PM, Alan Mackenzie wrote: > > Numerically, "%p" is 100 * a / (a + W + b). > > "%o" is 100 * a / (a + b). Yeah, that makes much more sense, a percentage should range from %0 to %100, and %p's formula doesn't. I think I've dealt with this mostly by ignoring the number and looking at the scrollbar instead. With this patch, I might actually be able to rely on the number.