diff options
| author | Gerd Moellmann | 2001-04-04 14:06:06 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-04-04 14:06:06 +0000 |
| commit | 1013f4e380ba62f82a8e8621a2ea00a58974cc5d (patch) | |
| tree | e2c1320ae13464674d9541dd447f750b5df93941 | |
| parent | d8e17bc6863936a1f3f6824ec1051c17295479e3 (diff) | |
| download | emacs-1013f4e380ba62f82a8e8621a2ea00a58974cc5d.tar.gz emacs-1013f4e380ba62f82a8e8621a2ea00a58974cc5d.zip | |
(with_echo_area_buffer): Avoid confusion from reusing
the buffer that was used for echoing.
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/xdisp.c | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index a0225dd188c..36eac1ca486 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,13 @@ | |||
| 1 | 2001-04-04 Gerd Moellmann <gerd@gnu.org> | 1 | 2001-04-04 Gerd Moellmann <gerd@gnu.org> |
| 2 | 2 | ||
| 3 | * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare. | ||
| 4 | |||
| 5 | * keyboard.c (echoing, echo_message_buffer): Make externally | ||
| 6 | visible. | ||
| 7 | |||
| 8 | * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing | ||
| 9 | the buffer that was used for echoing. | ||
| 10 | |||
| 3 | * xfaces.c (best_matching_font): Remove unused parameter PATTERN. | 11 | * xfaces.c (best_matching_font): Remove unused parameter PATTERN. |
| 4 | (first_font_matching): Removed unused function. | 12 | (first_font_matching): Removed unused function. |
| 5 | (x_face_list_fonts): Remove unused parameter SCALABLE_P. | 13 | (x_face_list_fonts): Remove unused parameter SCALABLE_P. |
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 | ||