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 23:35:45 -0400 Message-ID: References: <20170515204416.GA7349@acm.fritz.box> <8337c57bgj.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 1494905791 26127 195.159.176.226 (16 May 2017 03:36:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 16 May 2017 03:36:31 +0000 (UTC) Cc: Alan Mackenzie , Emacs developers To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 16 05:36:26 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 1dATHc-0006eg-Pu for ged-emacs-devel@m.gmane.org; Tue, 16 May 2017 05:36:24 +0200 Original-Received: from localhost ([::1]:39715 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dATHg-0004RO-N7 for ged-emacs-devel@m.gmane.org; Mon, 15 May 2017 23:36:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39044) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dATH3-0004RD-9K for emacs-devel@gnu.org; Mon, 15 May 2017 23:35:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dATH2-0006YQ-GT for emacs-devel@gnu.org; Mon, 15 May 2017 23:35:49 -0400 Original-Received: from mail-oi0-x236.google.com ([2607:f8b0:4003:c06::236]:33889) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dATH1-0006Xl-3u; Mon, 15 May 2017 23:35:47 -0400 Original-Received: by mail-oi0-x236.google.com with SMTP id b204so10495433oii.1; Mon, 15 May 2017 20:35:47 -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=piN+igGhmVJPCPetwTd/KAzUeUt5MWxAZAPgQEw0r94=; b=XbqLL5AUp1j8AEa+1h/bdf9KY2I3y1r9M6dMsB2WgyOxdaGcA1uo0q1sxCDP9IDT2O 0YHS25wyP7qy7ETDCq7QwF1K4ZfgjBE9ssrnlupbTrkM/i6GWGbB6hM3qtoEypsGH/bO 9BsQ3D1YCtwKnhw79Xgt25Fjm9A0l8G3xRAQPD4N1HEhQJO4c1epeHMD93E1sI5f2Ms9 ytWnLdwxLUTV9rfVu4+Alp4OlOKp+5wNoDFICWt3oBvXKUdlkm5xqaXc56ALCCTxHO7w VYPDQtTf2kcXlJzfC+0b8x6MmEm9bhhIEeZHM0AJ7W93EllYDF0YznU7NGqH/OKg232c d4tQ== 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=piN+igGhmVJPCPetwTd/KAzUeUt5MWxAZAPgQEw0r94=; b=glw0/miC7ZAyOnoRofqZx++ZrTd0jk9R5Lnz4EwqasXj5iFGzF2SHKuxFS3ROjjOD+ psEfJ2I0uZ/zSbUNPvuxODULCS9qKgdHT4WJkElsbMnri32OhmoXH3XI3p7BVHT6hrJN KzV9WfZpuHMdKpCsjElJujwu9KhhumLOKBsNSquEGTQgNt2nBfPD1qXhFd/vPpOZXFh5 TBX62arl/L47C5GoNpfk0uRt7Waip6q9MYtVVqagtqbLYUHtGXTP6IUqZ+0/5TT8zsf7 eQejZnzCc07+caq1VuY0N8seU5Vl0wGsnEdIl4FWgg9KmXU1i9uXglsUTVhjPGZ2+F/Q ckaw== X-Gm-Message-State: AODbwcAiN7ZE2Hdg4tQPtx/LlaupwN4n/0dKyFAkGGraMLy8vFJUFSXw DDIpydppnQaFInmDOBIYT4HEjMAAbw== X-Received: by 10.202.244.73 with SMTP id s70mr862531oih.172.1494905746415; Mon, 15 May 2017 20:35:46 -0700 (PDT) Original-Received: by 10.74.139.83 with HTTP; Mon, 15 May 2017 20:35:45 -0700 (PDT) In-Reply-To: <8337c57bgj.fsf@gnu.org> X-Google-Sender-Auth: JkVZPNGUNgAUESV7A3OAyCn-ijE X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::236 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:214873 Archived-At: On Mon, May 15, 2017 at 11:00 PM, Eli Zaretskii wrote: >> >> Numerically, "%p" is 100 * a / (a + W + b). >> >> "%o" is 100 * a / (a + b). > > Isn't it better to display 100 * (a + W/2) / (a + W + b) instead? I don't think so, this formula also never reaches 100%. > This shows the portion of buffer before the window-center. It will > show 50% in the first use case and 73% in the second. Jumping from 73% to "Bot" is less wrong than jumping from 50%, but 98% being the last number before "Bot" makes more sense to me.