From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Nick Helm Newsgroups: gmane.emacs.devel Subject: Re: mode-line size and position indicator Date: Fri, 25 Aug 2017 21:57:35 +1200 Message-ID: References: <83mv6o9a7m.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1503655153 24723 195.159.176.226 (25 Aug 2017 09:59:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 25 Aug 2017 09:59:13 +0000 (UTC) User-Agent: mu4e 0.9.18; emacs 25.2.1 Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 25 11:59:08 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 1dlBOI-0005no-BI for ged-emacs-devel@m.gmane.org; Fri, 25 Aug 2017 11:59:02 +0200 Original-Received: from localhost ([::1]:52319 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlBOL-00019a-9y for ged-emacs-devel@m.gmane.org; Fri, 25 Aug 2017 05:59:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlBNB-00017b-M1 for emacs-devel@gnu.org; Fri, 25 Aug 2017 05:57:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlBN8-0003V0-4h for emacs-devel@gnu.org; Fri, 25 Aug 2017 05:57:53 -0400 Original-Received: from mail-me1aus01on0114.outbound.protection.outlook.com ([104.47.116.114]:52558 helo=AUS01-ME1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dlBN7-0003Td-FH; Fri, 25 Aug 2017 05:57:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenpointcomms.onmicrosoft.com; s=selector1-tenpoint-co-nz; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=BZCxJQHAoZpRe6aZ5uYV5gorlOpAe/g0b/e03DRWSJ0=; b=cGfG9z1KXFrHlHkygmmZueP2axsUrL+WgurlckNOSEVzJJhcaabCyaJmu2N1XIWVGEMljGPJIX5vZTycIvsN07bdd7VExl1vYwtIYcEQV3r2fdjR36X24cqbwVUf0X+GH3knOPjh4XywnGaxigObs2aRHY+oX1M8tPjf49iZAQ4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=nick@tenpoint.co.nz; Original-Received: from jupiter.local (125.239.125.197) by ME1PR01MB1057.ausprd01.prod.outlook.com (2603:10c6:200:f::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1385.9; Fri, 25 Aug 2017 09:57:42 +0000 In-Reply-To: <83mv6o9a7m.fsf@gnu.org> X-Originating-IP: [125.239.125.197] X-ClientProxiedBy: ME1PR01CA0096.ausprd01.prod.outlook.com (2603:10c6:200:18::29) To ME1PR01MB1057.ausprd01.prod.outlook.com (2603:10c6:200:f::8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c8de7d42-728c-4e7e-b4db-08d4eb9fbaa7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(2017082002075)(300000503095)(300135400095)(201703131423075)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:ME1PR01MB1057; X-Microsoft-Exchange-Diagnostics: 1; ME1PR01MB1057; 3:wYOCBCG/ACsI3CqlFB1K7IyaCHPDLCDD07hrkDCkyzqzof2a1F8QSCAEI21Lt0+Ym5bZW/wL/Od+NtJXtoqetzAhg3VAn+Zk5XolL/9cNPkeGLc2DX3dDjuI+8SXRJ5exPDLZ7aopW4LY+dStdkHSvuMW0ljgkM45n4wI2aEV2zOdhMh91khBMPU/uOGpNWFkBKgv9b5d2baK0C9OksawnOdfe+9wEO0oJruho4SKsBP+diQTBg4O7S/ruRqhThG; 25:XOJSKhyX5AhtxnVx6PGiEXE1TuQkfV+QYHN9DyPqMo26htoupjfszX6M9DG6r+hf50LRmgZ6x5XzyvpyQ8sW56p8DCRNdaoT0D0ig3Vp/ewp2LrQ9SRss2MO4VI40HpB13Vn0p5IXFtUa/ujCZxR5Ko4lkWf8DeohwPsjtaMMSUgvP9XmwEidaMzCsgBcOB7hMU6ijA4Ee4cL3gNqqvQUTaYrqkBvSADs0WckEjAcqUSIDnMpp+vgcXYsszV9eSypVyDgFtIwCVINQAHO/KQG6KGVTGG9pJ0uWGq3kVK/qpUGSjS8ZIWCYPhdYK9kV9t3/xzhxQKuQDJh5soDnwi2A==; 31:K3CNzJvUYsOXp0ua83PjF0IOm2Z4fiGBjvIyPVU5Cgfvi5tpSEJhX1tBYbcdpCRFCNFFm5TZ8FsdJuN0i+6J++Db/N7vd+AVovC+g3ciC9cCluCA1sN4DRJINzCeo0mX1vIVuDQuNYAl/JDSdSz4WgoEpjqrWMbTGQLBC1NaZgRuFZMk5vJKMEeMpjo3J5nI++WKVgZZSMiS+XpD4QT7F0G5/zceYQ1gs2P1fb9EU X-MS-TrafficTypeDiagnostic: ME1PR01MB1057: X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6041248)(20161123560025)(20161123558100)(2016111802025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123562025)(20161123555025)(6043046)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:ME1PR01MB1057; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:ME1PR01MB1057; X-Microsoft-Exchange-Diagnostics: 1; ME1PR01MB1057; 4:wsdehtvha709csCAOVlkM6m/zvwJms8vrexiJ+Ara9nkqQmfBbCmzVDfXHwiYtpAitVnx87NNJtgQ9NU97GeVn/Kpe/rh/DSmKkbu2e8ijS+z3ApM542Ou+rIHs4/5tKNcZA+SRjykCPzsD1bu+Hek//nnVt9vywPjdksFOXuEtPVHpC21iHcQK+qTnstARSMo9cLpCaisBbS0BOQuEIc8QsjVEbVlZua/NwgWhgj3a0w+InsCEl0NAcWPVwQ1uS X-Forefront-PRVS: 041032FF37 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(7370300001)(4630300001)(6009001)(39830400002)(24454002)(43784003)(199003)(189002)(47776003)(68736007)(2870700001)(8676002)(3846002)(81166006)(81156014)(66066001)(74482002)(189998001)(6506006)(86362001)(229853002)(83506001)(50986999)(6486002)(97736004)(76176999)(4001350100001)(54356999)(42882006)(2950100002)(101416001)(6666003)(6916009)(6246003)(7736002)(5660300001)(53936002)(42186005)(4326008)(106356001)(7350300001)(6512007)(105586002)(450100002)(23676002)(6116002)(2906002)(33646002)(110136004)(305945005)(36756003)(478600001)(25786009)(50466002); DIR:OUT; SFP:1102; SCL:1; SRVR:ME1PR01MB1057; H:jupiter.local; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: tenpoint.co.nz does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; ME1PR01MB1057; 23:AH8yXIcDJCu+jTO64Z5Ka7za56/2PXks4UPSn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VmbzFLccKXuiC5TmIktWM6SMCR7PlXW0kE6zSgklH5leQb4xgg8fxV4wrL4+A==; 5:6oPOXwVFR+9PQT17oWm4153InBNRQGIVJsf/dXu6KLdCWnSaaE93S3CzWbiCSv4dozgLDdZoiC4Frh5uRe/JwmffgPng0UqwOhrGOprExw4dXHnlsP5ogtOiQ98UkvJ2d/r6Ai3r3lY1ccGn/J7Feg==; 24:V036MxT3xYlCfOFvuEDYt1VMS9osTI/sf4/I/7K2C3ls9jDLojIebLT2NuIL6nowsSttHYEcBVCvxPGMWrrzGANx9V9mZi0Q05ERKRJBs9s=; 7:ErUywCp+VhL0GaIO3iQZY6GM4w2+hlchx8gieImzDQz8fY+u5wVHT6K/j7hzEi7VXIlPS7mei0l1PyPxSVWg577tSMXFfLfOsbqiCfHgoXMm9DDRmYO0+3HRRyn1t2jXjks5NJGbEnm0xnsTw/5r1gv8MlEZ71MV077V41xQePgyw+v5I9XkRi3Vw/Nb5Fq1gNKllsM3NrtnAIpBhyml8gJ6CcaSCDANH SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: tenpoint.co.nz X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2017 09:57:42.7306 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: ME1PR01MB1057 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.116.114 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:217809 Archived-At: Thanks for your comments Eli. On Fri 25 Aug 2017 at 4.55 am, Eli Zaretskii wrote: > ...there's a fundamental problem with putting on the mode line an > indicator that must use a significant part of the screen estate to be > useful: the mode line is pretty crowded these days, even in the > default configuration. Agreed, especially when we already have scroll-bars. Still, something like this might be useful in a few corner cases =E2=80=93 users do seem to = keep reinventing it in one form or another over and over again. See John Yate's comment down thread for one recent example. Even nyan-mode qualifies, I guess. :) > I wonder whether it would have made sense to reuse the code we have > for computing the scroll-bar thumb. Almost certainly. I'll check it out. > Also, why two different code fragments? why not use the former for > both small and large values of 'total'? Other parts of xdisp.c seem to warn against overflow when dealing with large buffers ('total' more than 1000000). Although I couldn't reproduce any problems when I was playing around with the code, I thought it was prudent to follow the same kinds of precautions. In the other case, I wanted the code to run quickly during rapid scrolling manoeuvres, so I tried to condense the math as much as possible at the cost of dealing with larger variables. That was the idea anyway. Thanks again, Nick