changeset 43524:ca53e91e0186

(ielm-prompt): Allow customization; make it read-only.
author Juanma Barranquero <lekktu@gmail.com>
date Mon, 25 Feb 2002 16:07:01 +0000
parents c7eaaa9c5bf5
children dea16e570ba9
files lisp/ielm.el
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ielm.el	Mon Feb 25 15:47:41 2002 +0000
+++ b/lisp/ielm.el	Mon Feb 25 16:07:01 2002 +0000
@@ -70,8 +70,12 @@
   :type 'boolean
   :group 'ielm)
 
-(defvar ielm-prompt "ELISP> "
-  "Prompt used in IELM.")
+(defcustom ielm-prompt "ELISP> "
+  "Prompt used in IELM."
+  :type 'string
+  :group 'ielm
+  :get #'(lambda (symbol) (substring-no-properties (symbol-value symbol)))
+  :set #'(lambda (symbol value) (set symbol (propertize value 'read-only t 'rear-nonsticky t))))
 
 (defcustom ielm-dynamic-return t
   "*Controls whether \\<ielm-map>\\[ielm-return] has intelligent behaviour in IELM.