aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmds.c
diff options
context:
space:
mode:
authorGerd Moellmann <[email protected]>1999-07-21 21:43:52 +0000
committerGerd Moellmann <[email protected]>1999-07-21 21:43:52 +0000
commitf69f3ee03bace23944f3a21fe4cdef06c9bf9f4f (patch)
tree6067a1723475d1b911182033477a3f60eaa101cf /src/cmds.c
parent279cf52c7f4b2a0d43a95ddac302e6372d494905 (diff)
(Fbeginning_of_line) [PROMPT_IN_BUFFER]: Set point to
end of prompt if applied to a mini-buffer and BEG reached.
Diffstat (limited to 'src/cmds.c')
-rw-r--r--src/cmds.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cmds.c b/src/cmds.c
index 2273aa0300..9c2f83dc05 100644
--- a/src/cmds.c
+++ b/src/cmds.c
@@ -163,7 +163,17 @@ If scan reaches end of buffer, stop there without error.")
else
CHECK_NUMBER (n, 0);
+#if !NO_PROMPT_IN_BUFFER
+ {
+ int pos = XFASTINT (Fline_beginning_position (n));
+ if (INTEGERP (current_buffer->minibuffer_prompt_length)
+ && pos < XFASTINT (current_buffer->minibuffer_prompt_length))
+ pos = XFASTINT (current_buffer->minibuffer_prompt_length);
+ SET_PT (pos);
+ }
+#else
SET_PT (XINT (Fline_beginning_position (n)));
+#endif
return Qnil;
}