]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/warnings.el: Fix 'warning-display-at-bottom'.
authorJuri Linkov <juri@linkov.net>
Thu, 2 May 2024 06:53:06 +0000 (09:53 +0300)
committerEshel Yaron <me@eshelyaron.com>
Mon, 6 May 2024 16:33:20 +0000 (18:33 +0200)
(display-warning): Move point to the beginning of the last line
instead of its end for 'warning-display-at-bottom' (bug#69983).

(cherry picked from commit 592873a52d00fa46bcf63b0dd38073f038ecb935)

lisp/emacs-lisp/warnings.el

index 6a1187fdb0fe01e536422753b10d0b7e2d5d8dfa..8c1e43934ff565e0085254266fe4f0f0b93a3916 100644 (file)
@@ -383,7 +383,7 @@ entirely by setting `warning-suppress-types' or
                       (when warning-display-at-bottom
                         (with-selected-window window
                           (goto-char (point-max))
-                          (set-window-point window (1- (point-max)))
+                          (forward-line -1)
                           (recenter -1)))
                       (sit-for 0)))))))))
 \f