@@ -959,14 +959,16 @@ Inf-Clojure will create a log file in the project folder named
959
959
`inf-clojure--log-file-name' and dump the process activity in it
960
960
in case this is not nil." )
961
961
962
- (defun inf-clojure--log-string (string &optional type )
962
+ (defun inf-clojure--log-string (string &optional tag )
963
963
" Log STRING to file, according to `inf-clojure-log-response' .
964
964
The optional TYPE will be converted to string and printed before
965
965
STRING if present."
966
966
(when inf-clojure-log-activity
967
967
(write-region (concat " \n "
968
- (when type
969
- (concat (prin1-to-string type) " | " ))
968
+ (when tag
969
+ (if (stringp tag)
970
+ (concat tag " \n " )
971
+ (concat (prin1-to-string tag) " \n " )))
970
972
(let ((print-escape-newlines t ))
971
973
(prin1-to-string string)))
972
974
nil
@@ -985,7 +987,7 @@ string will start from (point) in the results buffer. If
985
987
END-STRING is nil, the result string will end at (point-max) in
986
988
the results buffer. It cuts out the output from and including
987
989
the `inf-clojure-prompt`."
988
- (inf-clojure--log-string command :cmd )
990
+ (inf-clojure--log-string command " ----CMD-> " )
989
991
(let ((work-buffer inf-clojure--redirect-buffer-name))
990
992
(save-excursion
991
993
(set-buffer (get-buffer-create work-buffer))
@@ -1008,7 +1010,7 @@ the `inf-clojure-prompt`."
1008
1010
(prompt (when (search-forward inf-clojure-prompt nil t )
1009
1011
(match-beginning 0 )))
1010
1012
(buffer-string (buffer-substring-no-properties beg (or prompt end))))
1011
- (inf-clojure--log-string buffer-string :res )
1013
+ (inf-clojure--log-string buffer-string " <-RES---- " )
1012
1014
buffer-string))))
1013
1015
1014
1016
(defun inf-clojure--nil-string-match-p (string )
0 commit comments