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: Thu, 02 May 2024 09:31:01 +0200 Message-ID: <86frv0u0ui.fsf@p200300d6272c85ce335985c3abedb491.dip0.t-ipconnect.de> References: <5aee0900-7459-4aef-b3c1-cdf83e48b874@risk-engineering.org> <86plw3yecs.fsf@gnu.org> <86jzkfcj1z.fsf@p200300d6272f17850b27304eb886326a.dip0.t-ipconnect.de> <865xvzqc7g.fsf@gnu.org> <8f5fb814-5d88-4ad3-b12a-8246325d5d21@alphapapa.net> 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="38653"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.12.2; emacs 29.3 Cc: 69454@debbugs.gnu.org, Eli Zaretskii , larsi@gnus.org, eric.marsden@risk-engineering.org To: Adam Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 02 09:32:03 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 1s2QvC-0009ot-BW for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 May 2024 09:32:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2Quz-0004dP-JJ; Thu, 02 May 2024 03:31:49 -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 1s2Quu-0004UJ-R4 for bug-gnu-emacs@gnu.org; Thu, 02 May 2024 03:31:44 -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 1s2Qur-0006fv-6a for bug-gnu-emacs@gnu.org; Thu, 02 May 2024 03:31:41 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s2QvC-00023h-8r for bug-gnu-emacs@gnu.org; Thu, 02 May 2024 03:32: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: Thu, 02 May 2024 07:32: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.17146351007905 (code B ref 69454); Thu, 02 May 2024 07:32:02 +0000 Original-Received: (at 69454) by debbugs.gnu.org; 2 May 2024 07:31:40 +0000 Original-Received: from localhost ([127.0.0.1]:42100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s2Qul-00023R-15 for submit@debbugs.gnu.org; Thu, 02 May 2024 03:31:40 -0400 Original-Received: from fout4-smtp.messagingengine.com ([103.168.172.147]:48921) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s2Qui-00023L-5P for 69454@debbugs.gnu.org; Thu, 02 May 2024 03:31:33 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.nyi.internal (Postfix) with ESMTP id 5395613803AD; Thu, 2 May 2024 03:31:05 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 02 May 2024 03:31:05 -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=1714635065; x=1714721465; bh=RBq9U5Aa2/KbNkUfcQ49b6envzq4sCr9HVqQ0J445XY=; b= JsIiJrD2Dvy1Q33+0KecFInGtSH1//q7NKpG6o+clDDDaiNaBTL35Cad2y8L9J3N o9LzUr4GWxK0BwbReTcMvTILUFN4C9Uqv5JDnBhoUy/j6SvIGI4PZumIzqEUChMq gztjBS+mxVgcY6pud6gmlqx7ALCwiXIw/oBGRHmIS7VGgkA/GsoUYr5NARD58ldq eoqeqk2drufBMGsgYlQTjzDUUNk92f7tefjWwMcAqdkSxZzgVpdxDcqm2thS09QW ysLdFpJmOhUkQodsEcFNw97lwEGpD+i+nJtlRgoTc3m/Ec/dj/Xb4EYs1d0k+Myd I1hmYwUx4G66MJboKDX/Ag== 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=1714635065; x= 1714721465; bh=RBq9U5Aa2/KbNkUfcQ49b6envzq4sCr9HVqQ0J445XY=; b=H vykSeY5fij+wn6GD+izs2uN/tBC02X0Tk4p0fDtWITHJMQOsE7FQ4q65JpAkDy9K 5HfWUY1XxaW/Z0MsBjApp3J8ALi7IYCi7WqlADX+RuVwHtizOuhpQRCXwfSNl7bq zX2E2nNZE3IOtTtv6qY2W/8whCyPJ3aih1abpLZrpkmj6tiJnru3bpY0OL3YRf0E sE8gV4+hHfJU7Xbl17tlSRFASpZMMk295k3v+FncSUWtfidIC60/JoxHR4qViDpt m1rt8A4pAlfoQD71087whsFCkqI7cPuMza7g9aNHW65pUpsYIDpgQOzKUmUn4JTY lbpBIIl8K0a7HFfxOIElg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvddujedguddulecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufgjfhgffffkgggtgfesthhqredttderjeenucfhrhhomheplfho ohhsthcumfhrvghmvghrshcuoehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgrihhlrd hfmheqnecuggftrfgrthhtvghrnhepleegieehudeuleegvedufeegtdffjeduteevuddt hfekjeetgeehveekuedtgfdvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepjhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfhhm X-ME-Proxy: Feedback-ID: ie15541ac:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 2 May 2024 03:31:03 -0400 (EDT) In-Reply-To: <8f5fb814-5d88-4ad3-b12a-8246325d5d21@alphapapa.net> (Adam Porter's message of "Tue, 30 Apr 2024 18:20:36 -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:284280 Archived-At: Hi Adam, On Tue, Apr 30 2024, Adam Porter wrote: > Well, I'm not sure how useful it would be to calculate the widths of colu= mns and > show them if there are no data objects to render in them; especially, if = the > columns have to be recalculated and the table has to be re-rendered as so= on as > objects are shown in it. Yes, that's what I meant when I said the code using vtable.el would have to= take that into consideration. In my case, I do that by leaving only the last col= umn's width undefined. > It would seem to merely serve as confirmation of which > columns are defined in the vtable. Yup, that is exactly right, but I think there are circumstances in which th= at may be useful. Specifically, cases where the data being displayed is genera= ted by the user. (Think database front-end, even though I realise vtable.el isn= 't suitable for displaying extremely large amounts of data. In my use-case, the amount of data is manageable, though.) > IOW, it seems that, if there are no objects to show, it might be just as = good to > short-circuit the columns and just insert some kind of "[no objects]" str= ing. > > I don't have a strong opinion on this, though. I think I would generally= favor > whichever approach required the smallest change to the code. In that case, go with your suggestion, because mine certainly would require bigger changes. =F0=9F=98=80=20 --=20 Joost Kremers Life has its moments