Mercurial > emacs
comparison lispref/text.texi @ 8644:ebda9d1e7d48
entered into RCS
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 27 Aug 1994 23:03:05 +0000 |
parents | bc548090f760 |
children | ff5d8881a3eb |
comparison
equal
deleted
inserted
replaced
8643:e98aa03e22c5 | 8644:ebda9d1e7d48 |
---|---|
273 This function is unlike the other insertion functions in that it | 273 This function is unlike the other insertion functions in that it |
274 relocates markers initially pointing at the insertion point, to point | 274 relocates markers initially pointing at the insertion point, to point |
275 after the inserted text. | 275 after the inserted text. |
276 @end defun | 276 @end defun |
277 | 277 |
278 @defun insert-char character count | 278 @defun insert-char character count &optional inherit |
279 This function inserts @var{count} instances of @var{character} into the | 279 This function inserts @var{count} instances of @var{character} into the |
280 current buffer before point. The argument @var{count} must be a number, | 280 current buffer before point. The argument @var{count} must be a number, |
281 and @var{character} must be a character. The value is @code{nil}. | 281 and @var{character} must be a character. The value is @code{nil}. |
282 @c It's unfortunate that count comes second. Not like make-string, etc. | 282 @c It's unfortunate that count comes second. Not like make-string, etc. |
283 | |
284 If @var{inherit} is non-@code{nil}, then the inserted characters inherit | |
285 sticky text properties from the two characters before and after the | |
286 insertion point. @xref{Sticky Properties}. | |
283 @end defun | 287 @end defun |
284 | 288 |
285 @defun insert-buffer-substring from-buffer-or-name &optional start end | 289 @defun insert-buffer-substring from-buffer-or-name &optional start end |
286 This function inserts a portion of buffer @var{from-buffer-or-name} | 290 This function inserts a portion of buffer @var{from-buffer-or-name} |
287 (which must already exist) into the current buffer before point. The | 291 (which must already exist) into the current buffer before point. The |
310 @end example | 314 @end example |
311 @end defun | 315 @end defun |
312 | 316 |
313 @xref{Sticky Properties}, for other insertion functions that inherit | 317 @xref{Sticky Properties}, for other insertion functions that inherit |
314 text properties from the nearby text in addition to inserting it. | 318 text properties from the nearby text in addition to inserting it. |
319 Whitespace inserted by indentation functions also inherits text | |
320 properties. | |
315 | 321 |
316 @node Commands for Insertion | 322 @node Commands for Insertion |
317 @section User-Level Insertion Commands | 323 @section User-Level Insertion Commands |
318 | 324 |
319 This section describes higher-level commands for inserting text, | 325 This section describes higher-level commands for inserting text, |
1505 is reached. If @var{minimum} is specified and non-@code{nil}, then at | 1511 is reached. If @var{minimum} is specified and non-@code{nil}, then at |
1506 least that many spaces are inserted even if this requires going beyond | 1512 least that many spaces are inserted even if this requires going beyond |
1507 @var{column}. Otherwise the function does nothing if point is already | 1513 @var{column}. Otherwise the function does nothing if point is already |
1508 beyond @var{column}. The value is the column at which the inserted | 1514 beyond @var{column}. The value is the column at which the inserted |
1509 indentation ends. | 1515 indentation ends. |
1516 | |
1517 The inserted whitespace characters inherit text properties from the | |
1518 surrounding text (usually, from the preceding text only). @xref{Sticky | |
1519 Properties}. | |
1510 @end deffn | 1520 @end deffn |
1511 | 1521 |
1512 @defopt indent-tabs-mode | 1522 @defopt indent-tabs-mode |
1513 @comment !!SourceFile indent.c | 1523 @comment !!SourceFile indent.c |
1514 If this variable is non-@code{nil}, indentation functions can insert | 1524 If this variable is non-@code{nil}, indentation functions can insert |