aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMiles Bader2001-10-19 06:22:46 +0000
committerMiles Bader2001-10-19 06:22:46 +0000
commit6d57c3189e1a7b0ef6afee7b37a3c3b220af7671 (patch)
treef2791f55e99bf6fc4e761e6bcf6b9a93b90eea20 /src
parent8abc9869bbfe52bd187c54fcc0e9771e844fe176 (diff)
downloademacs-6d57c3189e1a7b0ef6afee7b37a3c3b220af7671.tar.gz
emacs-6d57c3189e1a7b0ef6afee7b37a3c3b220af7671.zip
(Fline_beginning_position, Fline_end_position): Clarify documentation.
Diffstat (limited to 'src')
-rw-r--r--src/editfns.c23
1 files changed, 15 insertions, 8 deletions
diff --git a/src/editfns.c b/src/editfns.c
index 51d328ab2ec..661ad95d292 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -713,15 +713,16 @@ Field boundaries are not noticed if `inhibit-field-text-motion' is non-nil. */)
713} 713}
714 714
715 715
716DEFUN ("line-beginning-position", Fline_beginning_position, Sline_beginning_position, 716DEFUN ("line-beginning-position",
717 0, 1, 0, 717 Fline_beginning_position, Sline_beginning_position, 0, 1, 0,
718 doc: /* Return the character position of the first character on the current line. 718 doc: /* Return the character position of the first character on the current line.
719With argument N not nil or 1, move forward N - 1 lines first. 719With argument N not nil or 1, move forward N - 1 lines first.
720If scan reaches end of buffer, return that position. 720If scan reaches end of buffer, return that position.
721The scan does not cross a field boundary unless it would move 721
722beyond there to a different line. Field boundaries are not noticed if 722The scan does not cross a field boundary unless doing so would move
723`inhibit-field-text-motion' is non-nil. And if N is nil or 1, 723beyond there to a different line; if N is nil or 1, and scan starts at a
724and scan starts at a field boundary, the scan stops as soon as it starts. 724field boundary, the scan stops as soon as it starts. To ignore field
725boundaries bind `inhibit-field-text-motion' to t.
725 726
726This function does not move point. */) 727This function does not move point. */)
727 (n) 728 (n)
@@ -747,11 +748,16 @@ This function does not move point. */)
747 Qt, Qnil); 748 Qt, Qnil);
748} 749}
749 750
750DEFUN ("line-end-position", Fline_end_position, Sline_end_position, 751DEFUN ("line-end-position", Fline_end_position, Sline_end_position, 0, 1, 0,
751 0, 1, 0,
752 doc: /* Return the character position of the last character on the current line. 752 doc: /* Return the character position of the last character on the current line.
753With argument N not nil or 1, move forward N - 1 lines first. 753With argument N not nil or 1, move forward N - 1 lines first.
754If scan reaches end of buffer, return that position. 754If scan reaches end of buffer, return that position.
755
756The scan does not cross a field boundary unless doing so would move
757beyond there to a different line; if N is nil or 1, and scan starts at a
758field boundary, the scan stops as soon as it starts. To ignore field
759boundaries bind `inhibit-field-text-motion' to t.
760
755This function does not move point. */) 761This function does not move point. */)
756 (n) 762 (n)
757 Lisp_Object n; 763 Lisp_Object n;
@@ -770,6 +776,7 @@ This function does not move point. */)
770 return Fconstrain_to_field (make_number (end_pos), make_number (orig), 776 return Fconstrain_to_field (make_number (end_pos), make_number (orig),
771 Qnil, Qt, Qnil); 777 Qnil, Qt, Qnil);
772} 778}
779
773 780
774Lisp_Object 781Lisp_Object
775save_excursion_save () 782save_excursion_save ()