From: Lars Ingebrigtsen Date: Sun, 5 Dec 2021 19:53:47 +0000 (+0100) Subject: Fix fancy-about-screen point placement X-Git-Tag: emacs-29.0.90~3612^2~3^2~10 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b961af66b9e8c4ccc8efee0401231e1a8ff42c77;p=emacs.git Fix fancy-about-screen point placement * lisp/startup.el (fancy-about-screen): Make point placement more resilient (bug#43636). --- diff --git a/lisp/startup.el b/lisp/startup.el index 8ea7a5b392d..e5e6b07b4d4 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.