Mercurial > emacs
comparison src/syntax.c @ 25659:fe4146e7baf9
(Fforward_word): Use prompt_end_charpos instead
of minibuffer_prompt_length.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Sun, 12 Sep 1999 20:21:56 +0000 |
parents | 863b49f711d6 |
children | a5eaace0fa01 |
comparison
equal
deleted
inserted
replaced
25658:a9f38bb7f815 | 25659:fe4146e7baf9 |
---|---|
1237 } | 1237 } |
1238 | 1238 |
1239 /* If in a mini-buffer and moving backwards, stop at the end of the | 1239 /* If in a mini-buffer and moving backwards, stop at the end of the |
1240 prompt. This prevents accidentially moving into the read-only | 1240 prompt. This prevents accidentially moving into the read-only |
1241 prompt. */ | 1241 prompt. */ |
1242 if (INTEGERP (current_buffer->minibuffer_prompt_length) | 1242 if (INTEGERP (current_buffer->prompt_end_charpos) |
1243 && (prompt_end = XINT (current_buffer->minibuffer_prompt_length), | 1243 && (prompt_end = XINT (current_buffer->prompt_end_charpos), |
1244 ((PT > prompt_end && val < prompt_end) | 1244 ((PT > prompt_end && val < prompt_end) |
1245 || (PT < prompt_end && val > prompt_end)))) | 1245 || (PT < prompt_end && val > prompt_end)))) |
1246 val = prompt_end; | 1246 val = prompt_end; |
1247 | 1247 |
1248 SET_PT (val); | 1248 SET_PT (val); |