From: Eli Zaretskii Date: Mon, 14 Dec 2020 18:09:04 +0000 (+0200) Subject: Fix point location when completing in gdb-mi.el X-Git-Tag: emacs-27.1.90~6 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=668f0a7f847264dbc9549aeb2d42b967e25eef5f;p=emacs.git 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) --- 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