diff options
| author | Luc Teirlinck | 2003-11-09 04:49:58 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2003-11-09 04:49:58 +0000 |
| commit | bf4fb0252c68afbd375e787bd726c35afd96640b (patch) | |
| tree | b9484bc2d1db1c92182ca72ddc884cd9da940b13 | |
| parent | b02495f1b5d52315bc15dd1706fa69e94dc3c0e0 (diff) | |
| download | emacs-bf4fb0252c68afbd375e787bd726c35afd96640b.tar.gz emacs-bf4fb0252c68afbd375e787bd726c35afd96640b.zip | |
(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.
| -rw-r--r-- | lispref/positions.texi | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/lispref/positions.texi b/lispref/positions.texi index a7747e3f2cd..3f465e034ae 100644 --- a/lispref/positions.texi +++ b/lispref/positions.texi | |||
| @@ -89,8 +89,9 @@ 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 |
| @@ -655,8 +656,8 @@ 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 | ||
| @@ -688,13 +689,13 @@ other kinds, such as words and string constants | |||
| 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. |
| @@ -867,8 +868,9 @@ The value returned by @code{save-excursion} is the result of the last of | |||
| 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 |
| @@ -909,7 +911,7 @@ 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 |