Mercurial > emacs
diff src/cmds.c @ 25015:7730c6f39ef5
(Fbeginning_of_line) [PROMPT_IN_BUFFER]: Set point to
end of prompt if applied to a mini-buffer and BEG reached.
| author | Gerd Moellmann <gerd@gnu.org> |
|---|---|
| date | Wed, 21 Jul 1999 21:43:52 +0000 |
| parents | 230bace6a57a |
| children | c7247eabc834 |
line wrap: on
line diff
--- a/src/cmds.c Wed Jul 21 21:43:52 1999 +0000 +++ b/src/cmds.c Wed Jul 21 21:43:52 1999 +0000 @@ -163,7 +163,17 @@ 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; }
