From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.bugs Subject: bug#69454: Not possible to insert an empty vtable Date: Sun, 05 May 2024 14:15:06 +0200 Message-ID: <86ikzstpyt.fsf@fastmail.fm> References: <5aee0900-7459-4aef-b3c1-cdf83e48b874@risk-engineering.org> <86plw3yecs.fsf@gnu.org> <86jzkfcj1z.fsf@p200300d6272f17850b27304eb886326a.dip0.t-ipconnect.de> 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="24244"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.12.2; emacs 29.3 Cc: Adam Porter , Lars Ingebrigtsen , 69454@debbugs.gnu.org, Eric Marsden To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 05 14:16:12 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 1s3amn-000665-CQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 May 2024 14:16:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s3amR-0003LI-Bc; Sun, 05 May 2024 08:15:47 -0400 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 1s3amI-0003KL-Tk for bug-gnu-emacs@gnu.org; Sun, 05 May 2024 08:15:39 -0400 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 1s3amI-0003aN-HG for bug-gnu-emacs@gnu.org; Sun, 05 May 2024 08:15:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s3amg-0004Qt-25 for bug-gnu-emacs@gnu.org; Sun, 05 May 2024 08:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Joost Kremers Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 May 2024 12:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69454 X-GNU-PR-Package: emacs Original-Received: via spool by 69454-submit@debbugs.gnu.org id=B69454.171491134517031 (code B ref 69454); Sun, 05 May 2024 12:16:02 +0000 Original-Received: (at 69454) by debbugs.gnu.org; 5 May 2024 12:15:45 +0000 Original-Received: from localhost ([127.0.0.1]:59409 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s3amO-0004Qd-Ui for submit@debbugs.gnu.org; Sun, 05 May 2024 08:15:45 -0400 Original-Received: from wfout6-smtp.messagingengine.com ([64.147.123.149]:51785) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s3amL-0004QX-BU for 69454@debbugs.gnu.org; Sun, 05 May 2024 08:15:42 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfout.west.internal (Postfix) with ESMTP id A6E021C000E7; Sun, 5 May 2024 08:15:11 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sun, 05 May 2024 08:15:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; 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=fm3; t=1714911311; x=1714997711; bh=BSFlBPe48dUPGhDWwr59/P2oMwDG4FC8e2NaSrfr868=; b= Zx5JL8zzM+UhvQ0cyV4Sg+y5H+6LFm6IthmxzqQEwSIls5yb22alRbTHXfivN6O3 j8pFQdDxqYAywH97UNX3oBzDG4mksfPhC+uxORY4W95rY3dooL4VMnwcCmVJf738 prDqTqkm3WJh1dEHW/JuB+/CGul6z8aGiButUG3ulaBSvM52bABkMe9of4SrdhdU cd0us+aCaqfSaLx3XJ8j+7C1uOsUcKRqz/7KxJNLrVU4oNjEs4DPiOpjlXIj8ujx jexwaVpyjzmKJy8hzv8TTqjS253dCpI7+Z8/yiE5/7upU6i3H2HZy7TzkEknuCuJ KjfvM6vwc7YiNHgRJwAk3g== 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-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1714911311; x= 1714997711; bh=BSFlBPe48dUPGhDWwr59/P2oMwDG4FC8e2NaSrfr868=; b=B pYyzHiWIKgWOxN2O2Ytdgqa/TXI88WlvmiuCJuBG6pHVreKCLqRiDjErYwa0HNQd WNrTWvr2xoh6OEKkJSSQWMakGYqusV5yJt0ZlO59YWSZCWE7XEVSoN/elvdqFSRp DDaXhG2bH5sJmU9PDjtNAI6/WOVJsBTO974qkMIkDsODAkCOqCCWCZAubUbpJ7ez j8JBtKtAhoWV/CRmTsSlQUIrX+JRD2keOTE3ryr9JcVmmf0LyPtNzV6up/wMdEIo SLz4FsOGkNYzYugoSOj4pX8Ly1yP6D9rFcQKaGZJoSuvF1mbyofMJegk/mtdkYLT lgW9oyGin5DIOXf5rlnAg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvddvgedgheduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefujghffgffkfggtgfgsehtqhertddtreejnecuhfhrohhmpeflohho shhtucfmrhgvmhgvrhhsuceojhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfh hmqeenucggtffrrghtthgvrhhnpeelgeeiheduueelgeevudefgedtffejudetvedutdfh keejteegheevkeeutdfgvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Feedback-ID: ie15541ac:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 5 May 2024 08:15:09 -0400 (EDT) In-Reply-To: <86jzkfcj1z.fsf@p200300d6272f17850b27304eb886326a.dip0.t-ipconnect.de> (Joost Kremers's message of "Tue, 30 Apr 2024 11:10:32 +0200") 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:284494 Archived-At: On Tue, Apr 30 2024, Joost Kremers wrote: > On Sat, Mar 09 2024, Eli Zaretskii wrote: >>> Date: Wed, 28 Feb 2024 15:29:11 +0100 >>> From: Eric Marsden >>>=20 >>> Hello, >>>=20 >>> The following generates an error. It seems to me that it would be=20 >>> preferable to insert the header line and show zero rows for the vtable. >>>=20 >>> =C2=A0=C2=A0 (require 'vtable) >>> =C2=A0=C2=A0 (make-vtable :columns '("tweedle" "dum") :objects (list)) >>>=20 >>> Debugger entered--Lisp error: (wrong-number-of-arguments # 0) >>> =C2=A0 max() >>> =C2=A0 apply(max nil) >>> =C2=A0 seq-max(nil) >> > I ran into this same problem myself, trying to use vtable for my package > Ebib[1]. I did some digging and found that the cause of the problem is no= t that > the vtable is empty, but rather that the column widths cannot be determin= ed. As I just realised, the problem is actually bigger than that: given the cur= rent implementation of vtable-insert-object, it's not possible to add objects to= an empty vtable. (Specifically, it uses nconc twice, once on the list of objec= ts and once the cache, both of which fail silently if those are nil, and it us= es setcar on the cache, which yields an error if the cache is nil.) Just wanted to mention that here for completeness' sake, if anyone ever dec= ides to fix these issues. For now, the easiest thing to do is probably do disall= ow empty vtables altogether. --=20 Joost Kremers Life has its moments