]> git.eshelyaron.com Git - emacs.git/commitdiff
Document truncate-string-ellipsis
authorEli Zaretskii <eliz@gnu.org>
Sun, 29 Nov 2015 17:40:08 +0000 (19:40 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 29 Nov 2015 17:40:08 +0000 (19:40 +0200)
* doc/lispref/display.texi (Size of Displayed Text): Document
'truncate-string-ellipsis'.

* lisp/international/mule-util.el (truncate-string-ellipsis): Doc fix.
(truncate-string-to-width): Mention in the doc string that the
default for ELLIPSIS comes from 'truncate-string-ellipsis'.

* etc/NEWS: Move the 'truncate-string-ellipsis' entry to the "Lisp
Changes" section.

doc/lispref/display.texi
etc/NEWS
lisp/international/mule-util.el

index ad248b116edeb8c32abe8b71c3eba124cb4c6da4..3d520dbdd69f8676893a328a4ebc284419157e63 100644 (file)
@@ -1889,12 +1889,13 @@ end of the result if it falls short of @var{width}.  It is also used at
 the beginning of the result if one multi-column character in
 @var{string} extends across the column @var{start-column}.
 
+@vindex truncate-string-ellipsis
 If @var{ellipsis} is non-@code{nil}, it should be a string which will
 replace the end of @var{string} (including any padding) if it extends
 beyond @var{width}, unless the display width of @var{string} is equal
 to or less than the display width of @var{ellipsis}.  If
 @var{ellipsis} is non-@code{nil} and not a string, it stands for
-@code{"..."}.
+the value of the variable @code{truncate-string-ellipsis}.
 
 @example
 (truncate-string-to-width "\tab\t" 12 4)
index 1265cb6a2e2194ba6c183533134237ac96ba9b43..dc3758f8eb20f90650acf9c0d4293ca303297115 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -166,8 +166,6 @@ have the equivalent of a primary selection.
 ** `insert-register' now leaves point after the inserted text
 when called interactively.  A prefix argument toggles this behavior.
 
-** New var `truncate-string-ellipsis' to choose how to indicate truncation.
-
 +++
 ** The new variable `term-file-aliases' replaces some files from lisp/term.
 The function `tty-run-terminal-initialization' consults this variable
@@ -1302,6 +1300,9 @@ if the terminal cannot display curved quotes.
 ** Standard output and error streams now transliterate characters via
 standard-display-table, and encode output using locale-coding-system.
 
++++
+** New var `truncate-string-ellipsis' to choose how to indicate truncation.
+
 ** Miscellaneous name change
 
 For consistency with the usual Emacs spelling, the Lisp variable
index b575c2b7db396f6cfe27c316d837540b1d91f222..c70a3eee0fbc307c780ba3b2cd871ea09dfb2d16 100644 (file)
@@ -55,7 +55,8 @@
   string)
 
 (defvar truncate-string-ellipsis "..."  ;"…"
-  "String to use to indicate truncation.")
+  "String to use to indicate truncation.
+Serves as default value of ELLIPSIS argument to `truncate-string-to-width'.")
 
 ;;;###autoload
 (defun truncate-string-to-width (str end-column