File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## master (unreleased)
4
4
5
+ ### Bugs fixed
6
+
7
+ - Inspector: avoid ` Symbol's value as variable is void: text-scale-mode-amount ` under certain Emacs clients.
8
+
5
9
## 1.8.3 (2023-10-18)
6
10
7
11
### Changes
Original file line number Diff line number Diff line change @@ -388,11 +388,13 @@ MAX-COLL-SIZE if non nil."
388
388
; ; Render Inspector from Structured Values
389
389
(defun cider-inspector--render-value (value )
390
390
" Render VALUE."
391
- (let ((font-size (when-let ((b (get-buffer cider-inspector-buffer)))
391
+ (let ((font-size (when-let* ((b (get-buffer cider-inspector-buffer))
392
+ (variable 'text-scale-mode-amount )
393
+ (continue (local-variable-p variable b)))
392
394
; ; The font size is lost between inspector 'screens',
393
395
; ; because on each re-rendering, we wipe everything, including the mode.
394
396
; ; Enabling cider-inspector-mode is the specific step that loses the font size.
395
- (buffer-local-value 'text-scale-mode-amount b))))
397
+ (buffer-local-value variable b))))
396
398
(cider-make-popup-buffer cider-inspector-buffer 'cider-inspector-mode 'ancillary )
397
399
(cider-inspector-render cider-inspector-buffer value font-size))
398
400
(cider-popup-buffer-display cider-inspector-buffer cider-inspector-auto-select-buffer)
You can’t perform that action at this time.
0 commit comments