From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: jao Newsgroups: gmane.emacs.devel Subject: Re: [elpa] externals/consult-recoll c5926ca3eb 1/2: format for size annotation Date: Fri, 14 Oct 2022 21:04:42 +0100 Message-ID: <87zgdy189x.fsf@mail.jao.io> References: <166569465562.12992.2240825905795534702@vcs2.savannah.gnu.org> <20221013205735.EF3DEC03F23@vcs2.savannah.gnu.org> <87h707qivx.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23611"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Visuwesh , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 14 22:07:08 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ojQxX-0005uY-Cn for ged-emacs-devel@m.gmane-mx.org; Fri, 14 Oct 2022 22:07:07 +0200 Original-Received: from localhost ([::1]:50118 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojQxW-0004FE-4T for ged-emacs-devel@m.gmane-mx.org; Fri, 14 Oct 2022 16:07:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56804) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojQvH-0003Ps-Jq for emacs-devel@gnu.org; Fri, 14 Oct 2022 16:04:47 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42106) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojQvH-0003ao-0m; Fri, 14 Oct 2022 16:04:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=u+06hHWGvs087qTFzVG+mTtj1AhFki7XMtrMGLdQMI0=; b=QedP7qlMOIn/WtpPhGAY bqUMolVjmqMQFmeD6W68gU1y/o+3c+eKLMOSCbSwdwp/lvS7ilVZaDk3xCEllt6xqZ8P/4UrAj/M6 8foppG0kBCa7JyRMqXrYBOEp+GSHu5ri9KoExpyXYKqrL15BVS5+eP8FVUmE1HsY3ac1+J4FtCngG jpS+P5wu5WtS5rusIG90SOf/Cz9v9FC5SsSrVf820u8fBTrFTQsN7fWQqVhyMlEEcvKIYLxmeulIH L4bJ3ZXCGdA6CLfNcT3fVeZuPg/ICHN5EKvL5X5CVWgb8aKts/csf3v/ZJriNsU3JPamZKOvpOIyW AyfRfLkQu+B6mg==; Original-Received: from cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net ([92.233.85.247]:51096 helo=rivendell.localdomain) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojQvG-00008C-J1; Fri, 14 Oct 2022 16:04:46 -0400 Original-Received: from localhost (rivendell.localdomain [local]) by rivendell.localdomain (OpenSMTPD) with ESMTPA id 2bd946a7; Fri, 14 Oct 2022 20:04:42 +0000 (UTC) In-Reply-To: (Stefan Monnier's message of "Fri, 14 Oct 2022 15:15:56 -0400") X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:297732 Archived-At: On Fri, Oct 14 2022, Stefan Monnier wrote: > Visuwesh [2022-10-14 07:14:02] wrote: >> [=E0=AE=B5=E0=AE=BF=E0=AE=AF=E0=AE=BE=E0=AE=B4=E0=AE=A9=E0=AF=8D =E0=AE= =85=E0=AE=95=E0=AF=8D=E0=AE=9F=E0=AF=8B=E0=AE=AA=E0=AE=B0=E0=AF=8D 13, 2022= ] Stefan Monnier wrote: >>> I see we have `memory-report--format` which does something similar. >>> I'm pretty sure we have other chunks of code doing the same elsewhere. >>> Should Someone=E2=84=A2 introduce a function in `subr.el` or somesuch t= o solve >>> it once and for all? >> Don't we already have `file-size-human-readable' for that? > > Ah, that's it, thanks! > So Consult should simply use that instead of `consult-recoll--format-size= `. indeed. done! many thanks both, i've been reinventing this wheel for a while!! jao --=20 The miracle of the appropriateness of the language of mathematics for the formulation of the laws of physics is a wonderful gift which we neither understand nor deserve. - Eugene Wigner