Skip to content

Commit

Permalink
Fix info buffer header-line-format
Browse files Browse the repository at this point in the history
Backwards compatible derived-mode-p usage
  • Loading branch information
danielpetterssonm authored and svaante committed Apr 16, 2024
1 parent 729cfdd commit 9f4df93
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dape.el
Original file line number Diff line number Diff line change
Expand Up @@ -3224,7 +3224,7 @@ displayed."
(unless (seq-find (lambda (buffer)
(and (get-buffer-window buffer)
(with-current-buffer buffer
(derived-mode-p group))))
(apply 'derived-mode-p group))))
(dape--info-buffer-list))
(setq buffer-displayed-p t)
(dape--display-buffer
Expand Down Expand Up @@ -3255,7 +3255,8 @@ displayed."
"Store related buffers in `dape--info-buffer-related'."
(setq dape--info-buffer-related
(cl-loop with group =
(cl-find-if 'derived-mode-p
(cl-find-if (lambda (group)
(apply 'derived-mode-p group))
dape-info-buffer-window-groups)
with conn = (dape--live-connection 'stopped t)
with scopes = (plist-get (dape--current-stack-frame conn)
Expand Down

0 comments on commit 9f4df93

Please sign in to comment.