diff options
| author | Dave Love | 2000-11-14 14:33:29 +0000 |
|---|---|---|
| committer | Dave Love | 2000-11-14 14:33:29 +0000 |
| commit | d3461e8fd00ca874f89a9a2ea9db6823612cb5cc (patch) | |
| tree | ca1073b823191ce5c293274ae863b855ca28356d | |
| parent | 88f0a1eb891365a60559174f75ed2631070b00bf (diff) | |
| download | emacs-d3461e8fd00ca874f89a9a2ea9db6823612cb5cc.tar.gz emacs-d3461e8fd00ca874f89a9a2ea9db6823612cb5cc.zip | |
(scheme-program-name): New variable
(originally in cmuscheme).
| -rw-r--r-- | lisp/progmodes/scheme.el | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/lisp/progmodes/scheme.el b/lisp/progmodes/scheme.el index 127efad288a..73ddd7c89fe 100644 --- a/lisp/progmodes/scheme.el +++ b/lisp/progmodes/scheme.el | |||
| @@ -171,28 +171,22 @@ | |||
| 171 | 171 | ||
| 172 | (defvar scheme-mode-line-process "") | 172 | (defvar scheme-mode-line-process "") |
| 173 | 173 | ||
| 174 | (defvar scheme-mode-map nil | 174 | (defvar scheme-mode-map |
| 175 | "Keymap for Scheme mode. | ||
| 176 | All commands in `lisp-mode-shared-map' are inherited by this map.") | ||
| 177 | |||
| 178 | (unless scheme-mode-map | ||
| 179 | (let ((map (make-sparse-keymap "Scheme"))) | 175 | (let ((map (make-sparse-keymap "Scheme"))) |
| 180 | (setq scheme-mode-map (make-sparse-keymap)) | 176 | (set-keymap-parent map lisp-mode-shared-map) |
| 181 | (set-keymap-parent scheme-mode-map lisp-mode-shared-map) | 177 | (define-key map [menu-bar scheme] |
| 182 | (define-key scheme-mode-map [menu-bar] (make-sparse-keymap)) | 178 | (cons "Scheme" |
| 183 | (define-key scheme-mode-map [menu-bar scheme] | 179 | ;; Copy the shared menu rather than inheriting it, so that |
| 184 | (cons "Scheme" map)) | 180 | ;; we can put the Scheme-specific items at the end. |
| 185 | (define-key map [run-scheme] '("Run Inferior Scheme" . run-scheme)) | 181 | (let ((menu (copy-keymap lisp-shared-menu))) |
| 186 | (define-key map [uncomment-region] | 182 | (define-key-after menu [s1] '("--")) |
| 187 | '("Uncomment Out Region" . (lambda (beg end) | 183 | (define-key-after menu [run-scheme] |
| 188 | (interactive "r") | 184 | '("Run Inferior Scheme" . run-scheme)) |
| 189 | (comment-region beg end '(4))))) | 185 | menu))) |
| 190 | (define-key map [comment-region] '("Comment Out Region" . comment-region)) | 186 | map) |
| 191 | (define-key map [indent-region] '("Indent Region" . indent-region)) | 187 | "Keymap for Scheme mode. |
| 192 | (define-key map [indent-line] '("Indent Line" . lisp-indent-line)) | 188 | All items in `lisp-mode-shared-map' and `lisp-shared-menu' are copied |
| 193 | (put 'comment-region 'menu-enable 'mark-active) | 189 | into this map.") |
| 194 | (put 'uncomment-region 'menu-enable 'mark-active) | ||
| 195 | (put 'indent-region 'menu-enable 'mark-active))) | ||
| 196 | 190 | ||
| 197 | ;; Used by cmuscheme | 191 | ;; Used by cmuscheme |
| 198 | (defun scheme-mode-commands (map) | 192 | (defun scheme-mode-commands (map) |
| @@ -264,6 +258,12 @@ See `run-hooks'." | |||
| 264 | :type 'hook | 258 | :type 'hook |
| 265 | :group 'scheme) | 259 | :group 'scheme) |
| 266 | 260 | ||
| 261 | ;; This is shared by cmuscheme and xscheme. | ||
| 262 | (defcustom scheme-program-name "scheme" | ||
| 263 | "*Program invoked by the `run-scheme' command." | ||
| 264 | :type 'string | ||
| 265 | :group 'scheme) | ||
| 266 | |||
| 267 | (defvar dsssl-imenu-generic-expression | 267 | (defvar dsssl-imenu-generic-expression |
| 268 | ;; Perhaps this should also look for the style-sheet DTD tags. I'm | 268 | ;; Perhaps this should also look for the style-sheet DTD tags. I'm |
| 269 | ;; not sure it's the best way to organize it; perhaps one type | 269 | ;; not sure it's the best way to organize it; perhaps one type |