Mercurial > emacs
comparison lispref/positions.texi @ 53026:8fccd5a26c77
(Point): Change description of `buffer-end', so that it is also
correct for floating point arguments.
(List Motion): Correct argument lists of `beginning-of-defun' and
`end-of-defun'.
(Excursions): Add xref to `Marker Insertion Types'.
(Narrowing): Argument to `narrow-to-page' is optional.
author | Luc Teirlinck <teirllm@auburn.edu> |
---|---|
date | Sun, 09 Nov 2003 04:49:58 +0000 |
parents | 1a5c50faf357 |
children | d79cdcde0da3 |
comparison
equal
deleted
inserted
replaced
53025:53be3d7fa5da | 53026:8fccd5a26c77 |
---|---|
87 in effect, in which case it is the position of the end of the region | 87 in effect, in which case it is the position of the end of the region |
88 that you narrowed to. (@xref{Narrowing}.) | 88 that you narrowed to. (@xref{Narrowing}.) |
89 @end defun | 89 @end defun |
90 | 90 |
91 @defun buffer-end flag | 91 @defun buffer-end flag |
92 This function returns @code{(point-min)} if @var{flag} is less than 1, | 92 This function returns @code{(point-max)} if @var{flag} is greater than |
93 @code{(point-max)} otherwise. The argument @var{flag} must be a number. | 93 0, @code{(point-min)} otherwise. The argument @var{flag} must be a |
94 number. | |
94 @end defun | 95 @end defun |
95 | 96 |
96 @defun buffer-size &optional buffer | 97 @defun buffer-size &optional buffer |
97 This function returns the total number of characters in the current | 98 This function returns the total number of characters in the current |
98 buffer. In the absence of any narrowing (@pxref{Narrowing}), | 99 buffer. In the absence of any narrowing (@pxref{Narrowing}), |
653 This function moves forward out of @var{arg} (default 1) levels of parentheses. | 654 This function moves forward out of @var{arg} (default 1) levels of parentheses. |
654 A negative argument means move backward but still to a less deep spot. | 655 A negative argument means move backward but still to a less deep spot. |
655 @end deffn | 656 @end deffn |
656 | 657 |
657 @deffn Command down-list &optional arg | 658 @deffn Command down-list &optional arg |
658 This function moves forward into @var{arg} (default 1) levels of parentheses. A | 659 This function moves forward into @var{arg} (default 1) levels of |
659 negative argument means move backward but still go | 660 parentheses. A negative argument means move backward but still go |
660 deeper in parentheses (@minus{}@var{arg} levels). | 661 deeper in parentheses (@minus{}@var{arg} levels). |
661 @end deffn | 662 @end deffn |
662 | 663 |
663 @deffn Command forward-sexp &optional arg | 664 @deffn Command forward-sexp &optional arg |
664 This function moves forward across @var{arg} (default 1) balanced expressions. | 665 This function moves forward across @var{arg} (default 1) balanced expressions. |
686 | 687 |
687 @deffn Command backward-sexp &optional arg | 688 @deffn Command backward-sexp &optional arg |
688 This function moves backward across @var{arg} (default 1) balanced expressions. | 689 This function moves backward across @var{arg} (default 1) balanced expressions. |
689 @end deffn | 690 @end deffn |
690 | 691 |
691 @deffn Command beginning-of-defun arg | 692 @deffn Command beginning-of-defun &optional arg |
692 This function moves back to the @var{arg}th beginning of a defun. If | 693 This function moves back to the @var{arg}th beginning of a defun. If |
693 @var{arg} is negative, this actually moves forward, but it still moves | 694 @var{arg} is negative, this actually moves forward, but it still moves |
694 to the beginning of a defun, not to the end of one. | 695 to the beginning of a defun, not to the end of one. |
695 @end deffn | 696 @end deffn |
696 | 697 |
697 @deffn Command end-of-defun arg | 698 @deffn Command end-of-defun &optional arg |
698 This function moves forward to the @var{arg}th end of a defun. If | 699 This function moves forward to the @var{arg}th end of a defun. If |
699 @var{arg} is negative, this actually moves backward, but it still moves | 700 @var{arg} is negative, this actually moves backward, but it still moves |
700 to the end of a defun, not to the beginning of one. | 701 to the end of a defun, not to the beginning of one. |
701 @end deffn | 702 @end deffn |
702 | 703 |
865 @end example | 866 @end example |
866 @end defspec | 867 @end defspec |
867 | 868 |
868 @strong{Warning:} Ordinary insertion of text adjacent to the saved | 869 @strong{Warning:} Ordinary insertion of text adjacent to the saved |
869 point value relocates the saved value, just as it relocates all markers. | 870 point value relocates the saved value, just as it relocates all markers. |
870 Therefore, when the saved point value is restored, it normally comes | 871 More precisely, the saved value is a marker with insertion type |
871 before the inserted text. | 872 @code{nil}. @xref{Marker Insertion Types}. Therefore, when the saved |
873 point value is restored, it normally comes before the inserted text. | |
872 | 874 |
873 Although @code{save-excursion} saves the location of the mark, it does | 875 Although @code{save-excursion} saves the location of the mark, it does |
874 not prevent functions which modify the buffer from setting | 876 not prevent functions which modify the buffer from setting |
875 @code{deactivate-mark}, and thus causing the deactivation of the mark | 877 @code{deactivate-mark}, and thus causing the deactivation of the mark |
876 after the command finishes. @xref{The Mark}. | 878 after the command finishes. @xref{The Mark}. |
907 | 909 |
908 In an interactive call, @var{start} and @var{end} are set to the bounds | 910 In an interactive call, @var{start} and @var{end} are set to the bounds |
909 of the current region (point and the mark, with the smallest first). | 911 of the current region (point and the mark, with the smallest first). |
910 @end deffn | 912 @end deffn |
911 | 913 |
912 @deffn Command narrow-to-page move-count | 914 @deffn Command narrow-to-page &optional move-count |
913 This function sets the accessible portion of the current buffer to | 915 This function sets the accessible portion of the current buffer to |
914 include just the current page. An optional first argument | 916 include just the current page. An optional first argument |
915 @var{move-count} non-@code{nil} means to move forward or backward by | 917 @var{move-count} non-@code{nil} means to move forward or backward by |
916 @var{move-count} pages and then narrow to one page. The variable | 918 @var{move-count} pages and then narrow to one page. The variable |
917 @code{page-delimiter} specifies where pages start and end | 919 @code{page-delimiter} specifies where pages start and end |