emacs-devel
[Top][All Lists]
Advanced

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

Re: Should fancy-startup-screen really set browse-url-browser-function?


From: Juri Linkov
Subject: Re: Should fancy-startup-screen really set browse-url-browser-function?
Date: Thu, 09 Dec 2021 19:09:47 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)

> Should fancy-startup-screen (and major modes in general) really override
> browse-url-browser-function?

Maybe this would be better?

diff --git a/lisp/startup.el b/lisp/startup.el
index 3ac7532053..70c95af88f 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -2276,7 +2276,9 @@ normal-about-screen
   (insert "\tHow to report bugs and contribute improvements to Emacs\n\n")
 
   (insert-button "GNU and Freedom"
-                'action (lambda (_button) (describe-gnu-project))
+                'action (lambda (_button)
+                           (let ((browse-url-browser-function 'eww-browse-url))
+                             (describe-gnu-project)))
                 'follow-link t)
   (insert "\t\tWhy we developed GNU Emacs and the GNU system\n")
 
-- 

etc.



reply via email to

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