From unknown Sat Jun 14 00:41:07 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#35331 <35331@debbugs.gnu.org> To: bug#35331 <35331@debbugs.gnu.org> Subject: Status: [PATCH] Neater html table of old versions in ELPA Reply-To: bug#35331 <35331@debbugs.gnu.org> Date: Sat, 14 Jun 2025 07:41:07 +0000 retitle 35331 [PATCH] Neater html table of old versions in ELPA reassign 35331 emacs submitter 35331 Mattias Engdeg=C3=A5rd severity 35331 minor tag 35331 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 19 17:36:44 2019 Received: (at submit) by debbugs.gnu.org; 19 Apr 2019 21:36:44 +0000 Received: from localhost ([127.0.0.1]:44827 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hHbBb-0001LD-R3 for submit@debbugs.gnu.org; Fri, 19 Apr 2019 17:36:44 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42640) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hHbBZ-0001Kz-ES for submit@debbugs.gnu.org; Fri, 19 Apr 2019 17:36:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:39144) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hHbBU-0001Vn-7N for submit@debbugs.gnu.org; Fri, 19 Apr 2019 17:36:36 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHbBT-0004PT-AQ for bug-gnu-emacs@gnu.org; Fri, 19 Apr 2019 17:36:36 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hHbBS-0001VI-Ck for bug-gnu-emacs@gnu.org; Fri, 19 Apr 2019 17:36:35 -0400 Received: from mail151c50.megamailservers.eu ([91.136.10.161]:55844 helo=mail50c50.megamailservers.eu) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hHbBR-0001UL-OB for bug-gnu-emacs@gnu.org; Fri, 19 Apr 2019 17:36:34 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1555709791; bh=YfKWsnS8m/Z47ruJppw8K0QPXv7dhlqmi/2jg9NWdQo=; h=From:Subject:Date:To:From; b=m+TWUN90ukJBBoaV4xkhTButhBQTVI3YCgJyCM9QlvxvI8TP1VZ2RxkpCmhFQTJfD rwrzae2dBGvZA4KTRI9K8OGAJAFougGkXjNsclyh36oL6FzUEcOXlHttUzAuzVfynG aKxYBt/RP4JC0rVjwQfD8K65celmWcPkDzy8Oqzs= Feedback-ID: mattiase@acm.or Received: from [192.168.1.64] (c-e636e253.032-75-73746f71.bbcust.telenor.se [83.226.54.230]) (authenticated bits=0) by mail50c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id x3JLaTOh005423 for ; Fri, 19 Apr 2019 21:36:31 +0000 From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= Content-Type: multipart/mixed; boundary="Apple-Mail=_1EEA3491-09E2-4B02-A506-9C687152C984" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Subject: [PATCH] Neater html table of old versions in ELPA Message-Id: <17FAA112-7D1A-49F1-8156-95FED817E370@acm.org> Date: Fri, 19 Apr 2019 23:36:29 +0200 To: bug-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.3445.104.8) X-CTCH-RefID: str=0001.0A0B0202.5CBA3F5F.002A, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=NJb7BXyg c=1 sm=1 tr=0 a=M+GU/qJco4WXjv8D6jB2IA==:117 a=M+GU/qJco4WXjv8D6jB2IA==:17 a=P7s68tA8fzL4GgTnqE0A:9 a=CjuIK1q_8ugA:10 a=SDAtDghFQh5gOl7n7V0A:9 a=B2y7HmGcmWMA:10 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 91.136.10.161 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --Apple-Mail=_1EEA3491-09E2-4B02-A506-9C687152C984 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii This patch sorts the "old versions" table for each ELPA package in = reverse chronological order, and uses correct unit prefixes. --Apple-Mail=_1EEA3491-09E2-4B02-A506-9C687152C984 Content-Disposition: attachment; filename=0001-Neater-html-table-of-old-versions.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-Neater-html-table-of-old-versions.patch" Content-Transfer-Encoding: quoted-printable =46rom=205fecea5da0cd87f73d77a78a80496f8aaf4a62dc=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20=3D?UTF-8?q?Mattias=3D20Engdeg=3DC3=3DA5rd?=3D=20= =0ADate:=20Fri,=2019=20Apr=202019=2023:27:47=20+0200=0A= Subject:=20[PATCH]=20Neater=20html=20table=20of=20old=20versions=0A=0A*=20= admin/archive-contents.el=20(archive--html-bytes-format):=20Use=20IEC=20= prefixes.=0A(archive--html-make-pkg):=20Sort=20old=20versions=20in=20= newest-to-oldest=20order.=0A---=0A=20admin/archive-contents.el=20|=2015=20= +++++++++------=0A=201=20file=20changed,=209=20insertions(+),=206=20= deletions(-)=0A=0Adiff=20--git=20a/admin/archive-contents.el=20= b/admin/archive-contents.el=0Aindex=2030245437f..c7cac6e40=20100644=0A= ---=20a/admin/archive-contents.el=0A+++=20b/admin/archive-contents.el=0A= @@=20-388,15=20+388,15=20@@=20Rename=20DIR/=20to=20PKG-VERS/,=20and=20= return=20the=20descriptor."=0A=20(defun=20archive--html-bytes-format=20= (bytes)=20;Aka=20memory-usage-format.=0A=20=20=20(setq=20bytes=20(/=20= bytes=201024.0))=0A=20=20=20(let=20((units=20'(;;=20"B"=0A-=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20"kB"=20"MB"=20"GB"=20"TB")))=0A+=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20"KiB"=20"MiB"=20"GiB"=20= "TiB")))=0A=20=20=20=20=20(while=20(>=3D=20bytes=201024)=0A=20=20=20=20=20= =20=20(setq=20bytes=20(/=20bytes=201024.0))=0A=20=20=20=20=20=20=20(setq=20= units=20(cdr=20units)))=0A=20=20=20=20=20(cond=0A-=20=20=20=20=20;;=20= ((integerp=20bytes)=20(format=20"%4d%s"=20bytes=20(car=20units)))=0A-=20=20= =20=20=20((>=3D=20bytes=20100)=20(format=20"%4.0f%s"=20bytes=20(car=20= units)))=0A-=20=20=20=20=20((>=3D=20bytes=2010)=20(format=20"%4.1f%s"=20= bytes=20(car=20units)))=0A-=20=20=20=20=20(t=20(format=20"%4.2f%s"=20= bytes=20(car=20units))))))=0A+=20=20=20=20=20;;=20((integerp=20bytes)=20= (format=20"%4d=20%s"=20bytes=20(car=20units)))=0A+=20=20=20=20=20((>=3D=20= bytes=20100)=20(format=20"%4.0f=20%s"=20bytes=20(car=20units)))=0A+=20=20= =20=20=20((>=3D=20bytes=2010)=20(format=20"%4.1f=20%s"=20bytes=20(car=20= units)))=0A+=20=20=20=20=20(t=20(format=20"%4.2f=20%s"=20bytes=20(car=20= units))))))=0A=20=0A=20(defun=20archive--get-prop=20(prop=20name=20= srcdir=20mainsrcfile)=0A=20=20=20(let=20((kprop=20(intern=20(format=20= ":%s"=20(downcase=20prop)))))=0A@@=20-536,7=20+536,10=20@@=20Rename=20= DIR/=20to=20PKG-VERS/,=20and=20return=20the=20descriptor."=0A=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20"\n\n")))=0A=20=20=20=20= =20=20=20(unless=20(<=20(length=20files)=20(if=20(zerop=20(length=20= latest))=201=202))=0A=20=20=20=20=20=20=20=20=20(insert=20(format=20= "

