GNU bug report logs - #58370
29.0.50; Error in vtable-insert-object when truncating column

Previous Next

Package: emacs;

Reported by: Tad Fisher <tadfisher <at> gmail.com>

Date: Fri, 7 Oct 2022 22:24:01 UTC

Severity: normal

Found in version 29.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 58370 in the body.
You can then email your comments to 58370 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#58370; Package emacs. (Fri, 07 Oct 2022 22:24:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tad Fisher <tadfisher <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 07 Oct 2022 22:24:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tad Fisher <tadfisher <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.50; Error in vtable-insert-object when truncating column
Date: Fri, 7 Oct 2022 15:23:46 -0700
The following program causes an error due to missing "ellipsis" and
"ellipsis-width" arguments to `vterm--insert-line`:

(require 'vtable)
(let ((table (make-vtable
	      :columns '((:name "A" :width 10)
			 (:name "B" :width 10))
	      :objects '(("first" "first, truncated correctly")))))
  (vtable-insert-object table '("second", "second, causes error")))

Backtrace:

Lisp error: (wrong-type-argument number-or-marker-p nil)
  #f(compiled-function (elem index) #<bytecode
0xaec334ab96760f6>)((,"second, causes error" 152 #("(, second, causes
error)" 0 24 (face vtable))) 1)
  #f(compiled-function (elt) #<bytecode -0x698358f3132e50>)((,"second,
causes error" 152 #("(, second, causes error)" 0 24 (face vtable))))
  mapc(#f(compiled-function (elt) #<bytecode -0x698358f3132e50>)
(("second" 46 #("second" 0 6 (face vtable))) (,"second, causes error"
152 #("(, second, causes error)" 0 24 (face vtable)))))
  seq-do(#f(compiled-function (elt) #<bytecode -0x698358f3132e50>)
(("second" 46 #("second" 0 6 (face vtable))) (,"second, causes error"
152 #("(, second, causes error)" 0 24 (face vtable)))))
  seq-do-indexed(#f(compiled-function (elem index) #<bytecode
0xaec334ab96760f6>) (("second" 46 #("second" 0 6 (face vtable)))
(,"second, causes error" 152 #("(, second, causes error)" 0 24 (face
vtable)))))
  vtable--insert-line(#<vtable vtable-5d04f6> (("second" ,"second,
causes error") ("second" 46 #("second" 0 6 (face vtable))) (,"second,
causes error" 152 #("(, second, causes error)" 0 24 (face vtable)))) 0
[80 80] 8)
  vtable-insert-object(#<vtable vtable-5d04f6> ("second" ,"second,
causes error"))
  (let ((table (make-vtable :columns '((:name "A" :width 10) (:name
"B" :width 10)) :objects '(("first" "first, truncated correctly")))))
(vtable-insert-object table '("second" ,"second, causes error")))
  (progn (let ((table (make-vtable :columns '((:name "A" :width 10)
(:name "B" :width 10)) :objects '(("first" "first, truncated
correctly"))))) (vtable-insert-object table '("second" ,"second,
causes error"))))
  elisp--eval-last-sexp(t)
  eval-last-sexp(t)
  eval-print-last-sexp(nil)
  funcall-interactively(eval-print-last-sexp nil)
  command-execute(eval-print-last-sexp)

In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.34, cairo version 1.16.0)
Repository revision: f3769bc32a3d32377a83b33d416205f80814e422
Repository branch: master
System Description: NixOS 22.11 (Raccoon)

Configured using:
 'configure
 --prefix=/nix/store/h7vymh8xmwp22gdapx1gdcyigrvsizkv-emacs-pgtk-native-comp-20221007.0
 --disable-build-details --with-modules --with-x-toolkit=gtk3
 --with-cairo --with-native-compilation --with-pgtk'

Configured features:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON
LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY
PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS XIM GTK3 ZLIB

Important settings:
  value of $EMACSLOADPATH:
  value of $EMACSNATIVELOADPATH:
/nix/store/xlkgnswx40nwhvkkw53lwp4kbx7s9nq5-emacs-packages-deps/share/emacs/native-lisp::
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58370; Package emacs. (Sat, 08 Oct 2022 13:27:01 GMT) Full text and rfc822 format available.

Message #8 received at 58370 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Tad Fisher <tadfisher <at> gmail.com>
Cc: 58370 <at> debbugs.gnu.org
Subject: Re: bug#58370: 29.0.50; Error in vtable-insert-object when
 truncating column
Date: Sat, 08 Oct 2022 15:26:12 +0200
Tad Fisher <tadfisher <at> gmail.com> writes:

> The following program causes an error due to missing "ellipsis" and
> "ellipsis-width" arguments to `vterm--insert-line`:
>
> (require 'vtable)
> (let ((table (make-vtable
> 	      :columns '((:name "A" :width 10)
> 			 (:name "B" :width 10))
> 	      :objects '(("first" "first, truncated correctly")))))
>   (vtable-insert-object table '("second", "second, causes error")))
>
> Backtrace:
>
> Lisp error: (wrong-type-argument number-or-marker-p nil)
>   #f(compiled-function (elem index) #<bytecode

Yup.  I've now fixed this in Emacs 29.




bug marked as fixed in version 29.1, send any further explanations to 58370 <at> debbugs.gnu.org and Tad Fisher <tadfisher <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 08 Oct 2022 13:27:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 06 Nov 2022 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 221 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.