From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: john muhl Newsgroups: gmane.emacs.bugs Subject: bug#71572: [PATCH] seconds-to-string-approximate Date: Sun, 15 Dec 2024 17:26:04 -0600 Message-ID: <87y10gjzoz.fsf@pub.pink> References: <86r0cpicwt.fsf@gnu.org> <86msmxafog.fsf@gnu.org> <3530cd89-b5a2-4b25-95bf-1896c8ee4aef@cs.ucla.edu> <8CC4B1BB-B56A-4C3E-8B51-0E2D5B65C296@gmail.com> <86jzcbir3c.fsf@gnu.org> <874j3f2tga.fsf@pub.pink> <871pyhu6t4.fsf@pub.pink> <1CCC10A3-F76D-477C-9E04-AA0903853EAC@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="20848"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.12.1; emacs 31.0.50 Cc: Adam Porter , 71572@debbugs.gnu.org, Eli Zaretskii , Jonas Bernoulli , Paul Eggert To: JD Smith Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 16 00:27:45 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1tMy1X-0005EA-VE for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Dec 2024 00:27:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMy11-0000b4-DM; Sun, 15 Dec 2024 18:27:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMy0x-0000Zm-E4 for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 18:27:07 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMy0s-0005xz-Gm for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 18:27:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=YrZyV0XIc8uV/83TqkVEMLPBywCA6Vo66Zy48/8fZjI=; b=hJh5MsRFVxRNRSnm0k3snZIkUG64q9sx8xL6i/AvB8xoljq9ZHP1FcnAg/pX9KdXodmVrDGQDxzAzVSct3/sA8aFkHTxLaPxrHMaHoJhh7ou/ca20sy+wO11PcFVuf/SqqILu9P9PL+ihTw6bXmflQZ4w/J3H8jrkr6D6MKpkt9Ph4cg975MqzQGLlfApTTcupzbzsT5uuo+lk3CGJSJMy93pEtO5f0SjIbnfCXJzq2n/ViZF1Z4zX5hPXvRxmQxgfFFt0JjY4scSQlKMNX4xG+Bu85coaqMOdN4OWIscRt35Wsvx50MWVxtJicGmY4L9Us55gWMtjTfoJok2NFmgQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tMy0s-0001ff-Ar for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 18:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: john muhl Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Dec 2024 23:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71572 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 71572-submit@debbugs.gnu.org id=B71572.17343051756336 (code B ref 71572); Sun, 15 Dec 2024 23:27:02 +0000 Original-Received: (at 71572) by debbugs.gnu.org; 15 Dec 2024 23:26:15 +0000 Original-Received: from localhost ([127.0.0.1]:52628 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMy07-0001e7-GB for submit@debbugs.gnu.org; Sun, 15 Dec 2024 18:26:15 -0500 Original-Received: from fout-a8-smtp.messagingengine.com ([103.168.172.151]:58709) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMy03-0001dm-VW for 71572@debbugs.gnu.org; Sun, 15 Dec 2024 18:26:13 -0500 Original-Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfout.phl.internal (Postfix) with ESMTP id 834DA13838F1; Sun, 15 Dec 2024 18:26:06 -0500 (EST) Original-Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-09.internal (MEProxy); Sun, 15 Dec 2024 18:26:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pub.pink; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1734305166; x=1734391566; bh=YrZyV0XIc8uV/83TqkVEMLPBywCA6Vo66Zy48/8fZjI=; b= YpnUNxJ3Lg/dM58eoRLG3bz0hGXJ1omrwRP2XrjMdzV6N6xgLo5q5qSRcfBYMLDt PK9S+SFfeV7/0SNWXOH3QjNmj4PmhRgEJaNEVGBWk5d3wG63c6MstRSzHlGBWWM2 5klsePvDq27nDaq7/KHo27171B2HqfvuD49aLBTO1TcrRxt0SLXPiHxu4oqAZI8T ie2132xDviuyWOWKc5p1qcCec+rXZDWrsdW6C6NcyoGxSuJ79iBeMKZgcHa2lTZN kLLKBFbcEM/ms1gIPB9x4q6a9InR/ZkCPL74qnXhn201xUCRlEi27xgUeQryefiR 9i1iRbjUDUV0r5z4OSWhlw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1734305166; x= 1734391566; bh=YrZyV0XIc8uV/83TqkVEMLPBywCA6Vo66Zy48/8fZjI=; b=Q IZTHs+6C9JDwq26mYaDMSEq+3ZEUfkkC9wG+2HCvbCmSO7YrTBWobOIofcyfnlSQ 56TOc5oSzxSYpW4XHdLBWK/YwnQgHvzqxwLMeOMQMs0yeupV2i6BV+/PQm6tcHXL y9wB7PmzdkmiXEzxL1WR+yACSZm+NgAiko9N+JbiXJcAzpYmMOOUMm0fnEDmOmz7 D3cKumMk1r2zto3d5+VoVGDaR4hGw2nGp4fHORENlTZtpv0dH2hW7RPpHdsg6zed /vOhgjheTSASR278Aok6khTKFOaGlMXsNdjOHCVAmAycywm/gfHpLxt4tpItsO6l OxR2854KOwIpTjX8QWsIg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrledvgddutdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefhvfevufgjfhgffffkgggtgfesthhqredttderjeen ucfhrhhomhepjhhohhhnuchmuhhhlhcuoehjmhesphhusgdrphhinhhkqeenucggtffrrg htthgvrhhnpeegveehvddttedvkeduvddttdehhfdvgffgvdfgiedtjeduhefhffejtddv veevkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hjmhesphhusgdrphhinhhkpdhnsggprhgtphhtthhopeeipdhmohguvgepshhmthhpohhu thdprhgtphhtthhopegvghhgvghrthestghsrdhutghlrgdrvgguuhdprhgtphhtthhope hjohhnrghssegsvghrnhhouhhlrdhlihdprhgtphhtthhopeejudehjedvseguvggssghu ghhsrdhgnhhurdhorhhgpdhrtghpthhtoheprggurghmsegrlhhphhgrphgrphgrrdhnvg htpdhrtghpthhtohepvghlihiisehgnhhurdhorhhgpdhrtghpthhtohepjhguthhsmhhi thhhsehgmhgrihhlrd X-ME-Proxy: Feedback-ID: i74194916:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 15 Dec 2024 18:26:05 -0500 (EST) In-Reply-To: <1CCC10A3-F76D-477C-9E04-AA0903853EAC@gmail.com> (JD Smith's message of "Sun, 15 Dec 2024 13:07:52 -0500") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:297148 Archived-At: JD Smith writes: > On Dec 8, 2024, at 4:17=E2=80=AFAM, john muhl wrote: > > Thanks for working on this. I gave a quick try and noticed some > amounts aren=E2=80=99t pluralized how I expect; e.g. > > (seconds-to-string 36541462 'expanded nil 1) > ;; "1 year 1.9 month" > > Thanks again. This was another small bug in the units for the first expa= nded > term. Corrected (final?) patch attached. Could you please give another = quick > test? Works for all my test cases. Thanks.