diff options
Diffstat (limited to 'src/xdisp.c')
| -rw-r--r-- | src/xdisp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 925eed8d6ff..4b26633c7e7 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -6139,6 +6139,11 @@ with_echo_area_buffer (w, which, fn, a1, a2, a3, a4) | |||
| 6139 | 6139 | ||
| 6140 | buffer = echo_area_buffer[this_one]; | 6140 | buffer = echo_area_buffer[this_one]; |
| 6141 | 6141 | ||
| 6142 | /* Don't get confused by reusing the buffer used for echoing | ||
| 6143 | for a different purpose. */ | ||
| 6144 | if (!echoing && EQ (buffer, echo_message_buffer)) | ||
| 6145 | cancel_echoing (); | ||
| 6146 | |||
| 6142 | record_unwind_protect (unwind_with_echo_area_buffer, | 6147 | record_unwind_protect (unwind_with_echo_area_buffer, |
| 6143 | with_echo_area_buffer_unwind_data (w)); | 6148 | with_echo_area_buffer_unwind_data (w)); |
| 6144 | 6149 | ||