Mercurial > emacs
comparison src/editfns.c @ 40042:c9ad5da1f79d
(Fline_beginning_position, Fline_end_position): Clarify documentation.
author | Miles Bader <miles@gnu.org> |
---|---|
date | Fri, 19 Oct 2001 06:22:46 +0000 |
parents | eac4e9ae201c |
children | 7a0668d72687 |
comparison
equal
deleted
inserted
replaced
40041:9d6d2c8564b3 | 40042:c9ad5da1f79d |
---|---|
711 | 711 |
712 return new_pos; | 712 return new_pos; |
713 } | 713 } |
714 | 714 |
715 | 715 |
716 DEFUN ("line-beginning-position", Fline_beginning_position, Sline_beginning_position, | 716 DEFUN ("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. |
719 With argument N not nil or 1, move forward N - 1 lines first. | 719 With argument N not nil or 1, move forward N - 1 lines first. |
720 If scan reaches end of buffer, return that position. | 720 If scan reaches end of buffer, return that position. |
721 The scan does not cross a field boundary unless it would move | 721 |
722 beyond there to a different line. Field boundaries are not noticed if | 722 The 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, | 723 beyond there to a different line; if N is nil or 1, and scan starts at a |
724 and scan starts at a field boundary, the scan stops as soon as it starts. | 724 field boundary, the scan stops as soon as it starts. To ignore field |
725 boundaries bind `inhibit-field-text-motion' to t. | |
725 | 726 |
726 This function does not move point. */) | 727 This function does not move point. */) |
727 (n) | 728 (n) |
728 Lisp_Object n; | 729 Lisp_Object n; |
729 { | 730 { |
745 return Fconstrain_to_field (make_number (end), make_number (orig), | 746 return Fconstrain_to_field (make_number (end), make_number (orig), |
746 XINT (n) != 1 ? Qt : Qnil, | 747 XINT (n) != 1 ? Qt : Qnil, |
747 Qt, Qnil); | 748 Qt, Qnil); |
748 } | 749 } |
749 | 750 |
750 DEFUN ("line-end-position", Fline_end_position, Sline_end_position, | 751 DEFUN ("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. |
753 With argument N not nil or 1, move forward N - 1 lines first. | 753 With argument N not nil or 1, move forward N - 1 lines first. |
754 If scan reaches end of buffer, return that position. | 754 If scan reaches end of buffer, return that position. |
755 | |
756 The scan does not cross a field boundary unless doing so would move | |
757 beyond there to a different line; if N is nil or 1, and scan starts at a | |
758 field boundary, the scan stops as soon as it starts. To ignore field | |
759 boundaries bind `inhibit-field-text-motion' to t. | |
760 | |
755 This function does not move point. */) | 761 This function does not move point. */) |
756 (n) | 762 (n) |
757 Lisp_Object n; | 763 Lisp_Object n; |
758 { | 764 { |
759 int end_pos; | 765 int end_pos; |
768 | 774 |
769 /* Return END_POS constrained to the current input field. */ | 775 /* Return END_POS constrained to the current input field. */ |
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 |
774 Lisp_Object | 781 Lisp_Object |
775 save_excursion_save () | 782 save_excursion_save () |
776 { | 783 { |
777 int visible = (XBUFFER (XWINDOW (selected_window)->buffer) | 784 int visible = (XBUFFER (XWINDOW (selected_window)->buffer) |