105
105
106
106
;;;### autoload
107
107
(defun run-ts (cmd &optional dont-switch-p )
108
- " Run an inferior Typescript process, input and output via buffer `*ts*' .
109
- If there is a process already running in `*ts*' , switch to that buffer.
110
- With argument, allows you to edit the command line (default is value
111
- of `ts-comint-program-command' ).
112
- Runs the hook `ts-comint-mode-hook' \( after the `comint-mode-hook'
113
- is run).
114
- \( Type \\ [describe-mode] in the process buffer for a list of commands.)"
108
+ " Run an inferior Typescript process, via buffer `*Typescript*' .
109
+ If there is a process already running in `*Typescript*' , switch
110
+ to that buffer. With argument `CMD' , allows you to edit the
111
+ command line (default is value of `ts-comint-program-command' ).
112
+ Runs the hook `ts-comint-mode-hook' \( after the
113
+ `comint-mode-hook' is run). \( Type \\ [describe-mode] in the
114
+ process buffer for a list of commands). Use `DONT-SWITCH-P' to
115
+ prevent switching to the new buffer once created."
115
116
(interactive
116
117
(list
117
118
(when current-prefix-arg
@@ -166,7 +167,6 @@ is run).
166
167
(interactive " r" )
167
168
(run-ts ts-comint-program-command t )
168
169
(comint-send-region ts-comint-buffer start end)
169
- ; ; (comint-send-string ts-comint-buffer "\n")
170
170
(switch-to-ts ts-comint-buffer))
171
171
172
172
;;;### autoload
@@ -206,15 +206,15 @@ is run).
206
206
207
207
;;;### autoload
208
208
(defun ts-load-file (filename )
209
- " Load a file in the Typescript interpreter."
209
+ " Load file `FILENAME' in the Typescript interpreter."
210
210
(interactive " f" )
211
211
(let ((filename (expand-file-name filename)))
212
212
(run-ts ts-comint-program-command t )
213
213
(comint-send-string ts-comint-buffer (ts--guess-load-file-cmd filename))))
214
214
215
215
;;;### autoload
216
216
(defun ts-load-file-and-go (filename )
217
- " Load a file in the Typescript interpreter."
217
+ " Load file `FILENAME' in the Typescript interpreter."
218
218
(interactive " f" )
219
219
(let ((filename (expand-file-name filename)))
220
220
(run-ts ts-comint-program-command t )
@@ -224,7 +224,7 @@ is run).
224
224
;;;### autoload
225
225
(defun switch-to-ts (eob-p )
226
226
" Switch to the Typescript process buffer.
227
- With argument, position cursor at end of buffer."
227
+ With argument `EOB-P' , position cursor at end of buffer."
228
228
(interactive " P" )
229
229
(if (and ts-comint-buffer (get-buffer ts-comint-buffer))
230
230
(pop-to-buffer ts-comint-buffer)
0 commit comments