[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#52102: 29.0.50; Build failure in doc/lispref/display.texi
From: |
Robert Pluim |
Subject: |
bug#52102: 29.0.50; Build failure in doc/lispref/display.texi |
Date: |
Thu, 25 Nov 2021 13:58:01 +0100 |
>>>>> On Thu, 25 Nov 2021 09:25:28 -0300 (CLST), Horst von Brand
>>>>> <vonbrand@inf.utfsm.cl> said:
Horst> Build "make distclean; ./autogen.sh; make install" fails:
Horst> /home/vonbrand/tmp/emacs/doc/lispref/display.texi:2055: @group
invalid in conte
Horst> xt where filling is enabled.
Horst> @group ...lid in context where filling is enabled}
Horst> @fi
@startsavinginserts @s...
Horst> l.2055 @group
Horst> ?
Horst> /home/vonbrand/tmp/emacs/doc/lispref/display.texi:2055: Emergency
stop.
Horst> @group ...lid in context where filling is enabled}
Horst> @fi
@startsavinginserts @s...
Horst> l.2055 @group
Horst> Output written on elisp.dvi (1096 pages, 4170096 bytes).
Horst> Transcript written on elisp.log.
Horst> /usr/bin/texi2dvi: etex exited with bad status, quitting.
Horst> make[1]: *** [Makefile:150: elisp.dvi] Error 1
Horst> make[1]: Leaving directory '/home/vonbrand/tmp/emacs/doc/lispref'
Horst> make: *** [Makefile:1084: install-lispref-dvi] Error 2
Does this fix it? Eli, emacs-28 has the same issue.
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index 6742f0ea2d..0bdbc06013 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -2052,14 +2052,14 @@ Size of Displayed Text
property (@pxref{Display Property}) showing the ellipsis, instead of
actually truncating the string.
-@group
@example
+@group
(truncate-string-to-width "\tab\t" 12 4)
@result{} "ab"
(truncate-string-to-width "\tab\t" 12 4 ?\s)
@result{} " ab "
-@end example
@end group
+@end example
This function uses @code{string-width} and @code{char-width} to find
the suitable truncation point when @var{string} is too wide, so it
Robert
--