From 0601afcf7c6c3498df010cef1511c38f254cbbf8 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Mon, 22 Nov 2021 14:06:14 -0500 Subject: [PATCH] src/indent.c, src/xdisp.c: Questions about with_echo_area_buffer_unwind_data --- src/indent.c | 1 + src/xdisp.c | 1 + 2 files changed, 2 insertions(+) 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, /* Restore window's buffer and point. */ +/* FIXME: Merge with `with_echo_area_buffer_unwind_data`? */ static void restore_window_buffer (Lisp_Object list) { 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. */) /* The unwind form of with_echo_area_buffer is what we need here to make WINDOW temporarily show our buffer. */ + /* FIXME: Can we move this into the `if (!EQ (buffer, w->contents))`? */ record_unwind_protect (unwind_with_echo_area_buffer, with_echo_area_buffer_unwind_data (w)); -- 2.39.5