File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -885,6 +885,7 @@ Keyboard shortcut | Description
885
885
<kbd >o</kbd > | Move out of the current sexp (like ` up-list ` )
886
886
<kbd >i</kbd > | Inject a value into running code
887
887
<kbd >e</kbd > | Eval code in current context
888
+ <kbd >l</kbd > | List local variables
888
889
<kbd >q</kbd > | Quit execution
889
890
890
891
### Managing multiple sessions
Original file line number Diff line number Diff line change @@ -114,14 +114,16 @@ Can be toggled while debugging with `l'.")
114
114
(defun cider--debug-format-locals-list (locals )
115
115
" Return a string description of list LOCALS.
116
116
Each element of LOCALS should be a list of at least two elements."
117
- (let ((left-col-width
118
- ; ; To right-indent the variable names.
119
- (apply #'max (mapcar (lambda (l ) (string-width (car l))) locals))))
120
- ; ; A format string to build a format string. :-P
121
- (mapconcat (lambda (l ) (format (format " %%%d s: %% s\n " left-col-width)
122
- (propertize (car l) 'face 'font-lock-variable-name-face )
123
- (cider-font-lock-as-clojure (cadr l))))
124
- locals " " )))
117
+ (if locals
118
+ (let ((left-col-width
119
+ ; ; To right-indent the variable names.
120
+ (apply #'max (mapcar (lambda (l ) (string-width (car l))) locals))))
121
+ ; ; A format string to build a format string. :-P
122
+ (mapconcat (lambda (l ) (format (format " %%%d s: %% s\n " left-col-width)
123
+ (propertize (car l) 'face 'font-lock-variable-name-face )
124
+ (cider-font-lock-as-clojure (cadr l))))
125
+ locals " " ))
126
+ " " ))
125
127
126
128
(defun cider--debug-read-command (command-list value prompt locals )
127
129
" Receive input from the user representing a command to do.
You can’t perform that action at this time.
0 commit comments