Mercurial > emacs
comparison lisp/international/mule-util.el @ 26691:1f573e26070a
(truncate-string-to-width): Docsting fixed.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Fri, 03 Dec 1999 10:27:19 +0000 |
parents | 84d705e026b4 |
children | 4cd9407a4683 |
comparison
equal
deleted
inserted
replaced
26690:1006a8324029 | 26691:1f573e26070a |
---|---|
73 string) | 73 string) |
74 | 74 |
75 ;;;###autoload | 75 ;;;###autoload |
76 (defun truncate-string-to-width (str end-column &optional start-column padding) | 76 (defun truncate-string-to-width (str end-column &optional start-column padding) |
77 "Truncate string STR to end at column END-COLUMN. | 77 "Truncate string STR to end at column END-COLUMN. |
78 The optional 2nd arg START-COLUMN, if non-nil, specifies | 78 The optional 3rd arg START-COLUMN, if non-nil, specifies |
79 the starting column; that means to return the characters occupying | 79 the starting column; that means to return the characters occupying |
80 columns START-COLUMN ... END-COLUMN of STR. | 80 columns START-COLUMN ... END-COLUMN of STR. |
81 | 81 |
82 The optional 3rd arg PADDING, if non-nil, specifies a padding character | 82 The optional 4th arg PADDING, if non-nil, specifies a padding character |
83 to add at the end of the result if STR doesn't reach column END-COLUMN, | 83 to add at the end of the result if STR doesn't reach column END-COLUMN, |
84 or if END-COLUMN comes in the middle of a character in STR. | 84 or if END-COLUMN comes in the middle of a character in STR. |
85 PADDING is also added at the beginning of the result | 85 PADDING is also added at the beginning of the result |
86 if column START-COLUMN appears in the middle of a character in STR. | 86 if column START-COLUMN appears in the middle of a character in STR. |
87 | 87 |