0
|
1 ;;; -*- Mode: Emacs-Lisp -*-
|
|
2
|
|
3 ;;; ilisp-menu.el --
|
|
4
|
|
5 ;;; This file is part of ILISP.
|
4
|
6 ;;; Version: 5.8
|
0
|
7 ;;;
|
|
8 ;;; Copyright (C) 1990, 1991, 1992, 1993 Chris McConnell
|
|
9 ;;; 1993, 1994 Ivan Vasquez
|
4
|
10 ;;; 1994, 1995, 1996 Marco Antoniotti and Rick Busdiecker
|
|
11 ;;; 1996 Marco Antoniotti and Rick Campbell
|
0
|
12 ;;;
|
|
13 ;;; Other authors' names for which this Copyright notice also holds
|
|
14 ;;; may appear later in this file.
|
|
15 ;;;
|
4
|
16 ;;; Send mail to 'ilisp-request@naggum.no' to be included in the
|
|
17 ;;; ILISP mailing list. 'ilisp@naggum.no' is the general ILISP
|
0
|
18 ;;; mailing list were bugs and improvements are discussed.
|
|
19 ;;;
|
|
20 ;;; ILISP is freely redistributable under the terms found in the file
|
|
21 ;;; COPYING.
|
|
22
|
|
23
|
|
24
|
4
|
25 (cond ((or (string-match "XEmacs" emacs-version)
|
|
26 (string-match "Lucid" emacs-version)))
|
|
27 (t
|
|
28
|
0
|
29
|
4
|
30 (require 'simple-menu)
|
|
31 (setplist 'lisp-command-menu nil)
|
|
32 (def-menu 'lisp-command-menu
|
|
33 "Lisp"
|
|
34 "These ILISP commands are available on the menu:"
|
|
35 '(
|
|
36 ("Break Interupt current lisp."
|
|
37 (progn (switch-to-lisp t)
|
|
38 (interrupt-subjob-ilisp)))
|
|
39 ("Doc Menu of commands to get help on variables, etc."
|
|
40 documentation-lisp-command-menu)
|
|
41 ("Xpand macroexpand-lisp." macroexpand-lisp)
|
|
42 ("Eval Eval the surrounding defun." eval-defun-lisp)
|
|
43 ("1E&G Eval defun and goto Inferior LISP." eval-defun-and-go-lisp)
|
|
44 ("; Comment the region." comment-region-lisp)
|
|
45 (") find-unbalanced-lisp parens." find-unbalanced-lisp)
|
|
46 ("] close-all-lisp parens that are open." close-all-lisp)
|
|
47 ("Trace Traces the previous function symbol." trace-lisp)
|
|
48 )
|
|
49 )
|
|
50
|
|
51 (setplist 'documentation-lisp-command-menu nil)
|
|
52 (def-menu 'documentation-lisp-command-menu
|
|
53 "Lisp help"
|
|
54 "These commands are available for examining Lisp structures:"
|
|
55 '(
|
|
56 ("UDoc Get user's documentation string." documentation-lisp)
|
|
57 ("Rglist Get the arglist for function." arglist-lisp)
|
|
58 ("Insp Inspect the current sexp." inspect-lisp)
|
|
59 ("1Insp Prompts for something to inspect." (inspect-lisp -4))
|
|
60 ("Descr Describe the current sexp." describe-lisp)
|
|
61 ("1Descr Prompts for something to describe." (describe-lisp -4))
|
|
62 )
|
|
63 )))
|
0
|
64
|
|
65 (provide 'ilisp-menu)
|