@@ -144,6 +144,43 @@ as returned by `nrepl-connect'. ")
144
144
" Name of the buffer to use as REPL buffer.
145
145
In case of a special value 'new, a new buffer is created." )
146
146
147
+
148
+ ; ;; Buffer Local Declarations
149
+
150
+ ; ; These variables are used to track the state of nREPL connections
151
+ (defvar-local nrepl-connection-buffer nil )
152
+ (defvar-local nrepl-server-buffer nil )
153
+ (defvar-local nrepl-repl-buffer nil )
154
+ (defvar-local nrepl-endpoint nil )
155
+ (defvar-local nrepl-project-dir nil )
156
+ (defvar-local nrepl-tunnel-buffer nil )
157
+
158
+ (defvar-local nrepl-session nil
159
+ " Current nREPL session id." )
160
+
161
+ (defvar-local nrepl-tooling-session nil
162
+ " Current nREPL tooling session id.
163
+ To be used for tooling calls (i.e. completion, eldoc, etc)" )
164
+
165
+ (defvar-local nrepl-request-counter 0
166
+ " Continuation serial number counter." )
167
+
168
+ (defvar-local nrepl-pending-requests nil )
169
+
170
+ (defvar-local nrepl-completed-requests nil )
171
+
172
+ (defvar-local nrepl-last-sync-response nil
173
+ " Result of the last sync request." )
174
+
175
+ (defvar-local nrepl-last-sync-request-timestamp nil
176
+ " The time when the last sync request was initiated." )
177
+
178
+ (defvar-local nrepl-ops nil
179
+ " Available nREPL server ops (from describe)." )
180
+
181
+ (defvar-local nrepl-versions nil
182
+ " Version information received from the describe op." )
183
+
147
184
148
185
; ;; nREPL Buffer Names
149
186
@@ -208,43 +245,6 @@ PROJECT-DIR, HOST and PORT are as in `nrepl-make-buffer-name'."
208
245
(nrepl-make-buffer-name nrepl-tunnel-buffer-name-template
209
246
project-dir host port)))
210
247
211
-
212
- ; ;; Buffer Local Declarations
213
-
214
- ; ; These variables are used to track the state of nREPL connections
215
- (defvar-local nrepl-connection-buffer nil )
216
- (defvar-local nrepl-server-buffer nil )
217
- (defvar-local nrepl-repl-buffer nil )
218
- (defvar-local nrepl-endpoint nil )
219
- (defvar-local nrepl-project-dir nil )
220
- (defvar-local nrepl-tunnel-buffer nil )
221
-
222
- (defvar-local nrepl-session nil
223
- " Current nREPL session id." )
224
-
225
- (defvar-local nrepl-tooling-session nil
226
- " Current nREPL tooling session id.
227
- To be used for tooling calls (i.e. completion, eldoc, etc)" )
228
-
229
- (defvar-local nrepl-request-counter 0
230
- " Continuation serial number counter." )
231
-
232
- (defvar-local nrepl-pending-requests nil )
233
-
234
- (defvar-local nrepl-completed-requests nil )
235
-
236
- (defvar-local nrepl-last-sync-response nil
237
- " Result of the last sync request." )
238
-
239
- (defvar-local nrepl-last-sync-request-timestamp nil
240
- " The time when the last sync request was initiated." )
241
-
242
- (defvar-local nrepl-ops nil
243
- " Available nREPL server ops (from describe)." )
244
-
245
- (defvar-local nrepl-versions nil
246
- " Version information received from the describe op." )
247
-
248
248
249
249
; ;; Utilities
250
250
(defmacro nrepl-dbind-response (response keys &rest body )
0 commit comments