diff options
| author | Luc Teirlinck | 2004-04-26 02:43:42 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2004-04-26 02:43:42 +0000 |
| commit | ee9cd72d5a288ee26036d7001f6cdf40492c8287 (patch) | |
| tree | dada89f35302fa95544bd8bbc343a071e58a72e0 | |
| parent | ae11577a11734fce26f382f1580bf86e8ca4ad12 (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/ielm.el | 42 |
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 @@ | |||
| 1 | 2004-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 | |||
| 1 | 2004-04-25 Juanma Barranquero <lektu@terra.es> | 6 | 2004-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. | |||
| 56 | You can give the IELM prompt more highly customized read-only | 56 | You can give the IELM prompt more highly customized read-only |
| 57 | type properties, by setting this option to nil, and then setting | 57 | type 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 |
| 59 | text properties." | 59 | text properties. |
| 60 | |||
| 61 | Interrupting the IELM process with \\<ielm-map>\\[comint-interrupt-subjob], | ||
| 62 | and then restarting it using \\[ielm], makes the then current | ||
| 63 | default value affect _new_ prompts. However, executing \\[ielm] | ||
| 64 | does not have this effect on *ielm* buffers with a running process. | ||
| 65 | For IELM buffers that are not called *ielm*, you can execute | ||
| 66 | \\[inferior-emacs-lisp-mode] in that IELM buffer to update the value, | ||
| 67 | for 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. |
| 66 | Setting the default value does not affect existing IELM runs. | 74 | Setting the default value does not affect existing IELM runs. |
| 67 | The command `inferior-emacs-lisp-mode' converts this into a | 75 | `inferior-emacs-lisp-mode' converts this into a buffer-local |
| 68 | buffer-local variable in IELM buffers. Do not try to set the | 76 | variable in IELM buffers. The buffer-local value is meant for |
| 69 | buffer-local value yourself in any way, unless you really know | 77 | internal use by IELM. Do not try to set the buffer-local value |
| 70 | what you are doing." | 78 | yourself in any way, unless you really know what you are doing. |
| 79 | |||
| 80 | Interrupting the IELM process with \\<ielm-map>\\[comint-interrupt-subjob], | ||
| 81 | and then restarting it using \\[ielm], makes the then current | ||
| 82 | _default_ value affect _new_ prompts. Unless the new prompt | ||
| 83 | differs only in text properties from the old one, IELM will no | ||
| 84 | longer recognize the old prompts. However, executing \\[ielm] | ||
| 85 | does not update the prompt of an *ielm* buffer with a running process. | ||
| 86 | For IELM buffers that are not called *ielm*, you can execute | ||
| 87 | \\[inferior-emacs-lisp-mode] in that IELM buffer to update the value, | ||
| 88 | for 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. |
| 548 | Switches to the buffer `*ielm*', or creates it if it does not exist." | 566 | Switches 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 | ||