Skip to content

Commit

Permalink
Allow racket-pdb-mode in either edit mode
Browse files Browse the repository at this point in the history
  • Loading branch information
greghendershott committed Nov 9, 2023
1 parent 7641e77 commit bacefcf
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions racket-pdb.el
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ documentation for `racket-xp-mode', most of which is relevant to
this mode."
:lighter racket-pdb-mode-lighter
:keymap racket-pdb-mode-map
(unless (eq major-mode 'racket-mode)
(setq racket-pdb-mode nil)
(user-error "racket-pdb-mode only works with racket-mode buffers"))
(racket--assert-edit-mode)
;; Enabling both `racket-pdb-mode' and `racket-xp-mode' isn't
;; supported so automatically disable latter.
(when (bound-and-true-p racket-xp-mode)
Expand Down Expand Up @@ -253,8 +251,7 @@ this mode."
;; 5. Experimental: Maybe set font-lock-face for
;; "semantic highlighting". Do so only when
;; font-lock-defaults is nil, which is the case
;; e.g. when the minor mode `racket-hash-lang-mode'
;; is enhancing `racket-mode' buffers and is doing
;; e.g. for `racket-hash-lang-mode', which does
;; font-lock only for the lang's lexer tokens.
;;
;; Note that font-lock-face -- not face -- is
Expand Down

0 comments on commit bacefcf

Please sign in to comment.