1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-27 09:11:48 -07:00
emacs/doc/misc
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
..
auth.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
autotype.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
bovine.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
calc.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
cc-mode.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
ChangeLog.1 ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cl.texi Rename 'any' to 'member-if' and deprecate 'cl-member-if' 2026-03-04 14:43:05 +00:00
dbus.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
dired-x.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
doclicense.texi
ebrowse.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
ede.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
ediff.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
edt.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
efaq-w32.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
efaq.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
eglot.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
eieio.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
emacs-gnutls.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
emacs-mime.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
epa.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
erc.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
ert.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
eshell.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
eudc.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
eww.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
flymake.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
forms.texi ; * doc/misc/forms.texi (Credits): Added Johan Vromans (bug#80517). 2026-03-01 16:30:42 +02:00
gnus-faq.texi ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
gnus.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
gpl.texi
htmlfontify.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
idlwave.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
ido.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
info.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
mairix-el.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
Makefile.in ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
message.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
mh-e.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
modus-themes.org ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
newsticker.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
nxml-mode.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
octave-mode.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
org-setup.org ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
org.org ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
pcl-cvs.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
pgg.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
rcirc.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
reftex.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
remember.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
sasl.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
sc.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
sem-user.texi ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
semantic.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
ses.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
sieve.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
smtpmail.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
speedbar.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
srecode.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
texinfo.tex Update from Gnulib by running admin/merge-gnulib 2026-01-19 12:49:16 -08:00
todo-mode.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
tramp.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
trampver.texi External Tramp methods can be used in multi-hops 2026-01-06 15:20:58 +01:00
transient.texi Update to Transient v0.12.0-15-gfe5214e6 2026-01-04 17:52:30 +01:00
url.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
use-package.texi Give an example of how to use use-package+:vc without :rev 2026-03-13 23:50:05 +01:00
vhdl-mode.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
viper.texi ; Fix indexing in viper.texi. 2026-03-05 15:17:50 +02:00
vtable.texi vtable truncate-string-pixelwise, ellipsis can be a string (bug#80026) 2026-03-21 12:50:04 +02:00
widget.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
wisent.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00
woman.texi ; Make the document language in Info manuals explicitly stated 2026-02-21 15:29:13 +02:00