aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Teirlinck2003-11-09 04:49:58 +0000
committerLuc Teirlinck2003-11-09 04:49:58 +0000
commitbf4fb0252c68afbd375e787bd726c35afd96640b (patch)
treeb9484bc2d1db1c92182ca72ddc884cd9da940b13
parentb02495f1b5d52315bc15dd1706fa69e94dc3c0e0 (diff)
downloademacs-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.texi20
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
92This function returns @code{(point-min)} if @var{flag} is less than 1, 92This function returns @code{(point-max)} if @var{flag} is greater than
93@code{(point-max)} otherwise. The argument @var{flag} must be a number. 930, @code{(point-min)} otherwise. The argument @var{flag} must be a
94number.
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
658This function moves forward into @var{arg} (default 1) levels of parentheses. A 659This function moves forward into @var{arg} (default 1) levels of
659negative argument means move backward but still go 660parentheses. A negative argument means move backward but still go
660deeper in parentheses (@minus{}@var{arg} levels). 661deeper 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
688This function moves backward across @var{arg} (default 1) balanced expressions. 689This 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
692This function moves back to the @var{arg}th beginning of a defun. If 693This 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
694to the beginning of a defun, not to the end of one. 695to 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
698This function moves forward to the @var{arg}th end of a defun. If 699This 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
700to the end of a defun, not to the beginning of one. 701to 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
869point value relocates the saved value, just as it relocates all markers. 870point value relocates the saved value, just as it relocates all markers.
870Therefore, when the saved point value is restored, it normally comes 871More precisely, the saved value is a marker with insertion type
871before the inserted text. 872@code{nil}. @xref{Marker Insertion Types}. Therefore, when the saved
873point 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
874not prevent functions which modify the buffer from setting 876not 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
909of the current region (point and the mark, with the smallest first). 911of 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
913This function sets the accessible portion of the current buffer to 915This function sets the accessible portion of the current buffer to
914include just the current page. An optional first argument 916include 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