1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-21 13:31:37 -07:00
emacs/test/lisp/emacs-lisp
Stéphane Marks 48d65afa32 vtable truncate-string-pixelwise, ellipsis can be a string (bug#80026)
Eliminate 'vtable--limit-string' in favor of the more efficient
'truncate-string-pixelwise'.  Remove extraneous pre-measurement
calls to 'string-pixel-width' and ellipsis concatenation as
'truncate-string-pixelwise' does both.
The 'make-vtable' 'ellipsis' keyword can be a string to override
the default returned by 'truncate-string-ellipsis'.

* lisp/emacs-lisp/vtable.el (vtable--ellipsis): New defun.
(vtable-insert-object, vtable--insert): Use 'vtable--ellipsis'.
(vtable--insert-line, vtable--insert-header-line): Call
'truncate-string-pixelwise' instead of 'vtable--limit-string'.
(vtable--limit-string): Remove function.

* test/lisp/emacs-lisp/vtable-tests.el
(test-vtable--limit-string-with-face-remapped-buffer): Remove
test, obsoleted by misc-test-truncate-string-pixelwise.

* doc/misc/vtable.texi: Document that :ellipsis can be a string.
2026-03-21 12:50:04 +02:00
..
bytecomp-resources Merge from origin/emacs-30 2025-10-11 06:02:56 -04:00
edebug-resources ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
eieio-tests ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ert-font-lock-resources
ert-resources Add baseline pass/fail tests for `ert-test-erts-file' 2025-05-24 13:08:21 +03:00
faceup-resources ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
faceup-tests ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
macroexp-resources ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
package-resources ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
package-vc-resources ; Use "example.com" in package-vc-tests 2026-03-11 21:33:08 +01:00
pp-resources
shadow-resources
testcover-resources Compare circular lists in 'equal' without error (bug#80456) 2026-02-24 12:47:52 +01:00
backquote-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
backtrace-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
benchmark-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
bindat-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
byte-run-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
bytecomp-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cconv-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
check-declare-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
checkdoc-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cl-extra-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cl-generic-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cl-lib-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cl-macs-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cl-preloaded-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cl-print-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cl-seq-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
comp-cstr-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
comp-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cond-star-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
copyright-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
derived-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
easy-mmode-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
edebug-tests.el test subdirectory: Use new error-API 2026-03-10 10:48:22 -04:00
ert-font-lock-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ert-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ert-x-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
find-func-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
float-sup-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
generator-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
gv-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
hierarchy-tests.el Prefer incf to cl-incf in tests 2025-02-23 00:38:22 +01:00
icons-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
let-alist-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
lisp-mnt-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
lisp-mode-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
lisp-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
macroexp-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
map-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
map-ynp-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
memory-report-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
multisession-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
nadvice-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
oclosure-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
package-tests.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
package-vc-tests.el ; Load missing features to run package-vc tests 2026-03-12 08:59:25 +01:00
pcase-tests.el Neater pcase predicate transform 2026-01-26 12:22:44 +01:00
pp-tests.el test subdirectory: Use new error-API 2026-03-10 10:48:22 -04:00
range-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
regexp-opt-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ring-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
rmc-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
rx-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
seq-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
shadow-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
shortdoc-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
subr-x-tests.el Make string-trim faster 2026-01-02 19:09:54 +01:00
syntax-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
tabulated-list-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
testcover-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
text-property-search-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
thunk-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
timer-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
track-changes-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
unsafep-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
vtable-tests.el vtable truncate-string-pixelwise, ellipsis can be a string (bug#80026) 2026-03-21 12:50:04 +02:00
warnings-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00