diff options
| author | Dan Nicolaescu | 2008-03-14 16:09:39 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-03-14 16:09:39 +0000 |
| commit | f9a9491fbef44d63b528f657c468748198964dcb (patch) | |
| tree | 275c382e816fcdd89bbd13f31d4bfd2c7691c68b | |
| parent | 64f0809df49fe27e4c9372859e5ceb1e4e643582 (diff) | |
| download | emacs-f9a9491fbef44d63b528f657c468748198964dcb.tar.gz emacs-f9a9491fbef44d63b528f657c468748198964dcb.zip | |
(emacs-lisp-mode-map): Add menu entries
for checkdoc and profiling.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/lisp-mode.el | 31 |
2 files changed, 35 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0ccb4718b86..7e9cab82e94 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-03-14 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * emacs-lisp/lisp-mode.el (emacs-lisp-mode-map): Add menu entries | ||
| 4 | for checkdoc and profiling. | ||
| 5 | |||
| 1 | 2008-03-14 Bastien Guerry <bzg@altern.org> | 6 | 2008-03-14 Bastien Guerry <bzg@altern.org> |
| 2 | 7 | ||
| 3 | * textmodes/flyspell.el (nxml-mode): Add the right. | 8 | * textmodes/flyspell.el (nxml-mode): Add the right. |
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index 16295f31572..25640042bb3 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el | |||
| @@ -272,16 +272,45 @@ | |||
| 272 | 272 | ||
| 273 | (defvar emacs-lisp-mode-map | 273 | (defvar emacs-lisp-mode-map |
| 274 | (let ((map (make-sparse-keymap "Emacs-Lisp")) | 274 | (let ((map (make-sparse-keymap "Emacs-Lisp")) |
| 275 | (menu-map (make-sparse-keymap "Emacs-Lisp"))) | 275 | (menu-map (make-sparse-keymap "Emacs-Lisp")) |
| 276 | (prof-map (make-sparse-keymap))) | ||
| 276 | (set-keymap-parent map lisp-mode-shared-map) | 277 | (set-keymap-parent map lisp-mode-shared-map) |
| 277 | (define-key map "\e\t" 'lisp-complete-symbol) | 278 | (define-key map "\e\t" 'lisp-complete-symbol) |
| 278 | (define-key map "\e\C-x" 'eval-defun) | 279 | (define-key map "\e\C-x" 'eval-defun) |
| 279 | (define-key map "\e\C-q" 'indent-pp-sexp) | 280 | (define-key map "\e\C-q" 'indent-pp-sexp) |
| 280 | (define-key map [menu-bar emacs-lisp] (cons "Emacs-Lisp" menu-map)) | 281 | (define-key map [menu-bar emacs-lisp] (cons "Emacs-Lisp" menu-map)) |
| 282 | (define-key menu-map [profiling] (cons "Profiling" prof-map)) | ||
| 283 | (define-key prof-map [prof-restall] | ||
| 284 | '(menu-item "Remove Instrumentation for All Functions" elp-restore-all | ||
| 285 | :help "Restore the original definitions of all functions being profiled")) | ||
| 286 | (define-key prof-map [prof-restfunc] | ||
| 287 | '(menu-item "Remove Instrumentation for Function" elp-restore-function | ||
| 288 | :help "Restore an instrumented function to its original definition")) | ||
| 289 | |||
| 290 | (define-key prof-map [sep-rem] '("--")) | ||
| 291 | (define-key prof-map [prof-resall] | ||
| 292 | '(menu-item "Remove Instrumentation for All Functions" elp-reset-all | ||
| 293 | :help "Reset the profiling information for all functions being profiled")) | ||
| 294 | (define-key prof-map [prof-resfunc] | ||
| 295 | '(menu-item "Remove Instrumentation for Function" elp-reset-function | ||
| 296 | :help "Reset the profiling information for a function")) | ||
| 297 | (define-key prof-map [prof-res] | ||
| 298 | '(menu-item "Show Profiling Results" elp-results | ||
| 299 | :help "Display current profiling results")) | ||
| 300 | (define-key prof-map [prof-pack] | ||
| 301 | '(menu-item "Instrument Package" elp-instrument-package | ||
| 302 | :help "Instrument for profiling all function that start with a prefix")) | ||
| 303 | (define-key prof-map [prof-func] | ||
| 304 | '(menu-item "Instrument Function" elp-instrument-function | ||
| 305 | :help "Instrument a function for profiling")) | ||
| 306 | (define-key menu-map [checkdoc] | ||
| 307 | '(menu-item "Check Documentation Strings" checkdock | ||
| 308 | :help "Check documentation strings for style requirements")) | ||
| 281 | (define-key menu-map [edebug-defun] | 309 | (define-key menu-map [edebug-defun] |
| 282 | '(menu-item "Instrument Function for Debugging" edebug-defun | 310 | '(menu-item "Instrument Function for Debugging" edebug-defun |
| 283 | :help "Evaluate the top level form point is in, stepping through with Edebug" | 311 | :help "Evaluate the top level form point is in, stepping through with Edebug" |
| 284 | :keys "C-u C-M-x")) | 312 | :keys "C-u C-M-x")) |
| 313 | (define-key menu-map [separator-byte] '("--")) | ||
| 285 | (define-key menu-map [byte-recompile] | 314 | (define-key menu-map [byte-recompile] |
| 286 | '(menu-item "Byte-recompile Directory..." byte-recompile-directory | 315 | '(menu-item "Byte-recompile Directory..." byte-recompile-directory |
| 287 | :help "Recompile every `.el' file in DIRECTORY that needs recompilation")) | 316 | :help "Recompile every `.el' file in DIRECTORY that needs recompilation")) |