[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ielm-prompt read-only and customizable
From: |
Juanma Barranquero |
Subject: |
ielm-prompt read-only and customizable |
Date: |
Mon, 18 Feb 2002 10:55:25 +0100 |
This patch makes ielm-prompt be read-only, which seems like a sensible
thing to do (other prompts, like eshell's, are already read-only).
It also makes it customizable, so the read-only status of the prompt can
be automatically enforced.
/L/e/k/t/u
2002-02-18 Juanma Barranquero <address@hidden>
* ielm.el (ielm-prompt): Allow customization; make it read-only.
Index: ielm.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/ielm.el,v
retrieving revision 1.22
diff -u -r1.22 ielm.el
--- ielm.el 10 Oct 2000 17:27:38 -0000 1.22
+++ ielm.el 18 Feb 2002 09:51:38 -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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- ielm-prompt read-only and customizable,
Juanma Barranquero <=