From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= 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 21:15:46 -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 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1494897359 30629 195.159.176.226 (16 May 2017 01:15:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 16 May 2017 01:15:59 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 16 03:15:56 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 1dAR5e-0007pe-L3 for ged-emacs-devel@m.gmane.org; Tue, 16 May 2017 03:15:54 +0200 Original-Received: from localhost ([::1]:39435 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dAR5j-00020F-Tw for ged-emacs-devel@m.gmane.org; Mon, 15 May 2017 21:15:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36672) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dAR5b-0001yw-Ih for emacs-devel@gnu.org; Mon, 15 May 2017 21:15:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dAR5Y-0006jx-8a for emacs-devel@gnu.org; Mon, 15 May 2017 21:15:51 -0400 Original-Received: from mail-qt0-x22b.google.com ([2607:f8b0:400d:c0d::22b]:34903) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dAR5Y-0006is-4f for emacs-devel@gnu.org; Mon, 15 May 2017 21:15:48 -0400 Original-Received: by mail-qt0-x22b.google.com with SMTP id v27so92828998qtg.2 for ; Mon, 15 May 2017 18:15:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=Ess9pL01le55Ts/uLN4Ebwe8geUGlXDhec8KOD+EbOs=; b=g/+b/Aqaj+8Ef/DLc3YK9bUta/NCRxmjfqz00gBS1PHCZ5zQrbXD0qecvfMIVI/SHP AhY/AsPnihDCWyxHSs/XHWMTptDUnNHg7di64tMX4Upj4P8Di47PR54Hq5rEKrRe/mJB IJVF0+HWsRhmImLTHLYX6eM8Jqf6SR3sM/FNopHzgbpLvHesx44kYTF/LV/Lci0xFEht r2ovvDi8d3rqIwB/9Z0fKDKAaSxbrQ3z5ENN3JtQsLMrNca15zQ/eYfZ00qR+Qx+Woje 7MULWtsavAChb8Bw/ahZMNZSB4KAkpDOfzLxICJI7tid1Dp3/pWjYJOiqB6kJIeMEEAO v/kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=Ess9pL01le55Ts/uLN4Ebwe8geUGlXDhec8KOD+EbOs=; b=V97ndmfCo7sxGX8NWqvqoXchK7lqv+NpOFtDgHru0uMXcFtiwvOO+TjpqOnga3nRRu iGWhf4lvIdWbEByU0u0aEYBIGYzHBLNG0R4gl15oGcaIby9cptXrhpjx2TDW+e0r93Te JLAdVAFPtQk/nP6jILal9JaiIs0Zibd+GumMiH2pt20pnbE/yWoJGRq4ga1lXVOECbOE Fr/eo+fcRNXgi4vpib5+2xCkHBFQpGgpUTLgi1R5ELKazH5ShIMuA2aFa8GXpFfcqgsq soRvKJvX960irixmSPc7IubnEqKg+6my2VqokRwZIjtanGTn7XrTt3chubJQPnOSV1aw k9Kg== X-Gm-Message-State: AODbwcBxrkccjREZRmNDKV1G4I9tpnASxPxtFx0bJ7mFBOIaxPS2Gggw n6m4PhWHmpkddnIC55Y= X-Received: by 10.237.54.193 with SMTP id f59mr7702982qtb.63.1494897347391; Mon, 15 May 2017 18:15:47 -0700 (PDT) Original-Received: from [18.111.30.58] (dhcp-18-111-30-58.dyn.MIT.EDU. [18.111.30.58]) by smtp.gmail.com with ESMTPSA id y76sm9514760qka.51.2017.05.15.18.15.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 May 2017 18:15:47 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::22b 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:214870 Archived-At: On 2017-05-15 20:38, Noam Postavsky wrote: > 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. I agree. But in that case, wouldn't it be better to change the default, too? That is, either change %p's meaning (possibly offering the old meaning as %o), or change the default mode line format to use %p. Clément.