scel: use in-process library recompilation
scel is modified to support in-process library recompilation. the key binding has slightly been changed: C-c C-l - recompile the library C-c C-o - restart the interpreter Signed-off-by: Tim Blechmann <tim@klingt.org>
This commit is contained in:
parent
fe8524e1f9
commit
6726ce6618
3 changed files with 19 additions and 2 deletions
|
@ -342,6 +342,13 @@ If EOB-P is non-nil, positions cursor at end of buffer."
|
||||||
(sclang-kill)
|
(sclang-kill)
|
||||||
(sclang-release-command-fifo))
|
(sclang-release-command-fifo))
|
||||||
|
|
||||||
|
(defun sclang-recompile ()
|
||||||
|
"Recompile class library."
|
||||||
|
(interactive)
|
||||||
|
(when (sclang-get-process)
|
||||||
|
(process-send-string sclang-process "\x18")
|
||||||
|
))
|
||||||
|
|
||||||
;; =====================================================================
|
;; =====================================================================
|
||||||
;; command process
|
;; command process
|
||||||
;; =====================================================================
|
;; =====================================================================
|
||||||
|
|
|
@ -74,6 +74,7 @@
|
||||||
'(
|
'(
|
||||||
["Start Interpreter" sclang-start :included (not (sclang-library-initialized-p))]
|
["Start Interpreter" sclang-start :included (not (sclang-library-initialized-p))]
|
||||||
["Restart Interpreter" sclang-start :included (sclang-library-initialized-p)]
|
["Restart Interpreter" sclang-start :included (sclang-library-initialized-p)]
|
||||||
|
["Recompile Class Library" sclang-recompile :included (sclang-library-initialized-p)]
|
||||||
["Stop Interpreter" sclang-stop :included (sclang-get-process)]
|
["Stop Interpreter" sclang-stop :included (sclang-get-process)]
|
||||||
["Kill Interpreter" sclang-kill :included (sclang-get-process)]
|
["Kill Interpreter" sclang-kill :included (sclang-get-process)]
|
||||||
"-"
|
"-"
|
||||||
|
@ -107,7 +108,8 @@
|
||||||
|
|
||||||
(defun sclang-fill-mode-map (map)
|
(defun sclang-fill-mode-map (map)
|
||||||
;; process control
|
;; process control
|
||||||
(define-key map "\C-c\C-l" 'sclang-start)
|
(define-key map "\C-c\C-l" 'sclang-recompile)
|
||||||
|
(define-key map "\C-c\C-o" 'sclang-start)
|
||||||
;; post buffer control
|
;; post buffer control
|
||||||
(define-key map "\C-c<" 'sclang-clear-post-buffer)
|
(define-key map "\C-c<" 'sclang-clear-post-buffer)
|
||||||
(define-key map "\C-c>" 'sclang-show-post-buffer)
|
(define-key map "\C-c>" 'sclang-show-post-buffer)
|
||||||
|
|
|
@ -4,4 +4,12 @@
|
||||||
Emacs.evalLispExpression( "(sclang-start)" );
|
Emacs.evalLispExpression( "(sclang-start)" );
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
+ LinuxPlatform {
|
||||||
|
recompile{
|
||||||
|
if ( this.hasFeature( \emacs ) ) {
|
||||||
|
Emacs.evalLispExpression( "(sclang-recompile)" );
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue