Skip to content

Commit ad53f5b

Browse files
committed
Fix some comments and docstrings
1 parent a02cca8 commit ad53f5b

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

nrepl-client.el

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
;; A connection is an abstract idea of the communication between Emacs (client)
3232
;; and nREPL server. On Emacs side connections are represented by two running
3333
;; processes. The two processes are the server process and client process. Each
34-
;; of these is represented by it's own process buffer, filter and sentinel.
34+
;; of these is represented by its own process buffer, filter and sentinel.
3535
;;
3636
;; The nREPL communication process can be broadly represented as follows:
3737
;;
@@ -207,7 +207,7 @@ The name will include the project name if available or the endpoint host if
207207
it is not. The name will also include the connection port if
208208
`nrepl-buffer-name-show-port' is true.
209209
210-
If optional DUP-OK is non-nil, the returned buffer is not \"uniquefied\" by
210+
If optional DUP-OK is non-nil, the returned buffer is not \"uniquified\" by
211211
`generate-new-buffer-name'."
212212
(let* ((project-name (nrepl--project-name (or project-dir nrepl-project-dir)))
213213
(nrepl-proj-port (or port (cadr nrepl-endpoint)))
@@ -409,7 +409,7 @@ FN must accept two arguments key and value."
409409
"Join nREPL dicts DICT1 and DICT2 in a meaningful way.
410410
String values for non \"id\" and \"session\" keys are concatenated. Lists
411411
are appended. nREPL dicts merged recursively. All other objects are
412-
accumulated accumulated into a list. DICT1 is modified destructively and
412+
accumulated into a list. DICT1 is modified destructively and
413413
then returned."
414414
(if no-join
415415
(or dict1 dict2)
@@ -827,12 +827,12 @@ and 'status'.
827827
828828
The presence of a particular key determines the type of the response. For
829829
example, if 'value' key is present, the response is of type 'value', if
830-
'out' key is present the response is 'stdout' etc. Depending on the typea,
830+
'out' key is present the response is 'stdout' etc. Depending on the type,
831831
the handler dispatches the appropriate value to one of the supplied
832832
handlers: VALUE-HANDLER, STDOUT-HANDLER, STDERR-HANDLER, DONE-HANDLER, and
833833
EVAL-ERROR-HANDLER. If the optional EVAL-ERROR-HANDLER is nil, the default
834834
`nrepl-err-handler' is used. If any of the other supplied handlers are nil
835-
nothing happens for the coresponding type of response.
835+
nothing happens for the corresponding type of response.
836836
837837
When `nrepl-log-messages' is non-nil, *nrepl-messages* buffer contains
838838
server responses."
@@ -1118,11 +1118,11 @@ memory burden, while providing reasonable history.")
11181118

11191119
(defconst nrepl-message-buffer-reduce-denominator 4
11201120
"Divisor by which to reduce message buffer size.
1121-
When the maximum size for the nREPL message buffer is exceed, the
1122-
size of the buffer is reduced by one over this value. Defaults
1123-
to 4, so that 1/4 of the buffer is removed, which should ensure
1124-
the buffer's maximum is reasonably utilised, while limiting the
1125-
number of buffer shrinking operations.")
1121+
When the maximum size for the nREPL message buffer is exceeded, the size of
1122+
the buffer is reduced by one over this value. Defaults to 4, so that 1/4
1123+
of the buffer is removed, which should ensure the buffer's maximum is
1124+
reasonably utilised, while limiting the number of buffer shrinking
1125+
operations.")
11261126

11271127
(defvar nrepl-messages-mode-map
11281128
(let ((map (make-sparse-keymap)))
@@ -1248,7 +1248,7 @@ Purge the dead buffers from the `nrepl-connection-list' beforehand."
12481248
;; the connection list, same holds for `cider-rotate-connection'.
12491249
(defun nrepl-make-connection-default (connection-buffer)
12501250
"Make the nREPL CONNECTION-BUFFER the default connection.
1251-
Moves CONNECITON-BUFFER to the front of `nrepl-connection-list'."
1251+
Moves CONNECTION-BUFFER to the front of `nrepl-connection-list'."
12521252
(interactive (list nrepl-connection-buffer))
12531253
(if connection-buffer
12541254
;; maintain the connection list in most recently used order
@@ -1259,8 +1259,8 @@ Moves CONNECITON-BUFFER to the front of `nrepl-connection-list'."
12591259
(message "Not in an nREPL REPL buffer.")))
12601260

12611261
(defun nrepl--close-connection-buffer (conn-buffer)
1262-
"Closes CONN-BUFFER, removing it from `nrepl-connection-list'.
1263-
Also closes associated REPL and server buffers."
1262+
"Close CONN-BUFFER, removing it from `nrepl-connection-list'.
1263+
Also close associated REPL and server buffers."
12641264
(let ((buffer (get-buffer conn-buffer)))
12651265
(setq nrepl-connection-list
12661266
(delq (buffer-name buffer) nrepl-connection-list))

0 commit comments

Comments
 (0)