aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMiles Bader2001-10-19 06:19:07 +0000
committerMiles Bader2001-10-19 06:19:07 +0000
commit8abc9869bbfe52bd187c54fcc0e9771e844fe176 (patch)
tree09704eab927b5fc73ea139ecf2a5258a4fa0c96c /src
parent5fce351a6de18f245061171bc4c66c949242d221 (diff)
downloademacs-8abc9869bbfe52bd187c54fcc0e9771e844fe176.tar.gz
emacs-8abc9869bbfe52bd187c54fcc0e9771e844fe176.zip
(Fbeginning_of_line, Fend_of_line): Clarify interaction with fields and
suggest using `forward-line' to avoid them.
Diffstat (limited to 'src')
-rw-r--r--src/cmds.c43
1 files changed, 24 insertions, 19 deletions
diff --git a/src/cmds.c b/src/cmds.c
index f938cc133db..791b410eb5b 100644
--- a/src/cmds.c
+++ b/src/cmds.c
@@ -1,5 +1,5 @@
1/* Simple built-in editing commands. 1/* Simple built-in editing commands.
2 Copyright (C) 1985, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc. 2 Copyright (C) 1985, 93, 94, 95, 96, 97, 1998, 2001 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -150,15 +150,19 @@ With positive N, a non-empty line at the end counts as one line\n\
150 return make_number (count <= 0 ? - shortage : shortage); 150 return make_number (count <= 0 ? - shortage : shortage);
151} 151}
152 152
153DEFUN ("beginning-of-line", Fbeginning_of_line, Sbeginning_of_line, 153DEFUN ("beginning-of-line", Fbeginning_of_line, Sbeginning_of_line, 0, 1, "p",
154 0, 1, "p", 154 doc: /* Move point to beginning of current line.
155 "Move point to beginning of current line.\n\ 155With argument N not nil or 1, move forward N - 1 lines first.
156With argument N not nil or 1, move forward N - 1 lines first.\n\ 156If point reaches the beginning or end of buffer, it stops there.
157If point reaches the beginning or end of buffer, it stops there.\n\ 157
158This command does not move point across a field boundary\n\ 158This command does not move point across a field boundary unless doing so
159unless it would move beyond there to a different line.\n\ 159would move beyond there to a different line; If N is nil or 1, and point
160If N is nil or 1, and point starts at a field boundary, point does not move.") 160starts at a field boundary, point does not move. To ignore field
161 (n) 161boundaries, either bind `inhibit-field-text-motion' to t, or use the
162`forward-line' function instead. For instance, `(forward-line 0)' does
163the same thing as `(beginning-of-line)', except that it ignores field
164boundaries. */)
165 (n)
162 Lisp_Object n; 166 Lisp_Object n;
163{ 167{
164 if (NILP (n)) 168 if (NILP (n))
@@ -171,15 +175,16 @@ If N is nil or 1, and point starts at a field boundary, point does not move.")
171 return Qnil; 175 return Qnil;
172} 176}
173 177
174DEFUN ("end-of-line", Fend_of_line, Send_of_line, 178DEFUN ("end-of-line", Fend_of_line, Send_of_line, 0, 1, "p",
175 0, 1, "p", 179 doc: /* Move point to end of current line.
176 "Move point to end of current line.\n\ 180With argument N not nil or 1, move forward N - 1 lines first.
177With argument N not nil or 1, move forward N - 1 lines first.\n\ 181If point reaches the beginning or end of buffer, it stops there.
178If point reaches the beginning or end of buffer, it stops there.\n\ 182
179This command does not move point across a field boundary\n\ 183This command does not move point across a field boundary unless doing so
180unless it would move beyond there to a different line.\n\ 184would move beyond there to a different line; if N is nil or 1, and
181If N is nil or 1, and point starts at a field boundary, point does not move.") 185point starts at a field boundary, point does not move. To ignore field
182 (n) 186boundaries bind `inhibit-field-text-motion' to t. */)
187 (n)
183 Lisp_Object n; 188 Lisp_Object n;
184{ 189{
185 if (NILP (n)) 190 if (NILP (n))