Old=20versions

\n"))=0A-=20=20=20=20=20=20=20=20(dolist=20= (file=20files)=0A+=20=20=20=20=20=20=20=20(dolist=20(file=20=0A+=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20(sort=20files=20(lambda=20(f1=20= f2)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20(version-list-<=20(version-to-list=20(car=20= f2))=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (version-to-list=20(car=20f1))))))=0A=20=20=20=20=20=20=20=20=20=20=20= (unless=20(equal=20(pop=20file)=20latest)=0A=20=20=20=20=20=20=20=20=20=20= =20=20=20(let=20((attrs=20(file-attributes=20file)))=0A=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20(insert=20(format=20"\n"=0A--=20=0A2.20.1=20(Apple=20= Git-117)=0A=0A= --Apple-Mail=_1EEA3491-09E2-4B02-A506-9C687152C984-- From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 21 12:09:17 2019 Received: (at 35331) by debbugs.gnu.org; 21 Apr 2019 16:09:17 +0000 Received: from localhost ([127.0.0.1]:48970 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIF1p-0008GS-0l for submit@debbugs.gnu.org; Sun, 21 Apr 2019 12:09:17 -0400 Received: from mail-ed1-f50.google.com ([209.85.208.50]:39282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIF1m-0008GC-VN for 35331@debbugs.gnu.org; Sun, 21 Apr 2019 12:09:15 -0400 Received: by mail-ed1-f50.google.com with SMTP id k45so7867204edb.6 for <35331@debbugs.gnu.org>; Sun, 21 Apr 2019 09:09:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=vpl1GdbKFlWUrEqElzKqOPKWeiDHmja87qPfNrSn2Ec=; b=L+JF9hi0KtSUWpkee1kuJcDpIUQXVCFFbuQ0Tb6zTyNNWsPna2hKSQaccolejBWJc4 Bqm1yYzwx9HUan6/nwac1Zdwy6FWbOSAVkDRzvGlFI9WvglUcFCuhSoZeN0DP/pI+UHZ 3KgzVXkF/0cfTlFNSneIrHs6R25To1IT2HDp+uT9apVvJWDgjzupRFk0DuIsHQY1n9DS 6VU1R4jcjEmKlLed6FR6AkybrjJBQ/KpdA6zVZzFwepJ+6f/P0T2HujW0pm2XOE7/dws sRCi18tVva1qvFWJoH6PFE9lXYowXvjfr1huunisvnHo8KXGeougcdtAT7IEgDY7bKDL rOcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=vpl1GdbKFlWUrEqElzKqOPKWeiDHmja87qPfNrSn2Ec=; b=lFp6T2H7DTfwICHvgAiVLZt9eXyo9BiCr0z9a/5lOVnWVygeo475B/2oMQmMtLlhn0 oDgGLkAD6D4fFgELggNrKJXY0oONC5clCmd/qKcbRmqMyWE9EEPV89aj66QJ0Fj+vYWA qLXq5qEAIyjgXuhiP3kW6eJqvu6PrCwAOh59RPdFSnCovDfEFV2XuXnCL/2xE6zlCrx7 L0lXByc//NGFOxmJOCwRcY/tpgN+9l8DCVSOf/kuME8wXG373p3zsnR+QD1p3HLxZ+0h 9SK/z9QpmPUMRGxp/1gXvmm22oqKAvXi3rZaM6DCGqYfawmwr/2sdky78+kIT1VCYIvC wz2w== X-Gm-Message-State: APjAAAX4ZfvH6W3VhKBoUOdl1caExd18M4TdyYkvfYoyhk9xa8pdNy6Y 7ieOQyCesvWxzm/ZARhGc+gVuA== X-Google-Smtp-Source: APXvYqwLeu4K2EJlUD5tKwKYMWsLFiFQvXo06LGQr+5IuB0OjSgCJSEZsioHI/F7cJ/kOxf6haFFcw== X-Received: by 2002:a17:906:48d3:: with SMTP id d19mr7415606ejt.237.1555862949075; Sun, 21 Apr 2019 09:09:09 -0700 (PDT) Received: from localhost ([2a02:8084:20e2:c380:8f5:8e00:4345:7c72]) by smtp.gmail.com with ESMTPSA id c9sm1834724ejb.1.2019.04.21.09.09.08 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 21 Apr 2019 09:09:08 -0700 (PDT) From: "Basil L. Contovounesios" To: Mattias =?utf-8?Q?Engdeg=C3=A5rd?= Subject: Re: bug#35331: [PATCH] Neater html table of old versions in ELPA References: <17FAA112-7D1A-49F1-8156-95FED817E370@acm.org> Date: Sun, 21 Apr 2019 17:09:07 +0100 In-Reply-To: <17FAA112-7D1A-49F1-8156-95FED817E370@acm.org> ("Mattias =?utf-8?Q?Engdeg=C3=A5rd=22's?= message of "Fri, 19 Apr 2019 23:36:29 +0200") Message-ID: <87lg03pcgs.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.2 (/) X-Debbugs-Envelope-To: 35331 Cc: 35331@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.2 (-) Mattias Engdeg=C3=A5rd writes: > @@ -536,7 +536,10 @@ Rename DIR/ to PKG-VERS/, and return the descriptor." > "\n\n"))) > (unless (< (length files) (if (zerop (length latest)) 1 2)) > (insert (format "

Old versions

