summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-05-17 21:34:00 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-05-17 21:34:00 +0200
commitc3c97cec142491dbaca7b295a9f5a2951cdd7e69 (patch)
tree9206cf326ff7d7e1b90b513122e0d1d6ea929b47
parenteddeeb5a3614c40470c7abaf55993d5d91cbdd49 (diff)
downloadgeiser-chez-c3c97cec142491dbaca7b295a9f5a2951cdd7e69.tar.gz
geiser-chez-c3c97cec142491dbaca7b295a9f5a2951cdd7e69.tar.bz2
Read-only-ness of REPL prompt customizable.
-rw-r--r--elisp/geiser-repl.el8
1 files changed, 7 insertions, 1 deletions
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)