From 10dc5824b4a29edf0cda2f425b03114705425652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Engdeg=C3=A5rd?= Date: Mon, 22 Dec 2025 12:22:16 +0100 Subject: [PATCH] ; * test/lisp/emacs-lisp/vtable-tests.el: avoid arity warning --- test/lisp/emacs-lisp/vtable-tests.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/lisp/emacs-lisp/vtable-tests.el b/test/lisp/emacs-lisp/vtable-tests.el index f865206dc19..76c11c923ab 100644 --- a/test/lisp/emacs-lisp/vtable-tests.el +++ b/test/lisp/emacs-lisp/vtable-tests.el @@ -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)))