From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eric Marsden Newsgroups: gmane.emacs.bugs Subject: bug#69454: Not possible to insert an empty vtable Date: Wed, 28 Feb 2024 15:29:11 +0100 Message-ID: <5aee0900-7459-4aef-b3c1-cdf83e48b874@risk-engineering.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14641"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: 69454@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 28 15:53:53 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 1rfLJg-0003ZF-GF for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Feb 2024 15:53:53 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rfLJU-0005PA-BS; Wed, 28 Feb 2024 09:53:40 -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 1rfLJQ-0005JI-WC for bug-gnu-emacs@gnu.org; Wed, 28 Feb 2024 09:53:37 -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 1rfLJQ-0007dB-Ec for bug-gnu-emacs@gnu.org; Wed, 28 Feb 2024 09:53:36 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rfLJq-0005E3-VN for bug-gnu-emacs@gnu.org; Wed, 28 Feb 2024 09:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eric Marsden Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Feb 2024 14:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69454 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.170913203520050 (code B ref -1); Wed, 28 Feb 2024 14:54:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Feb 2024 14:53:55 +0000 Original-Received: from localhost ([127.0.0.1]:45418 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfLJj-0005DF-2W for submit@debbugs.gnu.org; Wed, 28 Feb 2024 09:53:55 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:51948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfLJg-0005Cr-Rs for submit@debbugs.gnu.org; Wed, 28 Feb 2024 09:53:53 -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 1rfLAb-0001gE-9l for bug-gnu-emacs@gnu.org; Wed, 28 Feb 2024 09:44:29 -0500 Original-Received: from mail.risk-engineering.org ([2a01:4f8:c0c:a3f8::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rfLAZ-0004pl-ED for bug-gnu-emacs@gnu.org; Wed, 28 Feb 2024 09:44:29 -0500 DKIM-Signature: a=rsa-sha256; bh=jd0GLd/Yp+GN+SglCTEctZ3gNjwnnCMjPhZ9+i5tMRw=; c=relaxed/relaxed; d=risk-engineering.org; h=Subject:Subject:Sender:To:To:Cc:From:From:Date:Date:MIME-Version:MIME-Version:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Reply-To:In-Reply-To:Message-Id:Message-Id:References:Autocrypt:Openpgp; i=@risk-engineering.org; s=default; t=1709130552; v=1; x=1709562552; b=MKTHRryzB8eOXVIJthEKz0/aFT0+2HVRGpv0dIrm6sEQACL7sEzbECDAj2gSubm3jw5xOsR9 WqD0sSnIt/zEFpMHGy7YcCZzFZ0A6AdCqWXPdtnk7ZMu0lAyJPyeh9TfGq0owApmBx241gemwc1 4ZZWiMhkSuRzcBciYLzprknpcVCTFlZwoJmHz00C3A1lbwfVhZ046N6PYOKuIzRNtJ+0YMsvaU0 UW0/M3ZcMPzlLWkOwnHlrEGhj+NPyht5vS4U7LCxGmwF6zQRdDld/yP7QB7rSRajJ/ejXS1eoiH 6kHMazlMwy6hozQCk9HeBQQl710ytr5bmdqFWmPh8CVAg== Original-Received: by mail.risk-engineering.org (envelope-sender ) with ESMTPS id 435dd840; Wed, 28 Feb 2024 15:29:12 +0100 Content-Language: en-US Received-SPF: pass client-ip=2a01:4f8:c0c:a3f8::1; envelope-from=eric.marsden@risk-engineering.org; helo=mail.risk-engineering.org X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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:280761 Archived-At: Hello, The following generates an error. It seems to me that it would be preferable to insert the header line and show zero rows for the vtable.    (require 'vtable)    (make-vtable :columns '("tweedle" "dum") :objects (list)) Debugger entered--Lisp error: (wrong-number-of-arguments # 0)   max()   apply(max nil)   seq-max(nil)   #f(compiled-function (column index) #)(#s(vtable-column :name "tweedle" :width nil :min-width nil :max-width nil :primary nil :align right :getter nil :formatter nil :displayer nil :-numerical t) 0)   #f(compiled-function (elt) #)(#s(vtable-column :name "tweedle" :width nil :min-width nil :max-width nil :primary nil :align right :getter nil :formatter nil :displayer nil :-numerical t))   mapcar(#f(compiled-function (elt) #) (#s(vtable-column :name "tweedle" :width nil :min-width nil :max-width nil :primary nil :align right :getter nil :formatter nil :displayer nil :-numerical t) #s(vtable-column :name "dum" :width nil :min-width nil :max-width nil :primary nil :align right :getter nil :formatter nil :displayer nil :-numerical t)))   #f(compiled-function #'sequence #)(#f(compiled-function (elt) #) (#s(vtable-column :name "tweedle" :width nil :min-width nil :max-width nil :primary nil :align right :getter nil :formatter nil :displayer nil :-numerical t) #s(vtable-column :name "dum" :width nil :min-width nil :max-width nil :primary nil :align right :getter nil :formatter nil :displayer nil :-numerical t)))   apply(#f(compiled-function #'sequence #) #f(compiled-function (elt) #) (#s(vtable-column :name "tweedle" :width nil :min-width nil :max-width nil :primary nil :align right :getter nil :formatter nil :displayer nil :-numerical t) #s(vtable-column :name "dum" :width nil :min-width nil :max-width nil :primary nil :align right :getter nil :formatter nil :displayer nil :-numerical t)) nil)   seq-map(#f(compiled-function (elt) #) (#s(vtable-column :name "tweedle" :width nil :min-width nil :max-width nil :primary nil :align right :getter nil :formatter nil :displayer nil :-numerical t) #s(vtable-column :name "dum" :width nil :min-width nil :max-width nil :primary nil :align right :getter nil :formatter nil :displayer nil :-numerical t)))   seq-map-indexed(#f(compiled-function (column index) #) (#s(vtable-column :name "tweedle" :width nil :min-width nil :max-width nil :primary nil :align right :getter nil :formatter nil :displayer nil :-numerical t) #s(vtable-column :name "dum" :width nil :min-width nil :max-width nil :primary nil :align right :getter nil :formatter nil :displayer nil :-numerical t)))   vtable--compute-widths(# nil)   vtable--recompute-cache(#)   vtable--ensure-cache(#)   vtable-insert(#)   make-vtable(:columns ("tweedle" "dum") :objects nil)   (progn (make-vtable :columns '("tweedle" "dum") :objects (list)))   elisp--eval-last-sexp(t)   eval-last-sexp(t)   eval-print-last-sexp(nil) GNU Emacs 29.2 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) of 2024-02-27, modified by Debian