%s%s%s
\n")) > - (dolist (file files) > + (dolist (file=20 > + (sort files (lambda (f1 f2) > + (version-list-< (version-to-list (car f2)) > + (version-to-list (car f1)= ))))) AKA (dolist (file (sort files (lambda (f1 f2) (version< (car f2) (car f1))))) ...) Thanks, --=20 Basil From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 22 09:17:11 2019 Received: (at 35331) by debbugs.gnu.org; 22 Apr 2019 13:17:11 +0000 Received: from localhost ([127.0.0.1]:50193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIYop-0006iA-87 for submit@debbugs.gnu.org; Mon, 22 Apr 2019 09:17:11 -0400 Received: from mail232c50.megamailservers.eu ([91.136.10.242]:52678 helo=mail37c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIYom-0006hx-5w for 35331@debbugs.gnu.org; Mon, 22 Apr 2019 09:17:10 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1555939025; bh=kHLasky9aZFBiMwVOnuyUGsf4k21RdVr9p/1wThEZC0=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=pVyYcnbVuhdZu+RxpeHic59Jup/dQQfLmpcWoe/lOR6mqxcdJjhTV0OwE6yHBqOPX fbmc13kxliGUtG0Q4UqBHjfQoDYv+i5PwQ1HAZr09K+Y+z9NfNrXahRoItrP32JWyd 44WXQrzMd6j6tgC4Ta7K/jj2drz84ZGKxVsrDljk= Feedback-ID: mattiase@acm.or Received: from [192.168.0.4] ([188.150.171.71]) (authenticated bits=0) by mail37c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id x3MDH1eu011859; Mon, 22 Apr 2019 13:17:03 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Subject: Re: bug#35331: [PATCH] Neater html table of old versions in ELPA From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= In-Reply-To: <87lg03pcgs.fsf@tcd.ie> Date: Mon, 22 Apr 2019 15:17:01 +0200 Content-Transfer-Encoding: 7bit Message-Id: <491EC399-F6F1-4512-8926-69BA056B73A1@acm.org> References: <17FAA112-7D1A-49F1-8156-95FED817E370@acm.org> <87lg03pcgs.fsf@tcd.ie> To: "Basil L. Contovounesios" X-Mailer: Apple Mail (2.3445.104.8) X-CTCH-RefID: str=0001.0A0B020A.5CBDBED1.0010, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=Fr8rAVjq c=1 sm=1 tr=0 a=SF+I6pRkHZhrawxbOkkvaA==:117 a=SF+I6pRkHZhrawxbOkkvaA==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=W3AWinqoAfwtHGRleHsA:9 a=CjuIK1q_8ugA:10 X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 35331 Cc: 35331@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) 21 apr. 2019 kl. 18.09 skrev Basil L. Contovounesios : > > (dolist (file (sort files (lambda (f1 f2) > (version< (car f2) (car f1))))) > ...) Thank you, I obviously didn't do my homework properly. Please consider the patch as if it had that improvement. From debbugs-submit-bounces@debbugs.gnu.org Mon May 13 09:42:43 2019 Received: (at 35331) by debbugs.gnu.org; 13 May 2019 13:42:43 +0000 Received: from localhost ([127.0.0.1]:44472 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQBE3-00026B-7P for submit@debbugs.gnu.org; Mon, 13 May 2019 09:42:43 -0400 Received: from mail236c50.megamailservers.eu ([91.136.10.246]:43478 helo=mail56c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQBE0-000260-BD for 35331@debbugs.gnu.org; Mon, 13 May 2019 09:42:41 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1557754958; bh=rxuQgJcpRq341PdSyFG8zrmZfIK04lhEFDs+I5pIVxA=; h=From:Subject:Date:In-Reply-To:Cc:To:References:From; b=L7/2Gpulo4m93VM1vUilVV07ZzSyXuLGmZjHAQdOKlkJjUavlAdTpU64YdfXU0zoi 6oIuSj7PdQppbXtaBi/H9HgyQHeYEni3CJC5IKAEG2ll4hOhorHl2kfF0pyvfPrF2m yuG9Bq6niVlhSQR6Si4b3MOiIr0MTsvLhvbhnjwo= Feedback-ID: mattiase@acm.or Received: from [192.168.1.64] (c-e636e253.032-75-73746f71.bbcust.telenor.se [83.226.54.230]) (authenticated bits=0) by mail56c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id x4DDgapZ023980; Mon, 13 May 2019 13:42:37 +0000 From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= Message-Id: <299F3CF6-3DA6-4B95-BFEB-B462875FBFBA@acm.org> Content-Type: multipart/mixed; boundary="Apple-Mail=_529B393A-EE77-45FF-AAA8-51345017F83A" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Subject: Re: bug#35331: [PATCH] Neater html table of old versions in ELPA Date: Mon, 13 May 2019 15:42:35 +0200 In-Reply-To: <491EC399-F6F1-4512-8926-69BA056B73A1@acm.org> To: "Basil L. Contovounesios" References: <17FAA112-7D1A-49F1-8156-95FED817E370@acm.org> <87lg03pcgs.fsf@tcd.ie> <491EC399-F6F1-4512-8926-69BA056B73A1@acm.org> X-Mailer: Apple Mail (2.3445.104.8) X-CTCH-RefID: str=0001.0A0B0202.5CD9744E.0044, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=J7GEEjvS c=1 sm=1 tr=0 a=M+GU/qJco4WXjv8D6jB2IA==:117 a=M+GU/qJco4WXjv8D6jB2IA==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=g8R4woVSDoibBdHdh5EA:9 a=CjuIK1q_8ugA:10 a=SDAtDghFQh5gOl7n7V0A:9 a=B2y7HmGcmWMA:10 X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 35331 Cc: 35331@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --Apple-Mail=_529B393A-EE77-45FF-AAA8-51345017F83A Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii > 21 apr. 2019 kl. 18.09 skrev Basil L. Contovounesios : >> >> (dolist (file (sort files (lambda (f1 f2) >> (version< (car f2) (car f1))))) >> ...) Revised patch. --Apple-Mail=_529B393A-EE77-45FF-AAA8-51345017F83A Content-Disposition: attachment; filename=0001-Neater-HTML-table-of-old-package-versions-bug-35331.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-Neater-HTML-table-of-old-package-versions-bug-35331.patch" Content-Transfer-Encoding: quoted-printable =46rom=20f9a3ca2c0e76b93394bf20e7dba9912376da8f4e=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20=3D?UTF-8?q?Mattias=3D20Engdeg=3DC3=3DA5rd?=3D=20= =0ADate:=20Fri,=2019=20Apr=202019=2023:27:47=20+0200=0A= Subject:=20[PATCH]=20Neater=20HTML=20table=20of=20old=20package=20= versions=20(bug#35331)=0A=0A*=20admin/archive-contents.el=20= (archive--html-bytes-format):=20Use=20IEC=20prefixes.=0A= (archive--html-make-pkg):=20Sort=20old=20versions=20in=20= newest-to-oldest=20order.=0A---=0A=20admin/archive-contents.el=20|=2013=20= ++++++-------=0A=201=20file=20changed,=206=20insertions(+),=207=20= deletions(-)=0A=0Adiff=20--git=20a/admin/archive-contents.el=20= b/admin/archive-contents.el=0Aindex=20de444e381..c4c2e5af1=20100644=0A= ---=20a/admin/archive-contents.el=0A+++=20b/admin/archive-contents.el=0A= @@=20-387,16=20+387,14=20@@=20Rename=20DIR/=20to=20PKG-VERS/,=20and=20= return=20the=20descriptor."=0A=20=0A=20(defun=20= archive--html-bytes-format=20(bytes)=20;Aka=20memory-usage-format.=0A=20=20= =20(setq=20bytes=20(/=20bytes=201024.0))=0A-=20=20(let=20((units=20'(;;=20= "B"=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20"kB"=20"MB"=20= "GB"=20"TB")))=0A+=20=20(let=20((units=20'("KiB"=20"MiB"=20"GiB"=20= "TiB")))=0A=20=20=20=20=20(while=20(>=3D=20bytes=201024)=0A=20=20=20=20=20= =20=20(setq=20bytes=20(/=20bytes=201024.0))=0A=20=20=20=20=20=20=20(setq=20= units=20(cdr=20units)))=0A=20=20=20=20=20(cond=0A-=20=20=20=20=20;;=20= ((integerp=20bytes)=20(format=20"%4d%s"=20bytes=20(car=20units)))=0A-=20=20= =20=20=20((>=3D=20bytes=20100)=20(format=20"%4.0f%s"=20bytes=20(car=20= units)))=0A-=20=20=20=20=20((>=3D=20bytes=2010)=20(format=20"%4.1f%s"=20= bytes=20(car=20units)))=0A-=20=20=20=20=20(t=20(format=20"%4.2f%s"=20= bytes=20(car=20units))))))=0A+=20=20=20=20=20((>=3D=20bytes=20100)=20= (format=20"%4.0f %s"=20bytes=20(car=20units)))=0A+=20=20=20=20=20= ((>=3D=20bytes=2010)=20(format=20"%4.1f %s"=20bytes=20(car=20= units)))=0A+=20=20=20=20=20(t=20(format=20"%4.2f %s"=20bytes=20(car=20= units))))))=0A=20=0A=20(defun=20archive--get-prop=20(prop=20name=20= srcdir=20mainsrcfile)=0A=20=20=20(let=20((kprop=20(intern=20(format=20= ":%s"=20(downcase=20prop)))))=0A@@=20-536,7=20+534,8=20@@=20Rename=20= DIR/=20to=20PKG-VERS/,=20and=20return=20the=20descriptor."=0A=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20"\n\n")))=0A=20=20=20=20= =20=20=20(unless=20(<=20(length=20files)=20(if=20(zerop=20(length=20= latest))=201=202))=0A=20=20=20=20=20=20=20=20=20(insert=20(format=20= "

Old=20versions

\n"))=0A-=20=20=20=20=20=20=20=20(dolist=20= (file=20files)=0A+=20=20=20=20=20=20=20=20(dolist=20(file=0A+=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20(sort=20files=20(lambda=20(f1=20= f2)=20(version<=20(car=20f2)=20(car=20f1)))))=0A=20=20=20=20=20=20=20=20=20= =20=20(unless=20(equal=20(pop=20file)=20latest)=0A=20=20=20=20=20=20=20=20= =20=20=20=20=20(let=20((attrs=20(file-attributes=20file)))=0A=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20(insert=20(format=20"\n"=0A--=20=0A2.20.1=20(Apple=20= Git-117)=0A=0A= --Apple-Mail=_529B393A-EE77-45FF-AAA8-51345017F83A-- From debbugs-submit-bounces@debbugs.gnu.org Mon May 13 10:25:19 2019 Received: (at 35331) by debbugs.gnu.org; 13 May 2019 14:25:19 +0000 Received: from localhost ([127.0.0.1]:45874 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQBtG-0003WD-Ug for submit@debbugs.gnu.org; Mon, 13 May 2019 10:25:19 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:43058) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQBtD-0003Vp-Gt for 35331@debbugs.gnu.org; Mon, 13 May 2019 10:25:16 -0400 Received: by mail-ed1-f67.google.com with SMTP id w33so17835523edb.10 for <35331@debbugs.gnu.org>; Mon, 13 May 2019 07:25:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=8ROf8eAShIiinAnufDHIQh5vCT8ZsCusaLrBHYZVBe4=; b=nx7hBcu6MvXJ81gyKotCXc4Pnvzga2CgM8Boqr3xp7xus1UTTPhnAL7WGIBLFLX9CL +jXGX8wUy35bcXvM51IUADNK+ylso+SV4+eTa/KpG6k/7AsKoLPHODY0mY6kL0OZrmxa hI+zfg7A3Mq55nhMpVOusn2XGbxl8mNOaSi4JuuIBNU6hELf6wTDgn8MuQla9popdzyZ kiHRTsCWkuTKDp15GRgRLaOa9awxz+tbc1NUOvAOqNAtUJKX9YWl2+VeoGBVC+VJL7xN YJ5wcGh4sTscIsdum3Ty6ZJNlhjMRAYTMbKTZRBWwFloI8Djap484cV1UlX01KoouT9z ZUTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=8ROf8eAShIiinAnufDHIQh5vCT8ZsCusaLrBHYZVBe4=; b=q41egPMUKeaYITL/d4oEnLD6i5KpIzgKZQgw+ZwWeJ62g+h3RQNDmf/gr/3cWNcFQ4 1RXC+hubBdgsW38yRiq6xvAokALhCZu2X6w3MZPP7gIhaSu2Xv6BlS3jZUtJ2MT+0VEH lJhEBUAJhvVc0f5Ww0rAD/BoJzUvEdlFnKwDI5/fK9WKiaRDrNb41lkiu5Mc+G6ZiTVv EkrBapqAmmj+pUWY0yNoOJsNl/uqFab0MBPvbTIOwd75Fo6W4TeeMauoCw0vjxRa23yF pLoo33Kkpkfh9wS6m9IC8TXM1hT0tpDrSV3penvpWHX/cY5pF/GgddAbp52cohzm5K0b 25sw== X-Gm-Message-State: APjAAAXP0t3GaWLV+Ln+O9VmgNQzWun/7BDqHRnxZQDsFxWUlAAPyOkV ZwLJ824rnR3SPt74whMRMOI1xA== X-Google-Smtp-Source: APXvYqw1Pf3ypNgjLayXB+B7azAecOhfeme0JT5hpvEw1i8qZLL+OqbKj7PtbADzIFnBn+U8dJLiKA== X-Received: by 2002:a50:ce5b:: with SMTP id k27mr29501498edj.48.1557757509412; Mon, 13 May 2019 07:25:09 -0700 (PDT) Received: from localhost ([134.226.214.254]) by smtp.gmail.com with ESMTPSA id 65sm3769673edk.88.2019.05.13.07.25.08 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 13 May 2019 07:25:08 -0700 (PDT) From: "Basil L. Contovounesios" To: Mattias =?utf-8?Q?Engdeg=C3=A5rd?= Subject: Re: bug#35331: [PATCH] Neater html table of old versions in ELPA References: <17FAA112-7D1A-49F1-8156-95FED817E370@acm.org> <87lg03pcgs.fsf@tcd.ie> <491EC399-F6F1-4512-8926-69BA056B73A1@acm.org> <299F3CF6-3DA6-4B95-BFEB-B462875FBFBA@acm.org> Date: Mon, 13 May 2019 15:25:07 +0100 In-Reply-To: <299F3CF6-3DA6-4B95-BFEB-B462875FBFBA@acm.org> ("Mattias =?utf-8?Q?Engdeg=C3=A5rd=22's?= message of "Mon, 13 May 2019 15:42:35 +0200") Message-ID: <87lfzae8jg.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35331 Cc: 35331@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Mattias Engdeg=C3=A5rd writes: > diff --git a/admin/archive-contents.el b/admin/archive-contents.el > index de444e381..c4c2e5af1 100644 > --- a/admin/archive-contents.el > +++ b/admin/archive-contents.el > @@ -387,16 +387,14 @@ Rename DIR/ to PKG-VERS/, and return the descriptor= ." >=20=20 > (defun archive--html-bytes-format (bytes) ;Aka memory-usage-format. > (setq bytes (/ bytes 1024.0)) > - (let ((units '(;; "B" > - "kB" "MB" "GB" "TB"))) > + (let ((units '("KiB" "MiB" "GiB" "TiB"))) > (while (>=3D bytes 1024) > (setq bytes (/ bytes 1024.0)) > (setq units (cdr units))) > (cond > - ;; ((integerp bytes) (format "%4d%s" bytes (car units))) > - ((>=3D bytes 100) (format "%4.0f%s" bytes (car units))) > - ((>=3D bytes 10) (format "%4.1f%s" bytes (car units))) > - (t (format "%4.2f%s" bytes (car units)))))) > + ((>=3D bytes 100) (format "%4.0f %s" bytes (car units))) > + ((>=3D bytes 10) (format "%4.1f %s" bytes (car units))) > + (t (format "%4.2f %s" bytes (car units)))))) Is it possible to reuse file-size-human-readable here? Does the no-break space have to be a HTML entity, or can it be Unicode ?\u00A0? Thanks, --=20 Basil From debbugs-submit-bounces@debbugs.gnu.org Mon May 13 11:18:46 2019 Received: (at 35331) by debbugs.gnu.org; 13 May 2019 15:18:47 +0000 Received: from localhost ([127.0.0.1]:45957 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQCj0-00071m-KE for submit@debbugs.gnu.org; Mon, 13 May 2019 11:18:46 -0400 Received: from mail235c50.megamailservers.eu ([91.136.10.245]:54148 helo=mail56c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQCix-00071a-IP for 35331@debbugs.gnu.org; Mon, 13 May 2019 11:18:46 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1557760720; bh=008WBlnLdoh2U1GEsOdt1K3MGn5xwBp0O1btYTXXFc4=; h=From:Subject:Date:In-Reply-To:Cc:To:References:From; b=pFdOlaxCc0nxileq5g51e2cBuMM53ue+PW+rDhg+NQ0x5dJTY3bPvxdOOjW08A4Br gRnW0/90iBjZEwuPizCAsSM5/zOQrnrdajnGoyaXIgGF5BDwFlYfmsQOsz6cziuN7z lf0JWbmMIssALAChYmSCj1XlowCgBFxIRrleEyc0= Feedback-ID: mattiase@acm.or Received: from [192.168.1.64] (c-e636e253.032-75-73746f71.bbcust.telenor.se [83.226.54.230]) (authenticated bits=0) by mail56c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id x4DFIcoe012790; Mon, 13 May 2019 15:18:39 +0000 From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= Message-Id: Content-Type: multipart/mixed; boundary="Apple-Mail=_49AE0AF7-42E1-4032-8778-1DBD1E877714" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Subject: Re: bug#35331: [PATCH] Neater html table of old versions in ELPA Date: Mon, 13 May 2019 17:18:38 +0200 In-Reply-To: <87lfzae8jg.fsf@tcd.ie> To: "Basil L. Contovounesios" References: <17FAA112-7D1A-49F1-8156-95FED817E370@acm.org> <87lg03pcgs.fsf@tcd.ie> <491EC399-F6F1-4512-8926-69BA056B73A1@acm.org> <299F3CF6-3DA6-4B95-BFEB-B462875FBFBA@acm.org> <87lfzae8jg.fsf@tcd.ie> X-Mailer: Apple Mail (2.3445.104.8) X-CTCH-RefID: str=0001.0A0B020E.5CD98AD0.0025, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=J7GEEjvS c=1 sm=1 tr=0 a=M+GU/qJco4WXjv8D6jB2IA==:117 a=M+GU/qJco4WXjv8D6jB2IA==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=L1rlWnzqkHRX4g95PGMA:9 a=CjuIK1q_8ugA:10 a=PRoeUXaspWimDL_0RbcA:9 a=B2y7HmGcmWMA:10 X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 35331 Cc: 35331@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --Apple-Mail=_49AE0AF7-42E1-4032-8778-1DBD1E877714 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 13 maj 2019 kl. 16.25 skrev Basil L. Contovounesios : >=20 > Is it possible to reuse file-size-human-readable here? That either requires modifying that function to (optionally) put a hard = space between the number and unit, or post-processing its return value = to achieve the same effect. The former is obviously the heroic way to = go. Patch attached! > Does the no-break space have to be a HTML entity, > or can it be Unicode ?\u00A0? Probably either would do, but since we don't control the web browser = interpreting it, I went with what I thought was the safer option. --Apple-Mail=_49AE0AF7-42E1-4032-8778-1DBD1E877714 Content-Disposition: attachment; filename=0001-Optional-space-in-file-size-human-readable.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-Optional-space-in-file-size-human-readable.patch" Content-Transfer-Encoding: quoted-printable =46rom=2035a8001e6293748876ce0e1a5929222fedb696d8=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20=3D?UTF-8?q?Mattias=3D20Engdeg=3DC3=3DA5rd?=3D=20= =0ADate:=20Mon,=2013=20May=202019=2017:05:24=20+0200=0A= Subject:=20[PATCH]=20Optional=20space=20in=20`file-size-human-readable'=0A= =0AReadability=20and=20correct=20usage=20requires=20a=20space=20between=20= a=20number=20and=0Aits=20unit=20of=20measurement;=20add=20an=20optional=20= argument=20to=0A`file-size-human-readable'=20to=20provide=20the=20= desired=20string=20to=20put=20in=0Athat=20place.=20=20For=20= compatibility,=20the=20default=20is=20an=20empty=20string.=0A=0A*=20= lisp/files.el=20(file-size-human-readable):=20Add=20optional=20SPACE=20= argument.=0A(files--ask-user-about-large-file,=20= warn-maybe-out-of-memory):=0AUse=20the=20new=20argument.=0A*=20= lisp/url/url-http.el=20(url-http-simple-after-change-function)=0A= (url-http-content-length-after-change-function):=0AUse=20the=20new=20= argument.=0A*=20etc/NEWS=20(Lisp=20Changes):=20Mention=20the=20change.=0A= ---=0A=20etc/NEWS=20=20=20=20=20=20=20=20=20=20=20=20=20|=20=207=20= +++++++=0A=20lisp/files.el=20=20=20=20=20=20=20=20|=2021=20= ++++++++++++++-------=0A=20lisp/url/url-http.el=20|=2011=20++++++-----=0A= =203=20files=20changed,=2027=20insertions(+),=2012=20deletions(-)=0A=0A= diff=20--git=20a/etc/NEWS=20b/etc/NEWS=0Aindex=2043ad8be1cc..e2bffe7a2b=20= 100644=0A---=20a/etc/NEWS=0A+++=20b/etc/NEWS=0A@@=20-1983,6=20+1983,13=20= @@=20returns=20a=20regexp=20that=20never=20matches=20anything,=20which=20= is=20an=20identity=20for=0A=20this=20operation.=20=20Previously,=20the=20= empty=20string=20was=20returned=20in=20this=0A=20case.=0A=20=0A++++=0A= +**=20The=20function=20'file-size-human-readable'=20accepts=20another=20= optional=20argument.=0A+The=20new=20third=20argument=20is=20a=20string=20= put=20between=20the=20number=20and=20unit;=0A+if=20nil=20or=20omitted,=20= the=20empty=20string=20is=20used.=20=20It=20is=20recommended=20to=20use=0A= +a=20single=20space=20or=20non-breaking=20space=20for=20readability=20= and=20correct=0A+usage.=0A+=0A=20=0C=0A=20*=20Changes=20in=20Emacs=20= 27.1=20on=20Non-Free=20Operating=20Systems=0A=20=0Adiff=20--git=20= a/lisp/files.el=20b/lisp/files.el=0Aindex=208477c227bc..a2f160fdae=20= 100644=0A---=20a/lisp/files.el=0A+++=20b/lisp/files.el=0A@@=20-1358,7=20= +1358,7=20@@=20it=20means=20chase=20no=20more=20than=20that=20many=20= links=20and=20then=20stop."=0A=20=0A=20;;=20A=20handy=20function=20to=20= display=20file=20sizes=20in=20human-readable=20form.=0A=20;;=20See=20= http://en.wikipedia.org/wiki/Kibibyte=20for=20the=20reference.=0A-(defun=20= file-size-human-readable=20(file-size=20&optional=20flavor)=0A+(defun=20= file-size-human-readable=20(file-size=20&optional=20flavor=20space)=0A=20= =20=20"Produce=20a=20string=20showing=20FILE-SIZE=20in=20human-readable=20= form.=0A=20=0A=20Optional=20second=20argument=20FLAVOR=20controls=20the=20= units=20and=20the=20display=20format:=0A@@=20-1368,7=20+1368,12=20@@=20= Optional=20second=20argument=20FLAVOR=20controls=20the=20units=20and=20= the=20display=20format:=0A=20=20If=20FLAVOR=20is=20`si',=20each=20= kilobyte=20is=201000=20bytes=20and=20the=20produced=20suffixes=0A=20=20=20= =20=20are=20\"k\",=20\"M\",=20\"G\",=20\"T\",=20etc.=0A=20=20If=20FLAVOR=20= is=20`iec',=20each=20kilobyte=20is=201024=20bytes=20and=20the=20produced=20= suffixes=0A-=20=20=20=20are=20\"KiB\",=20\"MiB\",=20\"GiB\",=20\"TiB\",=20= etc."=0A+=20=20=20=20are=20\"KiB\",=20\"MiB\",=20\"GiB\",=20\"TiB\",=20= etc.=0A+=0A+Optional=20third=20argument=20SPACE=20is=20a=20string=20put=20= between=20the=20number=20and=20unit.=0A+If=20nil=20or=20omitted,=20the=20= empty=20string=20is=20used.=0A+Recommended=20value=20is=20a=20single=20= space=20or=20non-breaking=20space,=20unless=20other=0A+constraints=20= prohibit=20a=20space=20in=20that=20position."=0A=20=20=20(let=20((power=20= (if=20(or=20(null=20flavor)=20(eq=20flavor=20'iec))=0A=20=09=09=20=20=20= 1024.0=0A=20=09=09=201000.0))=0A@@=20-1379,9=20+1384,10=20@@=20Optional=20= second=20argument=20FLAVOR=20controls=20the=20units=20and=20the=20= display=20format:=0A=20=20=20=20=20=20=20(setq=20file-size=20(/=20= file-size=20power)=0A=20=09=20=20=20=20post-fixes=20(cdr=20post-fixes)))=0A= =20=20=20=20=20(format=20(if=20(>=20(mod=20file-size=201.0)=200.05)=0A-=09= =09"%.1f%s%s"=0A-=09=20=20=20=20=20=20"%.0f%s%s")=0A+=09=09"%.1f%s%s%s"=0A= +=09=20=20=20=20=20=20"%.0f%s%s%s")=0A=20=09=20=20=20=20file-size=0A+=20=20= =20=20=20=20=20=20=20=20=20=20(or=20space=20"")=0A=20=09=20=20=20=20(if=20= (and=20(eq=20flavor=20'iec)=20(string=3D=20(car=20post-fixes)=20"k"))=0A=20= =09=09"K"=0A=20=09=20=20=20=20=20=20(car=20post-fixes))=0A@@=20-2054,7=20= +2060,7=20@@=20think=20it=20does,=20because=20\"free\"=20is=20pretty=20= hard=20to=20define=20in=20practice."=0A=20(defun=20= files--ask-user-about-large-file=20(size=20op-type=20filename=20= offer-raw)=0A=20=20=20(let=20((prompt=20(format=20"File=20%s=20is=20= large=20(%s),=20really=20%s?"=0A=20=09=09=20=20=20=20=20=20=20=20= (file-name-nondirectory=20filename)=0A-=09=09=20=20=20=20=20=20=20=20= (file-size-human-readable=20size)=20op-type)))=0A+=09=09=20=20=20=20=20=20= =20=20(file-size-human-readable=20size=20'iec=20"=20")=20op-type)))=0A=20= =20=20=20=20(if=20(not=20offer-raw)=0A=20=20=20=20=20=20=20=20=20(if=20= (y-or-n-p=20prompt)=20nil=20'abort)=0A=20=20=20=20=20=20=20(let*=20= ((use-dialog=20(and=20(display-popup-menus-p)=0A@@=20-2106,9=20+2112,10=20= @@=20returns=20nil=20or=20exits=20non-locally."=0A=20exceeds=20the=20= %S%%=20of=20currently=20available=20free=20memory=20(%s).=0A=20If=20that=20= fails,=20try=20to=20open=20it=20with=20`find-file-literally'=0A=20\(but=20= note=20that=20some=20characters=20might=20be=20displayed=20= incorrectly)."=0A-=09=20=20=20=20=20(file-size-human-readable=20size)=0A= +=09=20=20=20=20=20(file-size-human-readable=20size=20'iec=20"=20")=0A=20= =09=20=20=20=20=20out-of-memory-warning-percentage=0A-=09=20=20=20=20=20= (file-size-human-readable=20(*=20total-free-memory=201024)))))))))=0A+=09= =20=20=20=20=20(file-size-human-readable=20(*=20total-free-memory=20= 1024)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20'iec=20"=20"))))))))=0A= =20=0A=20(defun=20files--message=20(format=20&rest=20args)=0A=20=20=20= "Like=20`message',=20except=20sometimes=20don't=20print=20to=20= minibuffer.=0Adiff=20--git=20a/lisp/url/url-http.el=20= b/lisp/url/url-http.el=0Aindex=20662b6664b1..3baf5c6b19=20100644=0A---=20= a/lisp/url/url-http.el=0A+++=20b/lisp/url/url-http.el=0A@@=20-999,7=20= +999,8=20@@=20should=20be=20shown=20to=20the=20user."=0A=20(defun=20= url-http-simple-after-change-function=20(_st=20_nd=20_length)=0A=20=20=20= ;;=20Function=20used=20when=20we=20do=20NOT=20know=20how=20long=20the=20= document=20is=20going=20to=20be=0A=20=20=20;;=20Just=20_very_=20simple=20= 'downloaded=20%d'=20type=20of=20info.=0A-=20=20(url-lazy-message=20= "Reading=20%s..."=20(file-size-human-readable=20(buffer-size))))=0A+=20=20= (url-lazy-message=20"Reading=20%s..."=0A+=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20(file-size-human-readable=20(buffer-size)=20= 'iec=20"=20")))=0A=20=0A=20(defun=20= url-http-content-length-after-change-function=20(_st=20nd=20_length)=0A=20= =20=20"Function=20used=20when=20we=20DO=20know=20how=20long=20the=20= document=20is=20going=20to=20be.=0A@@=20-1012,16=20+1013,16=20@@=20the=20= callback=20to=20be=20triggered."=0A=20=20=20=20=20=20=20=20= (url-percentage=20(-=20nd=20url-http-end-of-headers)=0A=20=09=09=20=20=20= =20=20=20=20url-http-content-length)=0A=20=20=20=20=20=20=20=20= url-http-content-type=0A-=20=20=20=20=20=20=20(file-size-human-readable=20= (-=20nd=20url-http-end-of-headers))=0A-=20=20=20=20=20=20=20= (file-size-human-readable=20url-http-content-length)=0A+=20=20=20=20=20=20= =20(file-size-human-readable=20(-=20nd=20url-http-end-of-headers)=20'iec=20= "=20")=0A+=20=20=20=20=20=20=20(file-size-human-readable=20= url-http-content-length=20'iec=20"=20")=0A=20=20=20=20=20=20=20=20= (url-percentage=20(-=20nd=20url-http-end-of-headers)=0A=20=09=09=20=20=20= =20=20=20=20url-http-content-length))=0A=20=20=20=20=20= (url-display-percentage=0A=20=20=20=20=20=20"Reading...=20%s=20of=20%s=20= (%d%%)"=0A=20=20=20=20=20=20(url-percentage=20(-=20nd=20= url-http-end-of-headers)=0A=20=09=09=20=20=20=20=20= url-http-content-length)=0A-=20=20=20=20=20(file-size-human-readable=20= (-=20nd=20url-http-end-of-headers))=0A-=20=20=20=20=20= (file-size-human-readable=20url-http-content-length)=0A+=20=20=20=20=20= (file-size-human-readable=20(-=20nd=20url-http-end-of-headers)=20'iec=20= "=20")=0A+=20=20=20=20=20(file-size-human-readable=20= url-http-content-length=20'iec=20"=20")=0A=20=20=20=20=20=20= (url-percentage=20(-=20nd=20url-http-end-of-headers)=0A=20=09=09=20=20=20= =20=20url-http-content-length)))=0A=20=0A--=20=0A2.20.1=20(Apple=20= Git-117)=0A=0A= --Apple-Mail=_49AE0AF7-42E1-4032-8778-1DBD1E877714-- From debbugs-submit-bounces@debbugs.gnu.org Wed May 15 16:16:38 2019 Received: (at 35331) by debbugs.gnu.org; 15 May 2019 20:16:38 +0000 Received: from localhost ([127.0.0.1]:53457 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hR0KL-0000P3-Vm for submit@debbugs.gnu.org; Wed, 15 May 2019 16:16:38 -0400 Received: from mail211c50.megamailservers.eu ([91.136.10.221]:56842 helo=mail194c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hR0KJ-0000Os-Pd for 35331@debbugs.gnu.org; Wed, 15 May 2019 16:16:36 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1557951393; bh=Ui3I3YjFdkU1KX2Vhk+puKnitqXOYXpWBRU9ef6X8q4=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=rMenJmVGgOzyv+qlYZD6W9gZrxQ4wcCWfYc9AgEHb4x5x5Jy7aRnncQElD/ZkXOiY J/zBTM34rp37XLFksEbJnCO3qHS2fDYM0Lj6cePx9EZfxCZ/pI/L9lnFQOnHttv1dy lTFDcy29cMc536fKHiO/INkTVTFCcg9zV9f4LILo= Feedback-ID: mattiase@acm.or Received: from [192.168.1.65] (c-e636e253.032-75-73746f71.bbcust.telenor.se [83.226.54.230]) (authenticated bits=0) by mail194c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id x4FKGVOL002682; Wed, 15 May 2019 20:16:33 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Subject: Re: bug#35331: [PATCH] Neater html table of old versions in ELPA From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= In-Reply-To: <87lfzae8jg.fsf@tcd.ie> Date: Wed, 15 May 2019 22:16:31 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <023D6B0D-0EE2-43DB-9214-ED5F339169D2@acm.org> References: <17FAA112-7D1A-49F1-8156-95FED817E370@acm.org> <87lg03pcgs.fsf@tcd.ie> <491EC399-F6F1-4512-8926-69BA056B73A1@acm.org> <299F3CF6-3DA6-4B95-BFEB-B462875FBFBA@acm.org> <87lfzae8jg.fsf@tcd.ie> To: "Basil L. Contovounesios" X-Mailer: Apple Mail (2.3445.104.8) X-CTCH-RefID: str=0001.0A0B020C.5CDC73A1.001B, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=OuZhNR3t c=1 sm=1 tr=0 a=M+GU/qJco4WXjv8D6jB2IA==:117 a=M+GU/qJco4WXjv8D6jB2IA==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=mDV3o1hIAAAA:8 a=KnBZijkK6QS1eeNqvvYA:9 a=CjuIK1q_8ugA:10 a=_FVE-zBwftR9WsbkzFJk:22 X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 35331 Cc: 35331@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 13 maj 2019 kl. 16.25 skrev Basil L. Contovounesios : >=20 > Is it possible to reuse file-size-human-readable here? There turned out to be more things to fix in that function, so I opened = a new bug for it (bug#35756). I'm not sure what Emacs version elpa.gnu.org is using, so it is perhaps = unwise to depend on a very recent addition to Emacs master. From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 26 07:41:48 2019 Received: (at 35331) by debbugs.gnu.org; 26 Jun 2019 11:41:48 +0000 Received: from localhost ([127.0.0.1]:34400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hg6JA-00026h-0G for submit@debbugs.gnu.org; Wed, 26 Jun 2019 07:41:48 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:43814) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hg6J7-00026T-KJ for 35331@debbugs.gnu.org; Wed, 26 Jun 2019 07:41:46 -0400 Received: by mail-ed1-f65.google.com with SMTP id e3so2853503edr.10 for <35331@debbugs.gnu.org>; Wed, 26 Jun 2019 04:41:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=iEG0AvEjryc0AdJvW5WRQTDFFewlYsc++PpZdaXTe0o=; b=qrSq0v2hp+ccM7LyiQjkabbZW7fcaoFRQ12p12ziUEFUWnAgiLd+e+yr+MGP6Yhm9U wLpziCqWDaEeLyyeQb3CO7e8wUsAbAKLGivRVGtsTvjzpKrOOKwFVNk+hqPQbJnD4eoh MGBXKl3rKj4wVurQQpa/amU5y5D5z7068HZMotmN4YCWNTyZd1f7OEF53FPiurvHXP74 /NzVBmzUh4j2A25McpR1qYVHNoOMKA97x2/CNXxuxIw+ZtH3ZVjuS2N8z45x3TglK+z/ 0tqmDjlVlbbtrPK9zBlrtD2wP5fmc1goprkjZFnBtBHYvSPJR/m2bFCi39IIn6dwju9Q xP4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=iEG0AvEjryc0AdJvW5WRQTDFFewlYsc++PpZdaXTe0o=; b=Sb42C6lZXK4rRgvtuMU38Nw4wvZ+ZQ7zhfveZxXW98Fi1zCVlhaO580w/XxNCXeMVV jWJvAf/s7hWMsf7M6lB8/cBdcljYf5yFqkz6KFrLmwTmm/5JHsbKz6sHeENpvPfKTIHA i8yamm/EX83TC1f6qEd3EM4tA/iO96hsLRPWVINzB3czGwKhnzfvPqdmEortT+r0Y3VH PsHAGN7wfqriVW6Om8RDk4ql8TCPmO0/u1mOzHq1qDWCQdTAF2r7T9AN3MNVNKm3IeWk HVpmTt8Im+VImpi6eELblhb8LA0eLjb+VrOohwI9sU+8PE8IEAU+81YLlyPoSuENpsB0 jG2g== X-Gm-Message-State: APjAAAW2lyv/EAvucFqOtk21FVGeKFrsNJykmBy6y9ULxdsMT3wrFjsB BVo6LFi4HTbOJkTm9tjdo1ASAg== X-Google-Smtp-Source: APXvYqwixBgrth7E3JB/mzXTD2z4a2h7yztOpTbLOQ6kmXb/gxYzV7+pv5wSUE0jTw8yxI7Yoqxs+Q== X-Received: by 2002:a17:906:2415:: with SMTP id z21mr3601368eja.211.1561549299637; Wed, 26 Jun 2019 04:41:39 -0700 (PDT) Received: from localhost ([2a02:8084:20e2:c380:92bd:1bfd:38fc:fae2]) by smtp.gmail.com with ESMTPSA id i6sm5782791eda.79.2019.06.26.04.41.38 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 26 Jun 2019 04:41:38 -0700 (PDT) From: "Basil L. Contovounesios" To: Mattias =?utf-8?Q?Engdeg=C3=A5rd?= Subject: Re: bug#35331: [PATCH] Neater html table of old versions in ELPA References: <17FAA112-7D1A-49F1-8156-95FED817E370@acm.org> <87lg03pcgs.fsf@tcd.ie> <491EC399-F6F1-4512-8926-69BA056B73A1@acm.org> <299F3CF6-3DA6-4B95-BFEB-B462875FBFBA@acm.org> <87lfzae8jg.fsf@tcd.ie> <023D6B0D-0EE2-43DB-9214-ED5F339169D2@acm.org> Date: Wed, 26 Jun 2019 12:41:37 +0100 In-Reply-To: <023D6B0D-0EE2-43DB-9214-ED5F339169D2@acm.org> ("Mattias =?utf-8?Q?Engdeg=C3=A5rd=22's?= message of "Wed, 15 May 2019 22:16:31 +0200") Message-ID: <87lfxoa80e.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35331 Cc: 35331@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Mattias Engdeg=C3=A5rd writes: > 13 maj 2019 kl. 16.25 skrev Basil L. Contovounesios : >>=20 >> Is it possible to reuse file-size-human-readable here? > > There turned out to be more things to fix in that function, so I > opened a new bug for it (bug#35756). > > I'm not sure what Emacs version elpa.gnu.org is using, so it is perhaps u= nwise > to depend on a very recent addition to Emacs master. Indeed. I'd feel free to push the patch for archive-contents.el, given the lack of objections in the last 6 weeks. Thanks, --=20 Basil From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 26 13:11:43 2019 Received: (at 35331-done) by debbugs.gnu.org; 26 Jun 2019 17:11:43 +0000 Received: from localhost ([127.0.0.1]:36977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgBSQ-0003H9-NN for submit@debbugs.gnu.org; Wed, 26 Jun 2019 13:11:42 -0400 Received: from mail177c50.megamailservers.eu ([91.136.10.187]:50630 helo=mail51c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgBSN-0003Gy-Vv for 35331-done@debbugs.gnu.org; Wed, 26 Jun 2019 13:11:41 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1561569097; bh=dbd8D1jZ8Ft89kr3ytY51NS1tm2TSbHz2prZFTpp//s=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=hSuBrVctOXlpiXz6J1Y0bHs5EArBKvIWSVLpDjX4r4uk4XdhjNj5meVjAyK6jEo1J a8qGAH+Hf/NPoW9g9+FgPouw1n2wSdCIBebBdF4wbNg1pGAlM0IdItU7eVbzG3pi4w Lj8iC9RCpHnj7c+2mpqwzjYbquzhBmXGx2mW1QQM= Feedback-ID: mattiase@acm.or Received: from [192.168.1.65] (c-e636e253.032-75-73746f71.bbcust.telenor.se [83.226.54.230]) (authenticated bits=0) by mail51c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id x5QHBZui019328; Wed, 26 Jun 2019 17:11:37 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: bug#35331: [PATCH] Neater html table of old versions in ELPA From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= In-Reply-To: <87lfxoa80e.fsf@tcd.ie> Date: Wed, 26 Jun 2019 19:11:35 +0200 Content-Transfer-Encoding: 7bit Message-Id: <1BB50F25-8E36-4D45-A85C-98EF9950D89D@acm.org> References: <17FAA112-7D1A-49F1-8156-95FED817E370@acm.org> <87lg03pcgs.fsf@tcd.ie> <491EC399-F6F1-4512-8926-69BA056B73A1@acm.org> <299F3CF6-3DA6-4B95-BFEB-B462875FBFBA@acm.org> <87lfzae8jg.fsf@tcd.ie> <023D6B0D-0EE2-43DB-9214-ED5F339169D2@acm.org> <87lfxoa80e.fsf@tcd.ie> To: "Basil L. Contovounesios" X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A0B020C.5D13A749.0046, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=HPft6Llv c=1 sm=1 tr=0 a=M+GU/qJco4WXjv8D6jB2IA==:117 a=M+GU/qJco4WXjv8D6jB2IA==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=YrWX7BzUU6My2460CuQA:9 a=CjuIK1q_8ugA:10 X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 35331-done Cc: 35331-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) 26 juni 2019 kl. 13.41 skrev Basil L. Contovounesios : > > I'd feel free to push the patch for archive-contents.el, given the lack > of objections in the last 6 weeks. Thank you, pushed. From unknown Sat Jun 14 00:41:07 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 25 Jul 2019 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator
%s%s%s