diff options
| author | Richard M. Stallman | 1995-06-29 23:13:19 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-06-29 23:13:19 +0000 |
| commit | 9d42eea392ff3009de2c23057982aaba9567dd56 (patch) | |
| tree | adc43fb83225ad001209602f75d71c26790747be | |
| parent | 1d3541803d499fbad3b9c18633dcb51c5d9123c5 (diff) | |
| download | emacs-9d42eea392ff3009de2c23057982aaba9567dd56.tar.gz emacs-9d42eea392ff3009de2c23057982aaba9567dd56.zip | |
(ielm-font-lock-keywords): New variable
(inferior-emacs-lisp-mode): Use it for font-lock support
| -rw-r--r-- | lisp/ielm.el | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lisp/ielm.el b/lisp/ielm.el index b25bcbcd01a..d3d7459bcbc 100644 --- a/lisp/ielm.el +++ b/lisp/ielm.el | |||
| @@ -87,7 +87,7 @@ This variable is buffer-local.") | |||
| 87 | (defvar ielm-header | 87 | (defvar ielm-header |
| 88 | (concat | 88 | (concat |
| 89 | "*** Welcome to IELM version " | 89 | "*** Welcome to IELM version " |
| 90 | (substring "$Revision: 1.3 $" 11 -2) | 90 | (substring "$Revision: 1.4 $" 11 -2) |
| 91 | " *** Type (describe-mode) for help.\n" | 91 | " *** Type (describe-mode) for help.\n" |
| 92 | "IELM has ABSOLUTELY NO WARRANTY; type (describe-no-warranty) for details.\n") | 92 | "IELM has ABSOLUTELY NO WARRANTY; type (describe-no-warranty) for details.\n") |
| 93 | "Message to display when IELM is started.") | 93 | "Message to display when IELM is started.") |
| @@ -116,6 +116,12 @@ This variable is buffer-local.") | |||
| 116 | (define-key ielm-map "\C-c\C-f" 'ielm-display-working-buffer) | 116 | (define-key ielm-map "\C-c\C-f" 'ielm-display-working-buffer) |
| 117 | (define-key ielm-map "\C-c\C-v" 'ielm-print-working-buffer)) | 117 | (define-key ielm-map "\C-c\C-v" 'ielm-print-working-buffer)) |
| 118 | 118 | ||
| 119 | (defvar ielm-font-lock-keywords | ||
| 120 | (list | ||
| 121 | (cons (concat "^" (regexp-quote ielm-prompt)) 'font-lock-keyword-face) | ||
| 122 | '("\\(^\\*\\*\\*[^*]+\\*\\*\\*\\)\\(.*$\\)" (1 font-lock-comment-face) (2 font-lock-reference-face))) | ||
| 123 | "Additional expressions to highlight in ielm buffers.") | ||
| 124 | |||
| 119 | ;;; Completion stuff | 125 | ;;; Completion stuff |
| 120 | 126 | ||
| 121 | (defun ielm-tab nil | 127 | (defun ielm-tab nil |
| @@ -417,6 +423,11 @@ Customised bindings may be defined in `ielm-map', which currently contains: | |||
| 417 | (setq ::: nil) | 423 | (setq ::: nil) |
| 418 | (make-local-variable ':::) | 424 | (make-local-variable ':::) |
| 419 | 425 | ||
| 426 | ;; font-lock support | ||
| 427 | (make-local-variable 'font-lock-defaults) | ||
| 428 | (setq font-lock-defaults | ||
| 429 | '(ielm-font-lock-keywords nil nil ((?: . "w") (?- . "w") (?* . "w")))) | ||
| 430 | |||
| 420 | ;; A dummy process to keep comint happy. It will never get any input | 431 | ;; A dummy process to keep comint happy. It will never get any input |
| 421 | (if (comint-check-proc (current-buffer)) nil | 432 | (if (comint-check-proc (current-buffer)) nil |
| 422 | (start-process "ielm" (current-buffer) "cat") | 433 | (start-process "ielm" (current-buffer) "cat") |