diff options
| author | Juanma Barranquero | 2004-04-25 17:18:00 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2004-04-25 17:18:00 +0000 |
| commit | 7636480366c003b2d22de4fb71e7b1405a4785d0 (patch) | |
| tree | 789b9da0cfb50e38ba8e0fca1d239670830c3035 | |
| parent | 82f1aca958e38a6747a71d508f40a9a3154fc98b (diff) | |
| download | emacs-7636480366c003b2d22de4fb71e7b1405a4785d0.tar.gz emacs-7636480366c003b2d22de4fb71e7b1405a4785d0.zip | |
(inferior-emacs-lisp-mode): Display working buffer on the mode line. Bind
`inhibit-read-only' to t before modifying properties of text in the buffer.
(ielm): Force point to the end of buffer, even when running ielm from inside
itself.
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/ielm.el | 15 |
2 files changed, 17 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 940b6717de4..9b1fd48a34d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2004-04-25 Juanma Barranquero <lektu@terra.es> | ||
| 2 | |||
| 3 | * ielm.el (inferior-emacs-lisp-mode): Display working buffer on the | ||
| 4 | mode line. Bind `inhibit-read-only' to t before modifying | ||
| 5 | properties of text in the buffer. | ||
| 6 | (ielm): Force point to the end of buffer, even when running ielm | ||
| 7 | from inside itself. | ||
| 8 | |||
| 1 | 2004-04-25 Jesper Harder <harder@ifa.au.dk> | 9 | 2004-04-25 Jesper Harder <harder@ifa.au.dk> |
| 2 | 10 | ||
| 3 | * info.el (info-apropos): Reset Info-complete-cache. | 11 | * info.el (info-apropos): Reset Info-complete-cache. |
diff --git a/lisp/ielm.el b/lisp/ielm.el index 725f7933149..beb261f4c89 100644 --- a/lisp/ielm.el +++ b/lisp/ielm.el | |||
| @@ -429,8 +429,8 @@ The current working buffer may be changed (with a call to | |||
| 429 | `set-buffer', or with \\[ielm-change-working-buffer]), and its value | 429 | `set-buffer', or with \\[ielm-change-working-buffer]), and its value |
| 430 | is preserved between successive evaluations. In this way, expressions | 430 | is preserved between successive evaluations. In this way, expressions |
| 431 | may be evaluated in a different buffer than the *ielm* buffer. | 431 | may be evaluated in a different buffer than the *ielm* buffer. |
| 432 | Display the name of the working buffer with \\[ielm-print-working-buffer], | 432 | By default, its name is shown on the mode line; you can always display |
| 433 | or the buffer itself with \\[ielm-display-working-buffer]. | 433 | it with \\[ielm-print-working-buffer], or the buffer itself with \\[ielm-display-working-buffer]. |
| 434 | 434 | ||
| 435 | During evaluations, the values of the variables `*', `**', and `***' | 435 | During evaluations, the values of the variables `*', `**', and `***' |
| 436 | are the results of the previous, second previous and third previous | 436 | are the results of the previous, second previous and third previous |
| @@ -476,6 +476,7 @@ Customized bindings may be defined in `ielm-map', which currently contains: | |||
| 476 | 476 | ||
| 477 | (setq major-mode 'inferior-emacs-lisp-mode) | 477 | (setq major-mode 'inferior-emacs-lisp-mode) |
| 478 | (setq mode-name "IELM") | 478 | (setq mode-name "IELM") |
| 479 | (setq mode-line-process '(":%s on " (:eval (buffer-name ielm-working-buffer)))) | ||
| 479 | (use-local-map ielm-map) | 480 | (use-local-map ielm-map) |
| 480 | (set-syntax-table emacs-lisp-mode-syntax-table) | 481 | (set-syntax-table emacs-lisp-mode-syntax-table) |
| 481 | 482 | ||
| @@ -518,9 +519,10 @@ Customized bindings may be defined in `ielm-map', which currently contains: | |||
| 518 | (insert ielm-header) | 519 | (insert ielm-header) |
| 519 | (ielm-set-pm (point-max)) | 520 | (ielm-set-pm (point-max)) |
| 520 | (unless comint-use-prompt-regexp-instead-of-fields | 521 | (unless comint-use-prompt-regexp-instead-of-fields |
| 521 | (add-text-properties | 522 | (let ((inhibit-read-only t)) |
| 522 | (point-min) (point-max) | 523 | (add-text-properties |
| 523 | '(rear-nonsticky t field output inhibit-line-move-field-capture t))) | 524 | (point-min) (point-max) |
| 525 | '(rear-nonsticky t field output inhibit-line-move-field-capture t)))) | ||
| 524 | (comint-output-filter (ielm-process) ielm-prompt) | 526 | (comint-output-filter (ielm-process) ielm-prompt) |
| 525 | (set-marker comint-last-input-start (ielm-pm)) | 527 | (set-marker comint-last-input-start (ielm-pm)) |
| 526 | (set-process-filter (get-buffer-process (current-buffer)) 'comint-output-filter)) | 528 | (set-process-filter (get-buffer-process (current-buffer)) 'comint-output-filter)) |
| @@ -550,7 +552,8 @@ Switches to the buffer `*ielm*', or creates it if it does not exist." | |||
| 550 | (save-excursion | 552 | (save-excursion |
| 551 | (set-buffer (get-buffer-create "*ielm*")) | 553 | (set-buffer (get-buffer-create "*ielm*")) |
| 552 | (inferior-emacs-lisp-mode))) | 554 | (inferior-emacs-lisp-mode))) |
| 553 | (pop-to-buffer "*ielm*")) | 555 | (pop-to-buffer "*ielm*") |
| 556 | (goto-char (point-max))) | ||
| 554 | 557 | ||
| 555 | (provide 'ielm) | 558 | (provide 'ielm) |
| 556 | 559 | ||