Skip to content

Commit

Permalink
Introduce cider-stacktrace-navigate-to-other-window defcustom
Browse files Browse the repository at this point in the history
  • Loading branch information
vemv committed Aug 22, 2023
1 parent eee1746 commit 62b6319
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cider-stacktrace.el
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,12 @@ Achieved by destructively manipulating `cider-stacktrace-suppressed-errors'."
(button-put button 'help-echo "Click to promote these stacktraces."))
(button-put button 'suppressed (not suppressed)))))

(defcustom cider-stacktrace-navigate-to-other-window t
"If truthy, navigating from a stack frame will use other window.
Pick nil if you prefer the same window as *cider-error*."
:type 'boolean
:package-version '(cider . "1.8.0"))

(defun cider-stacktrace-navigate (button)
"Navigate to the stack frame source represented by the BUTTON."
(let* ((var (button-get button 'var))
Expand Down

0 comments on commit 62b6319

Please sign in to comment.