aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Teirlinck2004-04-26 02:43:42 +0000
committerLuc Teirlinck2004-04-26 02:43:42 +0000
commitee9cd72d5a288ee26036d7001f6cdf40492c8287 (patch)
treedada89f35302fa95544bd8bbc343a071e58a72e0
parentae11577a11734fce26f382f1580bf86e8ca4ad12 (diff)
downloademacs-ee9cd72d5a288ee26036d7001f6cdf40492c8287.tar.gz
emacs-ee9cd72d5a288ee26036d7001f6cdf40492c8287.zip
(ielm-prompt-read-only, ielm-prompt): Expand docstring.
(ielm): Only go to the end of the buffer when starting a new process.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/ielm.el42
2 files changed, 35 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7fb5eecd4e7..cf2c0aad49f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12004-04-25 Luc Teirlinck <teirllm@auburn.edu>
2
3 * ielm.el (ielm-prompt-read-only, ielm-prompt): Expand docstring.
4 (ielm): Only go to the end of the buffer when starting a new process.
5
12004-04-25 Juanma Barranquero <lektu@terra.es> 62004-04-25 Juanma Barranquero <lektu@terra.es>
2 7
3 * ielm.el (inferior-emacs-lisp-mode): Display working buffer on the 8 * ielm.el (inferior-emacs-lisp-mode): Display working buffer on the
diff --git a/lisp/ielm.el b/lisp/ielm.el
index beb261f4c89..2eae3591c7f 100644
--- a/lisp/ielm.el
+++ b/lisp/ielm.el
@@ -56,7 +56,15 @@ Setting this variable does not affect existing IELM runs.
56You can give the IELM prompt more highly customized read-only 56You can give the IELM prompt more highly customized read-only
57type properties, by setting this option to nil, and then setting 57type properties, by setting this option to nil, and then setting
58`ielm-prompt', outside of Custom, to a string with the desired 58`ielm-prompt', outside of Custom, to a string with the desired
59text properties." 59text properties.
60
61Interrupting the IELM process with \\<ielm-map>\\[comint-interrupt-subjob],
62and then restarting it using \\[ielm], makes the then current
63default value affect _new_ prompts. However, executing \\[ielm]
64does not have this effect on *ielm* buffers with a running process.
65For IELM buffers that are not called *ielm*, you can execute
66\\[inferior-emacs-lisp-mode] in that IELM buffer to update the value,
67for new prompts. This works even if the buffer has a running process."
60 :type 'boolean 68 :type 'boolean
61 :group 'ielm 69 :group 'ielm
62 :version "21.4") 70 :version "21.4")
@@ -64,10 +72,20 @@ text properties."
64(defcustom ielm-prompt "ELISP> " 72(defcustom ielm-prompt "ELISP> "
65 "Prompt used in IELM. 73 "Prompt used in IELM.
66Setting the default value does not affect existing IELM runs. 74Setting the default value does not affect existing IELM runs.
67The command `inferior-emacs-lisp-mode' converts this into a 75`inferior-emacs-lisp-mode' converts this into a buffer-local
68buffer-local variable in IELM buffers. Do not try to set the 76variable in IELM buffers. The buffer-local value is meant for
69buffer-local value yourself in any way, unless you really know 77internal use by IELM. Do not try to set the buffer-local value
70what you are doing." 78yourself in any way, unless you really know what you are doing.
79
80Interrupting the IELM process with \\<ielm-map>\\[comint-interrupt-subjob],
81and then restarting it using \\[ielm], makes the then current
82_default_ value affect _new_ prompts. Unless the new prompt
83differs only in text properties from the old one, IELM will no
84longer recognize the old prompts. However, executing \\[ielm]
85does not update the prompt of an *ielm* buffer with a running process.
86For IELM buffers that are not called *ielm*, you can execute
87\\[inferior-emacs-lisp-mode] in that IELM buffer to update the value,
88for new prompts. This works even if the buffer has a running process."
71 :type 'string 89 :type 'string
72 :group 'ielm) 90 :group 'ielm)
73 91
@@ -547,13 +565,13 @@ Customized bindings may be defined in `ielm-map', which currently contains:
547 "Interactively evaluate Emacs Lisp expressions. 565 "Interactively evaluate Emacs Lisp expressions.
548Switches to the buffer `*ielm*', or creates it if it does not exist." 566Switches to the buffer `*ielm*', or creates it if it does not exist."
549 (interactive) 567 (interactive)
550 (if (comint-check-proc "*ielm*") 568 (let (old-point)
551 nil 569 (unless (comint-check-proc "*ielm*")
552 (save-excursion 570 (with-current-buffer (get-buffer-create "*ielm*")
553 (set-buffer (get-buffer-create "*ielm*")) 571 (unless (eq (buffer-size) 0) (setq old-point (point)))
554 (inferior-emacs-lisp-mode))) 572 (inferior-emacs-lisp-mode)))
555 (pop-to-buffer "*ielm*") 573 (pop-to-buffer "*ielm*")
556 (goto-char (point-max))) 574 (when old-point (push-mark old-point))))
557 575
558(provide 'ielm) 576(provide 'ielm)
559 577