From c3c97cec142491dbaca7b295a9f5a2951cdd7e69 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Sun, 17 May 2009 21:34:00 +0200 Subject: Read-only-ness of REPL prompt customizable. --- elisp/geiser-repl.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'elisp') diff --git a/elisp/geiser-repl.el b/elisp/geiser-repl.el index 4ed7903..f4d85dc 100644 --- a/elisp/geiser-repl.el +++ b/elisp/geiser-repl.el @@ -70,6 +70,11 @@ implementation name gets appended to it." :type 'boolean :group 'geiser-repl) +(defcustom geiser-repl-read-only-prompt-p t + "Whether the REPL's prompt should be read-only." + :type 'boolean + :group 'geiser-repl) + ;;; Geiser REPL buffers and processes: @@ -277,7 +282,8 @@ If no REPL is running, execute `run-geiser' to start a fresh one." \\{geiser-repl-mode-map}" (set (make-local-variable 'mode-line-process) nil) (set (make-local-variable 'comint-use-prompt-regexp) t) - (set (make-local-variable 'comint-prompt-read-only) t) + (set (make-local-variable 'comint-prompt-read-only) + geiser-repl-read-only-prompt-p) (set (make-local-variable 'beginning-of-defun-function) 'geiser-repl--beginning-of-defun) (set-syntax-table scheme-mode-syntax-table) -- cgit v1.2.3