From 668f0a7f847264dbc9549aeb2d42b967e25eef5f Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 14 Dec 2020 20:09:04 +0200 Subject: [PATCH] Fix point location when completing in gdb-mi.el * lisp/progmodes/gdb-mi.el (def-gdb-auto-update-handler): Don't force window-start position, so that redisplay doesn't move point when popping completion window below the GUD one. (Bug#45052) --- lisp/progmodes/gdb-mi.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el index e785acd2840..2162df44f2b 100644 --- a/lisp/progmodes/gdb-mi.el +++ b/lisp/progmodes/gdb-mi.el @@ -2891,7 +2891,7 @@ If NOPRESERVE is non-nil, window point is not restored after CUSTOM-DEFUN." (,custom-defun) (gdb-update-buffer-name) ,@(when (not nopreserve) - '((set-window-start window start) + '((set-window-start window start t) (set-window-point window p)))))) (defmacro def-gdb-trigger-and-handler (trigger-name gdb-command -- 2.39.2