[lice @ add comment to toplevel Makefile]
[lice.git] / src / recursive-edit.lisp
bloba8e82fbf99be9b2d2eed26cacd887027e786dc33
1 ;;; Implement the recursive edit.
3 (in-package "LICE")
5 (defvar *recursive-edit-depth* 0
6 "The current recursive-edit depth.")
8 ;; TODO: Restore the window/buffer layout
9 (defun recursive-edit ()
10 (let* ((*recursive-edit-depth* (1+ *recursive-edit-depth*))
11 ;; reset the command keys for the recursive edit
12 (*this-command-keys* nil)
13 ;; restore the last command
14 (*last-command* *last-command*)
15 (ret (catch 'exit
16 (with-lice-debugger
17 (command-loop)))))
18 ;; return the ret val.
19 (dformat +debug-v+ "ret ~a~%" ret)
20 (when ret
21 (signal 'quit))))
23 (provide :lice-0.1/recursive-edit)