Mercurial > hg > xemacs-beta
comparison man/lispref/text.texi @ 434:9d177e8d4150 r21-2-25
Import from CVS: tag r21-2-25
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:30:53 +0200 |
parents | 3ecd8885ac67 |
children | 576fb035e263 |
comparison
equal
deleted
inserted
replaced
433:892ca416f0fb | 434:9d177e8d4150 |
---|---|
68 is omitted. (In FSF Emacs, and earlier versions of XEmacs, these | 68 is omitted. (In FSF Emacs, and earlier versions of XEmacs, these |
69 functions usually did not have these optional @var{buffer} arguments | 69 functions usually did not have these optional @var{buffer} arguments |
70 and always operated on the current buffer.) | 70 and always operated on the current buffer.) |
71 | 71 |
72 | 72 |
73 @defun char-after position &optional buffer | 73 @defun char-after &optional position buffer |
74 This function returns the character in the buffer at (i.e., | 74 This function returns the character in the buffer at (i.e., |
75 immediately after) position @var{position}. If @var{position} is out of | 75 immediately after) position @var{position}. If @var{position} is out of |
76 range for this purpose, either before the beginning of the buffer, or at | 76 range for this purpose, either before the beginning of the buffer, or at |
77 or beyond the end, then the value is @code{nil}. If optional argument | 77 or beyond the end, then the value is @code{nil}. The default for |
78 @var{buffer} is @code{nil}, the current buffer is assumed. | 78 @var{position} is point. If optional argument @var{buffer} is |
79 @code{nil}, the current buffer is assumed. | |
79 | 80 |
80 In the following example, assume that the first character in the | 81 In the following example, assume that the first character in the |
81 buffer is @samp{@@}: | 82 buffer is @samp{@@}: |
82 | 83 |
83 @example | 84 @example |
84 @group | 85 @group |
85 (char-to-string (char-after 1)) | 86 (char-to-string (char-after 1)) |
86 @result{} "@@" | 87 @result{} "@@" |
87 @end group | 88 @end group |
88 @end example | 89 @end example |
90 @end defun | |
91 | |
92 @defun char-before &optional position buffer | |
93 This function returns the character in the current buffer immediately | |
94 before position @var{position}. If @var{position} is out of range for | |
95 this purpose, either at or before the beginning of the buffer, or beyond | |
96 the end, then the value is @code{nil}. The default for | |
97 @var{position} is point. If optional argument @var{buffer} is | |
98 @code{nil}, the current buffer is assumed. | |
89 @end defun | 99 @end defun |
90 | 100 |
91 @defun following-char &optional buffer | 101 @defun following-char &optional buffer |
92 This function returns the character following point in the buffer. | 102 This function returns the character following point in the buffer. |
93 This is similar to @code{(char-after (point))}. However, if point is at | 103 This is similar to @code{(char-after (point))}. However, if point is at |