From: Eli Zaretskii Date: Tue, 5 Feb 2002 18:09:13 +0000 (+0000) Subject: (gud-refresh): Call recenter only after we are sure we X-Git-Tag: emacs-21.2~119 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a8b2ae4ff0e16a6025d5e0ada51aaca56d2b62b2;p=emacs.git (gud-refresh): Call recenter only after we are sure we are in the right window. --- diff --git a/lisp/gud.el b/lisp/gud.el index b03f2099059..b1f7ff1886d 100644 --- a/lisp/gud.el +++ b/lisp/gud.el @@ -2335,9 +2335,9 @@ Obeying it means displaying in another window the specified file and line." (defun gud-refresh (&optional arg) "Fix up a possibly garbled display, and redraw the arrow." (interactive "P") - (recenter arg) (or gud-last-frame (setq gud-last-frame gud-last-last-frame)) - (gud-display-frame)) + (gud-display-frame) + (recenter arg)) ;;; Code for parsing expressions out of C code. The single entry point is ;;; find-c-expr, which tries to return an lvalue expression from around point.