[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master b961af6: Fix fancy-about-screen point placement

From: Lars Ingebrigtsen
Subject: master b961af6: Fix fancy-about-screen point placement
Date: Sun, 5 Dec 2021 14:54:55 -0500 (EST)

branch: master
commit b961af66b9e8c4ccc8efee0401231e1a8ff42c77
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Fix fancy-about-screen point placement
    * lisp/startup.el (fancy-about-screen): Make point placement more
    resilient (bug#43636).
 lisp/startup.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/startup.el b/lisp/startup.el
index 8ea7a5b..e5e6b07 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -1989,8 +1989,9 @@ splash screen in another window."
       (setq-local browse-url-browser-function 'eww-browse-url)
       (setq tab-width 22)
       (setq buffer-read-only t)
+      ;; Place point somewhere it doesn't cover a character.
       (goto-char (point-min))
-      (forward-line 3))))
+      (re-search-forward "\n$" nil nil 2))))
 (defun fancy-splash-frame ()
   "Return the frame to use for the fancy splash screen.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]