From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#69454: Not possible to insert an empty vtable Date: Wed, 01 May 2024 14:54:31 +0300 Message-ID: <86cyq5px1k.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13041"; mail-complaints-to="usenet@ciao.gmane.io" Cc: joostkremers@fastmail.fm, larsi@gnus.org, 69454@debbugs.gnu.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 Wed May 01 13:56:01 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 1s28Z6-00035O-VL for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 May 2024 13:56:01 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s28Yv-0001SY-Fq; Wed, 01 May 2024 07:55: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 1s28Yn-0001R0-AN for bug-gnu-emacs@gnu.org; Wed, 01 May 2024 07:55:41 -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 1s28Yn-0002A9-1r for bug-gnu-emacs@gnu.org; Wed, 01 May 2024 07:55:41 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s28Z7-00038q-RI for bug-gnu-emacs@gnu.org; Wed, 01 May 2024 07:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 May 2024 11:56:01 +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.171456450612019 (code B ref 69454); Wed, 01 May 2024 11:56:01 +0000 Original-Received: (at 69454) by debbugs.gnu.org; 1 May 2024 11:55:06 +0000 Original-Received: from localhost ([127.0.0.1]:37067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s28YE-00037n-0C for submit@debbugs.gnu.org; Wed, 01 May 2024 07:55:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s28YA-00037N-FB for 69454@debbugs.gnu.org; Wed, 01 May 2024 07:55:04 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s28Xi-0001pi-OU; Wed, 01 May 2024 07:54:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=YyFdIVvCZ25WFC1fCSCvp6amwA/2haDHJnoHQ7b7lDE=; b=XpPlLga12/yu JMJbeczZCfm3JWbFQMXErc4ir4UxLSlnuLLjbEXm3NnpeF2G/fwyeGtcvoYT+YrkPN5mplu+UZtkF 2STU1pL/UJikRbRDMIR/ORut/eMh8FQbUJZD7mDePbS2HB4J25Wi1ir4xx8hgo0bW6zQ3VPHI1ayQ fIBuCfFNr14/niTt/5MDLy2qpSX6vt3PDATKBqEOHhMf/cxUZY/f6WdI3AidXjDT9VIb/qXElLz6x WWidXAh0/wf/xexQMLX18rjpc4+nLh5jcq3OZ+xAmK8rsjAJ0yZ8HpNWZcHb8woo6QqP7mdrHbMzV FWLUC6OjWW/c4gtrMNkYqw==; In-Reply-To: <8f5fb814-5d88-4ad3-b12a-8246325d5d21@alphapapa.net> (message from Adam Porter on 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:284245 Archived-At: > Date: Tue, 30 Apr 2024 18:20:36 -0500 > Cc: eric.marsden@risk-engineering.org, larsi@gnus.org, 69454@debbugs.gnu.org > From: Adam Porter > > >> In order to support empty vtables, the column width issue would have to be > >> resolved, of course. My suggestion (again coming from my use-case) would be that > >> if some columns have no :width slot, the remaining available width (i.e., the > >> window width minus the explicit column widths) is divided evenly between them. > > > > Sounds reasonable, but I don't use vtables. Adam, WDYT? > > Well, I'm not sure how useful it would be to calculate the widths of > columns 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 soon as objects are shown in it. It would seem to > merely serve as confirmation of which columns are defined in the vtable. > > 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]" string. That's also reasonable. > 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. Agreed. Patches welcome.