File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -521,6 +521,9 @@ DEBUG-SESSION is the debug session triggering the event."
521521 :init-value nil
522522 :global t
523523 :require 'dap-ui
524+ (unless (and (fboundp 'posframe-show )
525+ (fboundp 'posframe-hide ))
526+ (error " Displaying DAP controls requires that the posframe Emacs package is installed " ))
524527 (cond
525528 (dap-ui-controls-mode
526529 (add-hook 'dap-session-changed-hook 'dap-ui--update-controls )
@@ -537,8 +540,7 @@ DEBUG-SESSION is the debug session triggering the event."
537540 (remove-hook 'dap-continue-hook 'dap-ui--update-controls )
538541 (remove-hook 'dap-stack-frame-changed-hook 'dap-ui--update-controls )
539542 (setq posframe-mouse-banish t )
540- (when (fboundp 'posframe-hide )
541- (posframe-hide dap-ui--control-buffer)))))
543+ (posframe-hide dap-ui--control-buffer))))
542544
543545
544546; ; sessions
You can’t perform that action at this time.
0 commit comments