Skip to content

Commit

Permalink
Fix some mistakes from rebase onto master
Browse files Browse the repository at this point in the history
The rebase is to sync up with master now that the hash-lang branch is
merged.

Now we can resume working on pdb, including testing how it works with
the new racket-hash-lang-mode as well as racket-mode.
  • Loading branch information
greghendershott committed Nov 9, 2023
1 parent d54e2d4 commit d75f356
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions racket-pdb.el
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ this mode."
(racket-pdb-mode -1)
(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
(setq-local racket-submodules-at-point-function
#'racket-pdb-submodules-at-point))))
(t
(setq-local racket--submod-path-function nil)
(setq-local racket-submodules-at-point-function nil)
(racket-show nil)
(racket--pdb-remove-all-face-overlays)
(remove-hook 'after-change-functions
Expand Down
3 changes: 0 additions & 3 deletions racket-util.el
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ The \"project\" is determined by trying, in order:
(cdr (project-current nil dir)))
dir)))

<<<<<<< HEAD
(defun racket--edit-mode-p ()
(and (seq-some #'derived-mode-p '(racket-mode racket-hash-lang-mode)) t))

Expand All @@ -167,7 +166,6 @@ The \"project\" is determined by trying, in order:
(unless (derived-mode-p 'racket-mode)
(user-error "%S works only in racket-mode edit buffers"
this-command)))
=======
(defun racket--property-bounds (pos prop)
(when-let (val (get-text-property pos prop))
(let* ((prev-pos (previous-single-property-change pos prop))
Expand All @@ -180,7 +178,6 @@ The \"project\" is determined by trying, in order:
(if (equal val next-val)
next-pos
pos))))) ;pos is last char having prop val
>>>>>>> Initial commit to use "pdb" when available for check-syntax

(provide 'racket-util)

Expand Down

0 comments on commit d75f356

Please sign in to comment.