Mercurial > emacs
comparison lispref/text.texi @ 54041:bb6e41200945
Minor fixes.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 17 Feb 2004 01:12:00 +0000 |
parents | 0f3abb6bbf27 |
children | 836a9ea3b5a4 |
comparison
equal
deleted
inserted
replaced
54040:b3ba32bd740f | 54041:bb6e41200945 |
---|---|
157 @end defun | 157 @end defun |
158 | 158 |
159 @node Buffer Contents | 159 @node Buffer Contents |
160 @section Examining Buffer Contents | 160 @section Examining Buffer Contents |
161 | 161 |
162 This section describes two functions that allow a Lisp program to | 162 This section describes functions that allow a Lisp program to |
163 convert any portion of the text in the buffer into a string. | 163 convert any portion of the text in the buffer into a string. |
164 | 164 |
165 @defun buffer-substring start end | 165 @defun buffer-substring start end |
166 This function returns a string containing a copy of the text of the | 166 This function returns a string containing a copy of the text of the |
167 region defined by positions @var{start} and @var{end} in the current | 167 region defined by positions @var{start} and @var{end} in the current |
349 unless all @var{args} are either strings or characters. The value is | 349 unless all @var{args} are either strings or characters. The value is |
350 @code{nil}. | 350 @code{nil}. |
351 | 351 |
352 This function is unlike the other insertion functions in that it | 352 This function is unlike the other insertion functions in that it |
353 relocates markers initially pointing at the insertion point, to point | 353 relocates markers initially pointing at the insertion point, to point |
354 after the inserted text. If an overlay begins the insertion point, the | 354 after the inserted text. If an overlay begins at the insertion point, |
355 inserted text falls outside the overlay; if a nonempty overlay ends at | 355 the inserted text falls outside the overlay; if a nonempty overlay |
356 the insertion point, the inserted text falls inside that overlay. | 356 ends at the insertion point, the inserted text falls inside that |
357 overlay. | |
357 @end defun | 358 @end defun |
358 | 359 |
359 @defun insert-char character count &optional inherit | 360 @defun insert-char character count &optional inherit |
360 This function inserts @var{count} instances of @var{character} into the | 361 This function inserts @var{count} instances of @var{character} into the |
361 current buffer before point. The argument @var{count} should be a | 362 current buffer before point. The argument @var{count} should be a |
2986 (which may be the same function) and/or two @code{point-entered} | 2987 (which may be the same function) and/or two @code{point-entered} |
2987 functions (which may be the same function). In any case, all the | 2988 functions (which may be the same function). In any case, all the |
2988 @code{point-left} functions are called first, followed by all the | 2989 @code{point-left} functions are called first, followed by all the |
2989 @code{point-entered} functions. | 2990 @code{point-entered} functions. |
2990 | 2991 |
2991 It is possible using @code{char-after} to examine characters at various | 2992 It is possible with @code{char-after} to examine characters at various |
2992 positions without moving point to those positions. Only an actual | 2993 buffer positions without moving point to those positions. Only an |
2993 change in the value of point runs these hook functions. | 2994 actual change in the value of point runs these hook functions. |
2994 @end table | 2995 @end table |
2995 | 2996 |
2996 @defvar inhibit-point-motion-hooks | 2997 @defvar inhibit-point-motion-hooks |
2997 When this variable is non-@code{nil}, @code{point-left} and | 2998 When this variable is non-@code{nil}, @code{point-left} and |
2998 @code{point-entered} hooks are not run, and the @code{intangible} | 2999 @code{point-entered} hooks are not run, and the @code{intangible} |