aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2021-02-27 15:58:19 +0100
committerLars Ingebrigtsen2021-02-27 15:58:19 +0100
commitde33de1a660283f45a10acfaedef20c460553dbd (patch)
treec976360c94ffbee7b1d26828968da0c66e7fd772
parentcd411ecb28349f80d22488a2c2d0008eb6ad9a9e (diff)
downloademacs-de33de1a660283f45a10acfaedef20c460553dbd.tar.gz
emacs-de33de1a660283f45a10acfaedef20c460553dbd.zip
Add sexp navigation commands to elisp-mode
* lisp/progmodes/elisp-mode.el (emacs-lisp-mode-menu): Add some navigation commands (bug#24774).
-rw-r--r--lisp/progmodes/elisp-mode.el21
1 files changed, 15 insertions, 6 deletions
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
index 70aa66cdd0d..048f6573727 100644
--- a/lisp/progmodes/elisp-mode.el
+++ b/lisp/progmodes/elisp-mode.el
@@ -88,7 +88,16 @@ All commands in `lisp-mode-shared-map' are inherited by this map.")
88 ["Instrument Function for Debugging" edebug-defun 88 ["Instrument Function for Debugging" edebug-defun
89 :help "Evaluate the top level form point is in, stepping through with Edebug" 89 :help "Evaluate the top level form point is in, stepping through with Edebug"
90 :keys "C-u C-M-x"] 90 :keys "C-u C-M-x"]
91 ["Linting" 91 ("Navigation"
92 ["Forward Sexp" forward-sexp
93 :help "Go to the next s-expression"]
94 ["Backward Sexp" backward-sexp
95 :help "Go to the previous s-expression"]
96 ["Beginning Of Defun" beginning-of-defun
97 :help "Go to the start of the current function definition"]
98 ["Up List" up-list
99 :help "Go one level up and forward"])
100 ("Linting"
92 ["Lint Defun" elint-defun 101 ["Lint Defun" elint-defun
93 :help "Lint the function at point"] 102 :help "Lint the function at point"]
94 ["Lint Buffer" elint-current-buffer 103 ["Lint Buffer" elint-current-buffer
@@ -96,8 +105,8 @@ All commands in `lisp-mode-shared-map' are inherited by this map.")
96 ["Lint File..." elint-file 105 ["Lint File..." elint-file
97 :help "Lint a file"] 106 :help "Lint a file"]
98 ["Lint Directory..." elint-directory 107 ["Lint Directory..." elint-directory
99 :help "Lint a directory"]] 108 :help "Lint a directory"])
100 ["Profiling" 109 ("Profiling"
101 ;; Maybe this should be in a separate submenu from the ELP stuff? 110 ;; Maybe this should be in a separate submenu from the ELP stuff?
102 ["Start Native Profiler..." profiler-start 111 ["Start Native Profiler..." profiler-start
103 :help "Start recording profiling information"] 112 :help "Start recording profiling information"]
@@ -124,8 +133,8 @@ All commands in `lisp-mode-shared-map' are inherited by this map.")
124 ["Remove Instrumentation for All Functions" elp-restore-all 133 ["Remove Instrumentation for All Functions" elp-restore-all
125 :help "Restore the original definitions of all functions being profiled"] 134 :help "Restore the original definitions of all functions being profiled"]
126 ["Remove Instrumentation for Function..." elp-restore-function 135 ["Remove Instrumentation for Function..." elp-restore-function
127 :help "Restore an instrumented function to its original definition"]] 136 :help "Restore an instrumented function to its original definition"])
128 ["Tracing" 137 ("Tracing"
129 ["Trace Function..." trace-function 138 ["Trace Function..." trace-function
130 :help "Trace the function given as an argument"] 139 :help "Trace the function given as an argument"]
131 ["Trace Function Quietly..." trace-function-background 140 ["Trace Function Quietly..." trace-function-background
@@ -134,7 +143,7 @@ All commands in `lisp-mode-shared-map' are inherited by this map.")
134 ["Untrace All" untrace-all 143 ["Untrace All" untrace-all
135 :help "Untrace all currently traced functions"] 144 :help "Untrace all currently traced functions"]
136 ["Untrace Function..." untrace-function 145 ["Untrace Function..." untrace-function
137 :help "Untrace function, and possibly activate all remaining advice"]] 146 :help "Untrace function, and possibly activate all remaining advice"])
138 ["Construct Regexp" re-builder 147 ["Construct Regexp" re-builder
139 :help "Construct a regexp interactively"] 148 :help "Construct a regexp interactively"]
140 ["Check Documentation Strings" checkdoc 149 ["Check Documentation Strings" checkdoc