@@ -565,6 +565,8 @@ instead of just its \"value\" entry."
565
565
result
566
566
(nrepl-dict-get result " value" ))))
567
567
568
+ (declare-function cider-set-buffer-ns " cider-mode" )
569
+
568
570
; ; Render Inspector from Structured Values
569
571
(defun cider-inspector--render-value (dict-or-value &optional v2 )
570
572
" Render DICT-OR-VALUE, depending on V2."
@@ -575,6 +577,7 @@ instead of just its \"value\" entry."
575
577
(nrepl-dict-get dict-or-value " doc-fragments" )))
576
578
(block-tags (when v2
577
579
(nrepl-dict-get dict-or-value " doc-block-tags-fragments" )))
580
+ (ns (cider-current-ns))
578
581
(font-size (when-let* ((b (get-buffer cider-inspector-buffer))
579
582
(variable 'text-scale-mode-amount )
580
583
(continue (local-variable-p variable b)))
@@ -593,24 +596,25 @@ instead of just its \"value\" entry."
593
596
:truncate-lines-defined truncate-lines-defined
594
597
:truncate-lines-p truncate-lines-p
595
598
:fragments fragments
596
- :block-tags block-tags))
597
- (cider-popup-buffer-display cider-inspector-buffer cider-inspector-auto-select-buffer)
598
- (when cider-inspector-fill-frame (delete-other-windows ))
599
- (ignore-errors (cider-inspector-next-inspectable-object 1 ))
600
- (with-current-buffer cider-inspector-buffer
601
- (when (eq cider-inspector-last-command 'cider-inspector-pop )
602
- (setq cider-inspector-last-command nil )
603
- ; ; Prevents error message being displayed when we try to pop
604
- ; ; from the top-level of a data structure
605
- (when cider-inspector-location-stack
606
- (goto-char (pop cider-inspector-location-stack))))
607
-
608
- (when (eq cider-inspector-last-command 'cider-inspector-prev-page )
609
- (setq cider-inspector-last-command nil )
610
- ; ; Prevents error message being displayed when we try to
611
- ; ; go to a prev-page from the first page
612
- (when cider-inspector-page-location-stack
613
- (goto-char (pop cider-inspector-page-location-stack))))))
599
+ :block-tags block-tags)
600
+ (cider-popup-buffer-display cider-inspector-buffer cider-inspector-auto-select-buffer)
601
+ (when cider-inspector-fill-frame (delete-other-windows ))
602
+ (ignore-errors (cider-inspector-next-inspectable-object 1 ))
603
+ (with-current-buffer cider-inspector-buffer
604
+ (cider-set-buffer-ns ns)
605
+ (when (eq cider-inspector-last-command 'cider-inspector-pop )
606
+ (setq cider-inspector-last-command nil )
607
+ ; ; Prevents error message being displayed when we try to pop
608
+ ; ; from the top-level of a data structure
609
+ (when cider-inspector-location-stack
610
+ (goto-char (pop cider-inspector-location-stack))))
611
+
612
+ (when (eq cider-inspector-last-command 'cider-inspector-prev-page )
613
+ (setq cider-inspector-last-command nil )
614
+ ; ; Prevents error message being displayed when we try to
615
+ ; ; go to a prev-page from the first page
616
+ (when cider-inspector-page-location-stack
617
+ (goto-char (pop cider-inspector-page-location-stack)))))))
614
618
615
619
(cl-defun cider-inspector-render (buffer str &key font-size truncate-lines-defined truncate-lines-p fragments block-tags )
616
620
" Render STR in BUFFER."
0 commit comments