all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Should fancy-startup-screen really set browse-url-browser-function?
@ 2021-12-09 14:07 John Ankarström
  2021-12-09 17:09 ` Juri Linkov
  0 siblings, 1 reply; 3+ messages in thread
From: John Ankarström @ 2021-12-09 14:07 UTC (permalink / raw)
  To: emacs-devel

The startup screen for GUI Emacs (fancy-startup-screen) apparently sets
browse-url-browser-function to eww-browse-url. The setting is
buffer-local, but it affects any commands that the user might manually
run from the startup screen.

For example, I have a command that I use for searching the web:

(defun misc-search-web (query)
 "Search the web with `browse-url'."
 (interactive "sQuery: ")
 (browse-url (format "https://www.google.com/search?q=%s&ie=UTF-8&gbv=1"
                     (url-encode-url query))))

It is bound to C-c w, and I make frequent use of it, but I have been
surprised that it opens eww sometimes (namely, when the startup screen
is active).

When users ask how to set the default browser for Emacs, they're often
told to customize browse-url-browser-function, but there's no mention in
the docstring of the fact that this variable is commonly(?) overridden.

(I say "commonly" not because I know it is common, but because the
built-in startup screen does so, which sets an example for others to
follow.)

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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-12-10  0:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-09 14:07 Should fancy-startup-screen really set browse-url-browser-function? John Ankarström
2021-12-09 17:09 ` Juri Linkov
2021-12-10  0:41   ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.