Skip to content

Commit

Permalink
Set submod function only after pdb-available responds
Browse files Browse the repository at this point in the history
  • Loading branch information
greghendershott committed Nov 9, 2023
1 parent 4c446ea commit d54e2d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions racket-pdb.el
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ this mode."
(lambda (response)
(unless response
(racket-pdb-mode -1)
(user-error "The `pdb` package is not available so racket-pdb-mode cannot be used; use racket-xp-mode instead"))
(racket-pdb-analyze)))
(setq-local racket--submod-path-function
#'racket-pdb-submodules-at-point))
(user-error "The Racket package `pdb` is not available so racket-pdb-mode cannot be used; instead maybe use racket-xp-mode"))
(racket-pdb-analyze)
(setq-local racket--submod-path-function
#'racket-pdb-submodules-at-point))))
(t
(setq-local racket--submod-path-function nil)
(racket-show nil)
Expand Down

0 comments on commit d54e2d4

Please sign in to comment.