aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmds.c
diff options
context:
space:
mode:
authorGerd Moellmann1999-07-21 21:43:52 +0000
committerGerd Moellmann1999-07-21 21:43:52 +0000
commitf69f3ee03bace23944f3a21fe4cdef06c9bf9f4f (patch)
tree6067a1723475d1b911182033477a3f60eaa101cf /src/cmds.c
parent279cf52c7f4b2a0d43a95ddac302e6372d494905 (diff)
downloademacs-f69f3ee03bace23944f3a21fe4cdef06c9bf9f4f.tar.gz
emacs-f69f3ee03bace23944f3a21fe4cdef06c9bf9f4f.zip
(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 2273aa03002..9c2f83dc054 100644
--- a/src/cmds.c
+++ b/src/cmds.c
@@ -163,7 +163,17 @@ If scan reaches end of buffer, stop there without error.")
163 else 163 else
164 CHECK_NUMBER (n, 0); 164 CHECK_NUMBER (n, 0);
165 165
166#if !NO_PROMPT_IN_BUFFER
167 {
168 int pos = XFASTINT (Fline_beginning_position (n));
169 if (INTEGERP (current_buffer->minibuffer_prompt_length)
170 && pos < XFASTINT (current_buffer->minibuffer_prompt_length))
171 pos = XFASTINT (current_buffer->minibuffer_prompt_length);
172 SET_PT (pos);
173 }
174#else
166 SET_PT (XINT (Fline_beginning_position (n))); 175 SET_PT (XINT (Fline_beginning_position (n)));
176#endif
167 return Qnil; 177 return Qnil;
168} 178}
169 179