diff options
| author | Gerd Moellmann | 1999-10-17 12:58:58 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-10-17 12:58:58 +0000 |
| commit | 463cac2d1f5900abff072f928782f66a22bfc79a (patch) | |
| tree | 914b9b94b3cfb09d3c45d42e9386696646091084 | |
| parent | cd876a9126ff47d5057cf896df5d9e3732979099 (diff) | |
| download | emacs-463cac2d1f5900abff072f928782f66a22bfc79a.tar.gz emacs-463cac2d1f5900abff072f928782f66a22bfc79a.zip | |
Add Miles Bader's description of fields.
| -rw-r--r-- | etc/NEWS | 27 |
1 files changed, 20 insertions, 7 deletions
| @@ -1196,19 +1196,32 @@ used to clear the mapping table. | |||
| 1196 | 1196 | ||
| 1197 | +++ | 1197 | +++ |
| 1198 | ** The minibuffer prompt is now actually inserted in the minibuffer. | 1198 | ** The minibuffer prompt is now actually inserted in the minibuffer. |
| 1199 | This makes it possible to scroll through the prompt, if you want to. | ||
| 1200 | 1199 | ||
| 1201 | A number of functions such as forward-word, forward-sentence, | 1200 | This makes it possible to scroll through the prompt, if you want to. |
| 1202 | forward-paragraph, and beginning-of-line, stop moving when they | ||
| 1203 | come to the boundary between the prompt and the actual contents. | ||
| 1204 | The function erase-buffer does not delete the prompt. | ||
| 1205 | 1201 | ||
| 1206 | The function minubuffer-prompt-end returns the current position of the | 1202 | The function minubuffer-prompt-end returns the current position of the |
| 1207 | end of the minibuffer prompt, if the minibuffer is current. | 1203 | end of the minibuffer prompt, if the minibuffer is current. |
| 1208 | Otherwise, it returns zero. | 1204 | Otherwise, it returns zero. |
| 1209 | 1205 | ||
| 1210 | The function buffer-string does not return the portion of the | 1206 | ** New `field' abstraction in buffers. |
| 1211 | mini-buffer belonging to the prompt; buffer-substring does. | 1207 | |
| 1208 | There is now code to support an abstraction called `fields' in emacs | ||
| 1209 | buffers. A field is a contiguous region of text with the same `field' | ||
| 1210 | text-property. | ||
| 1211 | |||
| 1212 | Certain functions, such as forward-word, forward-sentence, | ||
| 1213 | forward-paragraph, beginning-of-line, etc., stop moving when they come | ||
| 1214 | to the boundary between fields (beginning-of-line and end-of-line will | ||
| 1215 | not let the point move past the field boundary, but other movement | ||
| 1216 | commands continue into the next field if repeated). | ||
| 1217 | |||
| 1218 | The new function constrain-to-field may be used to achieve similar | ||
| 1219 | behavior; other new field functions include field-beginning, field-end, | ||
| 1220 | erase-field, and field-string. | ||
| 1221 | |||
| 1222 | Now that the minibuffer prompt is inserted into the minibuffer, it is in | ||
| 1223 | a separate field from the user-input part of the buffer, so that many | ||
| 1224 | editing commands treat the user's text separately from the prompt. | ||
| 1212 | 1225 | ||
| 1213 | +++ | 1226 | +++ |
| 1214 | ** Image support. | 1227 | ** Image support. |