annotate lisp/ilisp/ilisp-key.el @ 58:8b0bdfdf0cf0 r19-16-pre4

Import from CVS: tag r19-16-pre4
author cvs
date Mon, 13 Aug 2007 08:58:37 +0200
parents b82b59fe008d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 ;;; -*- Mode: Emacs-Lisp -*-
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 ;;; ilisp-key.el --
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 ;;; This file is part of ILISP.
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents: 0
diff changeset
6 ;;; Version: 5.8
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 ;;; Copyright (C) 1990, 1991, 1992, 1993 Chris McConnell
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 ;;; 1993, 1994 Ivan Vasquez
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents: 0
diff changeset
10 ;;; 1994, 1995, 1996 Marco Antoniotti and Rick Busdiecker
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents: 0
diff changeset
11 ;;; 1996 Marco Antoniotti and Rick Campbell
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ;;; Other authors' names for which this Copyright notice also holds
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ;;; may appear later in this file.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ;;;
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents: 0
diff changeset
16 ;;; Send mail to 'ilisp-request@naggum.no' to be included in the
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents: 0
diff changeset
17 ;;; ILISP mailing list. 'ilisp@naggum.no' is the general ILISP
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 ;;; mailing list were bugs and improvements are discussed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 ;;; ILISP is freely redistributable under the terms found in the file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 ;;; COPYING.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 ;;; ILISP keybinding definitions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 ;;; ilisp-where-is --
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 ;;; New version provided by yusuf@SPD-13.ils.nwu.edu (Yusuf Pisan)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 ;;; Note: this used to be in 'ilisp-cpat'. Its definition did not make
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 ;;; much sense. Yusuf noted this and I decided to move it in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 ;;; this file (where I think is more approriate).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 ;;; 11/24/94: Marco Antoniotti
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 (defun ilisp-where-is (command)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 (let ((cmd (where-is-internal command nil t)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 (if cmd (key-description cmd))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 ;;;%Bindings
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 (defun ilisp-defkey (keymap key command)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 "Define KEYMAP ilisp-prefix+KEY as command."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 (let ((prefix-map (lookup-key keymap ilisp-prefix)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 (if (not (keymapp prefix-map))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 (setq prefix-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 (define-key keymap ilisp-prefix (make-sparse-keymap))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 (define-key prefix-map key command)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 (defun defkey-ilisp (key command)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 "Define KEY as COMMAND in ilisp-mode-map and lisp-mode-map"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 (if (not ilisp-mode-map) (ilisp-bindings))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 (define-key ilisp-mode-map key command)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 (define-key lisp-mode-map key command))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 (defun lisp-bindings (keymap &optional inferior-p)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 "Set up the bindings for interacting with an inferior LISP in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 KEYMAP."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 (if inferior-p
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 (progn (define-key keymap "\C-m" 'return-ilisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 (define-key keymap "\C-a" 'bol-ilisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 (define-key keymap "\C-c\C-c" 'interrupt-subjob-ilisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 (define-key keymap "\C-d" 'delete-char-or-pop-ilisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 (ilisp-defkey keymap "#" 'raw-keys-ilisp))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 (ilisp-defkey keymap "\C-c" 'compile-defun-and-go-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 (define-key keymap "\C-m" 'newline-and-indent-lisp))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 (define-key keymap "]" 'close-all-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 (define-key keymap "\M-q" 'reindent-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 (define-key keymap "\C-]" 'close-and-send-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 (define-key keymap "\t" 'indent-line-ilisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 (define-key keymap "\n" 'newline-and-indent-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 (define-key keymap "\M-\C-q" 'indent-sexp-ilisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 (ilisp-defkey keymap ";" 'comment-region-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 (ilisp-defkey keymap ")" 'find-unbalanced-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 (define-key keymap "\M-\C-a" 'beginning-of-defun-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 (define-key keymap "\M-\C-e" 'end-of-defun-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 (define-key keymap "\C-\M-r" 'reposition-window-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 (ilisp-defkey keymap "i" 'describe-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 (ilisp-defkey keymap "I" 'inspect-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 (ilisp-defkey keymap "a" 'arglist-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 (ilisp-defkey keymap "d" 'documentation-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 (ilisp-defkey keymap "m" 'macroexpand-1-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 (ilisp-defkey keymap "M" 'macroexpand-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 (define-key keymap "\M-," 'next-definition-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 (define-key keymap "\M-." 'edit-definitions-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 (define-key keymap "\M-?" 'search-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 (define-key keymap "\M-\"" 'replace-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 (ilisp-defkey keymap "^" 'edit-callers-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 (define-key keymap "\M-`" 'next-caller-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 (define-key keymap "\M-\t" 'complete-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 (define-key keymap "\M-\C-m" 'complete)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 (ilisp-defkey keymap "r" 'eval-region-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 (define-key keymap "\M-\C-x" 'eval-defun-lisp) ; Gnu convention
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 (ilisp-defkey keymap "e" 'eval-defun-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 (ilisp-defkey keymap "n" 'eval-next-sexp-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 (ilisp-defkey keymap "p" 'package-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 (ilisp-defkey keymap "P" 'set-package-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 (ilisp-defkey keymap "w" 'compile-region-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 (ilisp-defkey keymap "c" 'compile-defun-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 (ilisp-defkey keymap "\C-r" 'eval-region-and-go-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 (ilisp-defkey keymap "\C-e" 'eval-defun-and-go-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 (ilisp-defkey keymap "\C-n" 'eval-next-sexp-and-go-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 (ilisp-defkey keymap "\C-w" 'compile-region-and-go-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 (ilisp-defkey keymap "t" 'trace-defun-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 (ilisp-defkey keymap "!" 'default-directory-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 (ilisp-defkey keymap " " 'mark-change-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 (let ((ilisp-prefix (concat ilisp-prefix "*")))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 (ilisp-defkey keymap "l" 'list-changes-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 (ilisp-defkey keymap "e" 'eval-changes-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 (ilisp-defkey keymap "c" 'compile-changes-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 (ilisp-defkey keymap "0" 'clear-changes-lisp))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 (ilisp-defkey keymap "b" 'switch-to-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 (ilisp-defkey keymap "y" 'call-defun-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 (ilisp-defkey keymap "z" 'reset-ilisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 (ilisp-defkey keymap "g" 'abort-commands-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 (ilisp-defkey keymap "s" 'status-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 (ilisp-defkey keymap "S" 'select-ilisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 (define-key keymap "\C-x\C-f" 'find-file-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 (ilisp-defkey keymap "l" 'load-file-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 (ilisp-defkey keymap "k" 'compile-file-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 (ilisp-defkey keymap "A" 'fi:clman-apropos)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 (ilisp-defkey keymap "D" 'fi:clman))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 (defun ilisp-lispm-bindings ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 "Setup additional Lisp Machine-like bindings for some ilisp commands"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 (interactive)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 ;; Note: Changed the 'ilisp-emacs-version-id' to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 ;; '+ilisp-emacs-version-id+' and the 'gnu-*' to 'fsf-*'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 ;; 25/11/94 Marco Antoniotti
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 (cond ((eq +ilisp-emacs-version-id+ 'fsf-18))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 ((eq +ilisp-emacs-version-id+ 'fsf-19)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 (defkey-ilisp (read "[?\\S-\\C-a]") 'arglist-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 (defkey-ilisp (read "[?\\S-\\C-c]") 'compile-defun-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 (defkey-ilisp (read "[?\\S-\\C-d]") 'documentation-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 (defkey-ilisp (read "[?\\S-\\C-e]") 'eval-defun-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 (defkey-ilisp (read "[?\\S-\\C-m]") 'macroexpand-1-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 (defkey-ilisp (read "[?\\M-M]") 'macroexpand-lisp))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 (t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 (defkey-ilisp '(control A) 'arglist-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 (defkey-ilisp '(control C) 'compile-defun-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 (defkey-ilisp '(control D) 'documentation-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 (defkey-ilisp '(control E) 'eval-defun-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 (defkey-ilisp '(control M) 'macroexpand-1-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 (defkey-ilisp '(meta M) 'macroexpand-lisp))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 ;; Unfortunately, the read kludges are needed for this function to work
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 ;; for GNU emacs 19 when it was compiled by Lucid.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 (defun ilisp-bindings ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 "Set up the key bindings for LISP and ILISP buffers."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 (if (fboundp 'set-keymap-parent)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 (progn
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 (setq ilisp-mode-map (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 (set-keymap-parent ilisp-mode-map comint-mode-map))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 (setq ilisp-mode-map (copy-keymap comint-mode-map)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 ;; Remove stop and quit subjob from comint
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 (define-key ilisp-mode-map "\C-c\C-z" nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 (define-key ilisp-mode-map "\C-c\C-\\" nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 (if (fboundp 'lisp-mode-commands)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 (lisp-mode-commands ilisp-mode-map))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 (lisp-bindings ilisp-mode-map t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 (if (boundp 'lisp-mode-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 (lisp-bindings lisp-mode-map))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 (if (boundp 'scheme-mode-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 (lisp-bindings scheme-mode-map))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 (ilisp-defkey emacs-lisp-mode-map ";" 'comment-region-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 (ilisp-defkey global-map "\C-t" 'trace-defun-lisp-break)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 (ilisp-defkey global-map "b" 'switch-to-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 ;; Globally defined output-control commands.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 (ilisp-defkey global-map "1" 'ilisp-bury-output)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 (ilisp-defkey global-map "v" 'ilisp-scroll-output)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 (ilisp-defkey global-map "G" 'ilisp-grow-output)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 (if (not (boundp 'fi:clman-mode-map))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 (setq fi:clman-mode-map (make-sparse-keymap)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 (ilisp-defkey fi:clman-mode-map "D" 'fi:clman)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 (ilisp-defkey fi:clman-mode-map "A" 'fi:clman-apropos))