diff options
| author | Gerd Moellmann | 1999-07-21 21:43:52 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-07-21 21:43:52 +0000 |
| commit | f69f3ee03bace23944f3a21fe4cdef06c9bf9f4f (patch) | |
| tree | 6067a1723475d1b911182033477a3f60eaa101cf /src | |
| parent | 279cf52c7f4b2a0d43a95ddac302e6372d494905 (diff) | |
| download | emacs-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')
| -rw-r--r-- | src/cmds.c | 10 |
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 | ||