Skip to content

Commit 6df7559

Browse files
Fix default for racket-browse-url-function
Because browse-url can, for a file:// URL, open an HTML source file in a buffer, instead use browse-url-browser-function.
1 parent b6db517 commit 6df7559

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

doc/racket-mode.texi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3205,7 +3205,7 @@ The following values will @emph{not} work:
32053205
Function to call to browse a URL@.
32063206

32073207
Defaults to @ref{racket-browse-url-using-temporary-file} on macOS and
3208-
@code{browse-url} on other platforms.
3208+
@code{browse-url-browser-function} on other platforms.
32093209

32103210
@node racket-xp-after-change-refresh-delay
32113211
@subsection racket-xp-after-change-refresh-delay

racket-custom.el

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
;;; This makes it easier to provide a consistent UI.
1313

1414
(require 'rx)
15-
(require 'sh-script) ;for sh-heredoc face
16-
(require 'comint) ;for comint-simple-send in racket-shell-or-terminal
1715
(require 'seq)
16+
(require 'sh-script) ;for sh-heredoc face
17+
(require 'comint) ;for `comint-simple-send' in racket-shell-or-terminal
18+
(require 'browse-url) ;for `browse-url-browser-function'.
1819

1920
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2021
;;; racket group
@@ -68,11 +69,11 @@ their response asychronously."
6869
(defcustom racket-browse-url-function
6970
(if racket--macp
7071
'racket-browse-url-using-temporary-file
71-
'browse-url)
72+
browse-url-browser-function)
7273
"Function to call to browse a URL.
7374
7475
Defaults to `racket-browse-url-using-temporary-file' on macOS and
75-
`browse-url' on other platforms."
76+
`browse-url-browser-function' on other platforms."
7677
:type 'function
7778
:risky t)
7879

0 commit comments

Comments
 (0)