Skip to content

Commit

Permalink
add sent-string-to-listener
Browse files Browse the repository at this point in the history
  • Loading branch information
cxxxr committed Aug 15, 2023
1 parent d96c328 commit 9808d2c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions extensions/lisp-mode/internal-package.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
:lisp-switch-to-repl-buffer
:write-string-to-repl
:copy-down-to-repl
:send-string-to-listener
;; apropos-mode.lisp
:apropos-headline-attribute
:*lisp-apropos-mode-keymap*
Expand Down
6 changes: 6 additions & 0 deletions extensions/lisp-mode/repl.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,12 @@
string
(string #\newline))))))

(defun send-string-to-listener (string)
(lisp-switch-to-repl-buffer)
(buffer-end (current-point))
(insert-string (current-point) string)
(lem/listener-mode:listener-return))

(define-command start-lisp-repl (&optional (use-this-window nil)) ("P")
(check-connection)
(flet ((switch (buffer split-window-p)
Expand Down

0 comments on commit 9808d2c

Please sign in to comment.