Skip to content

Commit 9808d2c

Browse files
committed
add sent-string-to-listener
1 parent d96c328 commit 9808d2c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

extensions/lisp-mode/internal-package.lisp

+1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
:lisp-switch-to-repl-buffer
9393
:write-string-to-repl
9494
:copy-down-to-repl
95+
:send-string-to-listener
9596
;; apropos-mode.lisp
9697
:apropos-headline-attribute
9798
:*lisp-apropos-mode-keymap*

extensions/lisp-mode/repl.lisp

+6
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,12 @@
262262
string
263263
(string #\newline))))))
264264

265+
(defun send-string-to-listener (string)
266+
(lisp-switch-to-repl-buffer)
267+
(buffer-end (current-point))
268+
(insert-string (current-point) string)
269+
(lem/listener-mode:listener-return))
270+
265271
(define-command start-lisp-repl (&optional (use-this-window nil)) ("P")
266272
(check-connection)
267273
(flet ((switch (buffer split-window-p)

0 commit comments

Comments
 (0)