; * test/lisp/emacs-lisp/vtable-tests.el: avoid arity warning

This commit is contained in:
Mattias Engdegård 2025-12-22 12:22:16 +01:00
parent 10fdf48635
commit 10dc5824b4

View file

@ -135,7 +135,8 @@
(let ((text (propertize "XXXXX"
'face 'variable-pitch)))
(face-remap-add-relative 'default :height 1.5)
(cond ((< emacs-major-version 31) ; TODO: Remove the pre-31 test, eventually.
;; TODO: Remove the pre-31 test, eventually.
(cond ((eval-when-compile (< emacs-major-version 31))
(let* ((x-width (string-pixel-width (substring text 0 1)))
(char-limit 2)
(pixel-limit (* char-limit x-width)))