summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/lisp-mode.el
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2008-04-02 06:29:40 +0000
committerDan Nicolaescu <dann@ics.uci.edu>2008-04-02 06:29:40 +0000
commit5e8bbcc4c97f374f9e102267b7c78e4bd77b0d0b (patch)
treea5f4279b4606d71a06b24b769a5acac0004ac25b /lisp/emacs-lisp/lisp-mode.el
parentdebf91fda602a6aa51f15c9709a6e7d739ca8704 (diff)
downloademacs-5e8bbcc4c97f374f9e102267b7c78e4bd77b0d0b.tar.gz
(emacs-lisp-mode-map): Add menu entries
for tracing and re-builder.
Diffstat (limited to 'lisp/emacs-lisp/lisp-mode.el')
-rw-r--r--lisp/emacs-lisp/lisp-mode.el20
1 files changed, 19 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el
index d264de6834f..ad54d1b1774 100644
--- a/lisp/emacs-lisp/lisp-mode.el
+++ b/lisp/emacs-lisp/lisp-mode.el
@@ -273,7 +273,8 @@
(defvar emacs-lisp-mode-map
(let ((map (make-sparse-keymap "Emacs-Lisp"))
(menu-map (make-sparse-keymap "Emacs-Lisp"))
- (prof-map (make-sparse-keymap)))
+ (prof-map (make-sparse-keymap))
+ (tracing-map (make-sparse-keymap)))
(set-keymap-parent map lisp-mode-shared-map)
(define-key map "\e\t" 'lisp-complete-symbol)
(define-key map "\e\C-x" 'eval-defun)
@@ -286,6 +287,23 @@
(define-key menu-map [checkdoc]
'(menu-item "Check Documentation Strings" checkdoc
:help "Check documentation strings for style requirements"))
+ (define-key menu-map [re-builder]
+ '(menu-item "Construct Regexp" re-builder
+ :help "Construct a regexp interactively"))
+ (define-key menu-map [tracing] (cons "Tracing" tracing-map))
+ (define-key tracing-map [tr-a]
+ '(menu-item "Untrace all" untrace-all
+ :help "Untraces all currently traced functions"))
+ (define-key tracing-map [tr-uf]
+ '(menu-item "Untrace function..." untrace-function
+ :help "Untraces FUNCTION and possibly activates all remaining advice"))
+ (define-key tracing-map [tr-sep] '("--"))
+ (define-key tracing-map [tr-q]
+ '(menu-item "Trace function quietly..." trace-function
+ :help "Trace the function with trace output going quietly to a buffer"))
+ (define-key tracing-map [tr-f]
+ '(menu-item "Trace function..." trace-function
+ :help "Trace the function given as a argument"))
(define-key menu-map [profiling] (cons "Profiling" prof-map))
(define-key prof-map [prof-restall]
'(menu-item "Remove Instrumentation for All Functions" elp-restore-all