aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2000-08-14 09:16:49 +0000
committerMiles Bader2000-08-14 09:16:49 +0000
commit59927f88fa0fef35f3ff7cd116799d2c894f188c (patch)
tree2ba3aea7396ef5450ae54ecd27c535ddf545e67e
parent6f7f063dee368ffcb0d39083a19adcbfb9411a4b (diff)
downloademacs-59927f88fa0fef35f3ff7cd116799d2c894f188c.tar.gz
emacs-59927f88fa0fef35f3ff7cd116799d2c894f188c.zip
Update `fields' entry.
-rw-r--r--etc/NEWS34
1 files changed, 21 insertions, 13 deletions
diff --git a/etc/NEWS b/etc/NEWS
index d0117bb5823..bf861e21d28 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2622,7 +2622,7 @@ Otherwise, it returns zero.
2622 2622
2623There is now code to support an abstraction called `fields' in emacs 2623There is now code to support an abstraction called `fields' in emacs
2624buffers. A field is a contiguous region of text with the same `field' 2624buffers. A field is a contiguous region of text with the same `field'
2625text-property. 2625property (which can be a text property or an overlay).
2626 2626
2627Many emacs functions, such as forward-word, forward-sentence, 2627Many emacs functions, such as forward-word, forward-sentence,
2628forward-paragraph, beginning-of-line, etc., stop moving when they come 2628forward-paragraph, beginning-of-line, etc., stop moving when they come
@@ -2639,9 +2639,10 @@ editing commands treat the user's text separately from the prompt.
2639 2639
2640The following functions are defined for operating on fields: 2640The following functions are defined for operating on fields:
2641 2641
2642- Function: constrain-to-field NEW-POS OLD-POS &optional ESCAPE-FROM-EDGE ONLY-IN-LINE 2642- Function: constrain-to-field NEW-POS OLD-POS &optional ESCAPE-FROM-EDGE ONLY-IN-LINE INHIBIT-CAPTURE-PROPERTY
2643 2643
2644Return the position closest to NEW-POS that is in the same field as OLD-POS. 2644Return the position closest to NEW-POS that is in the same field as OLD-POS.
2645
2645A field is a region of text with the same `field' property. 2646A field is a region of text with the same `field' property.
2646If NEW-POS is nil, then the current point is used instead, and set to the 2647If NEW-POS is nil, then the current point is used instead, and set to the
2647constrained position if that is is different. 2648constrained position if that is is different.
@@ -2649,10 +2650,12 @@ constrained position if that is is different.
2649If OLD-POS is at the boundary of two fields, then the allowable 2650If OLD-POS is at the boundary of two fields, then the allowable
2650positions for NEW-POS depends on the value of the optional argument 2651positions for NEW-POS depends on the value of the optional argument
2651ESCAPE-FROM-EDGE: If ESCAPE-FROM-EDGE is nil, then NEW-POS is 2652ESCAPE-FROM-EDGE: If ESCAPE-FROM-EDGE is nil, then NEW-POS is
2652constrained to the field that has the same `field' text-property 2653constrained to the field that has the same `field' char-property
2653as any new characters inserted at OLD-POS, whereas if ESCAPE-FROM-EDGE 2654as any new characters inserted at OLD-POS, whereas if ESCAPE-FROM-EDGE
2654is non-nil, NEW-POS is constrained to the union of the two adjacent 2655is non-nil, NEW-POS is constrained to the union of the two adjacent
2655fields. 2656fields. Additionally, if two fields are separated by another field with
2657the special value `boundary', then any point within this special field is
2658also considered to be `on the boundary'.
2656 2659
2657If the optional argument ONLY-IN-LINE is non-nil and constraining 2660If the optional argument ONLY-IN-LINE is non-nil and constraining
2658NEW-POS would move it to a different line, NEW-POS is returned 2661NEW-POS would move it to a different line, NEW-POS is returned
@@ -2660,39 +2663,44 @@ unconstrained. This useful for commands that move by line, like
2660C-n or C-a, which should generally respect field boundaries 2663C-n or C-a, which should generally respect field boundaries
2661only in the case where they can still move to the right line. 2664only in the case where they can still move to the right line.
2662 2665
2663- Function: erase-field &optional POS 2666If the optional argument INHIBIT-CAPTURE-PROPERTY is non-nil, and OLD-POS has
2667a non-nil property of that name, then any field boundaries are ignored.
2668
2669Field boundaries are not noticed if `inhibit-field-text-motion' is non-nil.
2670
2671- Function: delete-field &optional POS
2664 2672
2665Erases the field surrounding POS. 2673Delete the field surrounding POS.
2666A field is a region of text with the same `field' property. 2674A field is a region of text with the same `field' property.
2667If POS is nil, the position of the current buffer's point is used. 2675If POS is nil, the value of point is used for POS.
2668 2676
2669- Function: field-beginning &optional POS ESCAPE-FROM-EDGE 2677- Function: field-beginning &optional POS ESCAPE-FROM-EDGE
2670 2678
2671Return the beginning of the field surrounding POS. 2679Return the beginning of the field surrounding POS.
2672A field is a region of text with the same `field' property. 2680A field is a region of text with the same `field' property.
2673If POS is nil, the position of the current buffer's point is used. 2681If POS is nil, the value of point is used for POS.
2674If ESCAPE-FROM-EDGE is non-nil and POS is already at beginning of an 2682If ESCAPE-FROM-EDGE is non-nil and POS is at the beginning of its
2675field, then the beginning of the *previous* field is returned. 2683field, then the beginning of the *previous* field is returned.
2676 2684
2677- Function: field-end &optional POS ESCAPE-FROM-EDGE 2685- Function: field-end &optional POS ESCAPE-FROM-EDGE
2678 2686
2679Return the end of the field surrounding POS. 2687Return the end of the field surrounding POS.
2680A field is a region of text with the same `field' property. 2688A field is a region of text with the same `field' property.
2681If POS is nil, the position of the current buffer's point is used. 2689If POS is nil, the value of point is used for POS.
2682If ESCAPE-FROM-EDGE is non-nil and POS is already at end of a field, 2690If ESCAPE-FROM-EDGE is non-nil and POS is at the end of its field,
2683then the end of the *following* field is returned. 2691then the end of the *following* field is returned.
2684 2692
2685- Function: field-string &optional POS 2693- Function: field-string &optional POS
2686 2694
2687Return the contents of the field surrounding POS as a string. 2695Return the contents of the field surrounding POS as a string.
2688A field is a region of text with the same `field' property. 2696A field is a region of text with the same `field' property.
2689If POS is nil, the position of the current buffer's point is used. 2697If POS is nil, the value of point is used for POS.
2690 2698
2691- Function: field-string-no-properties &optional POS 2699- Function: field-string-no-properties &optional POS
2692 2700
2693Return the contents of the field around POS, without text-properties. 2701Return the contents of the field around POS, without text-properties.
2694A field is a region of text with the same `field' property. 2702A field is a region of text with the same `field' property.
2695If POS is nil, the position of the current buffer's point is used. 2703If POS is nil, the value of point is used for POS.
2696 2704
2697+++ 2705+++
2698** Image support. 2706** Image support.