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