Mercurial > emacs
comparison etc/NEWS @ 26062:fd35581d53c1
Add Miles Bader's description of fields.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Sun, 17 Oct 1999 12:58:58 +0000 |
parents | e7b463705814 |
children | 466a2fb0133c |
comparison
equal
deleted
inserted
replaced
26061:1ca697674a40 | 26062:fd35581d53c1 |
---|---|
1194 `tty-defined-colors'. The function `face-clear-tty-colors' can be | 1194 `tty-defined-colors'. The function `face-clear-tty-colors' can be |
1195 used to clear the mapping table. | 1195 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 | |
1199 This makes it possible to scroll through the prompt, if you want to. | 1200 This makes it possible to scroll through the prompt, if you want to. |
1200 | |
1201 A number of functions such as forward-word, forward-sentence, | |
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. |
1215 | 1228 |
1216 Emacs can now display images. Images are inserted into text by giving | 1229 Emacs can now display images. Images are inserted into text by giving |