mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 02:30:42 -08:00
clog-builder-repl command added to clog repl
This commit is contained in:
parent
a9d0ce3c43
commit
abe677a983
1 changed files with 17 additions and 11 deletions
|
|
@ -141,8 +141,6 @@ clog-builder window.")
|
|||
(setf (hiddenp (copy-history-win app)) nil)
|
||||
(window-focus (copy-history-win app)))
|
||||
(let* ((win (create-gui-window obj :title "Copy History"
|
||||
:left 225
|
||||
:top 480
|
||||
:height 400 :width 600
|
||||
:has-pinner t :client-movement *client-side-movement*)))
|
||||
(window-center win)
|
||||
|
|
@ -254,6 +252,14 @@ clog-builder window.")
|
|||
(on-open-console panel)))
|
||||
|
||||
(defun repl-on-commmand (panel target data)
|
||||
(if (equalp data "(clog-builder-repl)")
|
||||
(let* ((*default-title-class* *builder-title-class*)
|
||||
(*default-border-class* *builder-border-class*)
|
||||
(win (create-gui-window panel :title "CLOG Builder REPL GUI Window"
|
||||
:height 400 :width 600
|
||||
:has-pinner t
|
||||
:client-movement *client-side-movement*)))
|
||||
(setf clog-user::*body* (window-content win)))
|
||||
(multiple-value-bind (result new-package)
|
||||
(capture-eval data :clog-obj panel
|
||||
:capture-console (not *clog-repl-use-console*)
|
||||
|
|
@ -261,7 +267,7 @@ clog-builder window.")
|
|||
:eval-in-package (text-value (package-div panel)))
|
||||
(setf (text-value (package-div panel))
|
||||
(string-downcase (package-name new-package)))
|
||||
(clog-terminal:echo target result)))
|
||||
(clog-terminal:echo target result))))
|
||||
|
||||
(defun on-show-callers (body)
|
||||
"Open callers window"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue