diff options
| author | Stefan Monnier | 2021-11-22 14:06:14 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2021-11-22 14:06:14 -0500 |
| commit | 0601afcf7c6c3498df010cef1511c38f254cbbf8 (patch) | |
| tree | 82d1db781808bbac445aba92ec90b19d80d7b1a8 /src | |
| parent | c3ac8285d42eeb88d7abf9670229884f1bbccaae (diff) | |
| download | emacs-0601afcf7c6c3498df010cef1511c38f254cbbf8.tar.gz emacs-0601afcf7c6c3498df010cef1511c38f254cbbf8.zip | |
src/indent.c, src/xdisp.c: Questions about with_echo_area_buffer_unwind_data
Diffstat (limited to 'src')
| -rw-r--r-- | src/indent.c | 1 | ||||
| -rw-r--r-- | src/xdisp.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/indent.c b/src/indent.c index de6b4895616..914dabf1e72 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -2051,6 +2051,7 @@ window_column_x (struct window *w, Lisp_Object window, | |||
| 2051 | 2051 | ||
| 2052 | /* Restore window's buffer and point. */ | 2052 | /* Restore window's buffer and point. */ |
| 2053 | 2053 | ||
| 2054 | /* FIXME: Merge with `with_echo_area_buffer_unwind_data`? */ | ||
| 2054 | static void | 2055 | static void |
| 2055 | restore_window_buffer (Lisp_Object list) | 2056 | restore_window_buffer (Lisp_Object list) |
| 2056 | { | 2057 | { |
diff --git a/src/xdisp.c b/src/xdisp.c index d9650211427..259d057adb1 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -10937,6 +10937,7 @@ WINDOW. */) | |||
| 10937 | 10937 | ||
| 10938 | /* The unwind form of with_echo_area_buffer is what we need here to | 10938 | /* The unwind form of with_echo_area_buffer is what we need here to |
| 10939 | make WINDOW temporarily show our buffer. */ | 10939 | make WINDOW temporarily show our buffer. */ |
| 10940 | /* FIXME: Can we move this into the `if (!EQ (buffer, w->contents))`? */ | ||
| 10940 | record_unwind_protect (unwind_with_echo_area_buffer, | 10941 | record_unwind_protect (unwind_with_echo_area_buffer, |
| 10941 | with_echo_area_buffer_unwind_data (w)); | 10942 | with_echo_area_buffer_unwind_data (w)); |
| 10942 | 10943 | ||