Function: antlr-mode-menu
antlr-mode-menu is an interactive and byte-compiled function defined
in antlr-mode.el.gz.
Signature
(antlr-mode-menu ARG1)
Documentation
Major mode menu.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/antlr-mode.el.gz
(easy-menu-define antlr-mode-menu antlr-mode-map
"Major mode menu."
`("Antlr"
,@(if antlr-options-use-submenus
`(("Insert File Option"
:filter ,(lambda (x) (antlr-options-menu-filter 1 x)))
("Insert Grammar Option"
:filter ,(lambda (x) (antlr-options-menu-filter 2 x)))
("Insert Rule Option"
:filter ,(lambda (x) (antlr-options-menu-filter 3 x)))
("Insert Subrule Option"
:filter ,(lambda (x) (antlr-options-menu-filter 4 x)))
"---")
'(["Insert Option" antlr-insert-option
:active (not buffer-read-only)]))
("Forward/Backward"
["Backward Rule" antlr-beginning-of-rule t]
["Forward Rule" antlr-end-of-rule t]
["Start of Rule Body" antlr-beginning-of-body
:active (antlr-inside-rule-p)]
["End of Rule Body" antlr-end-of-body
:active (antlr-inside-rule-p)]
"---"
["Backward Statement" c-beginning-of-statement t]
["Forward Statement" c-end-of-statement t]
["Backward Into Nomencl." c-backward-into-nomenclature t]
["Forward Into Nomencl." subword-forward t])
["Indent Region" indent-region
:active (and (not buffer-read-only) (c-region-is-active-p))]
["Comment Out Region" comment-region
:active (and (not buffer-read-only) (c-region-is-active-p))]
["Uncomment Region"
(comment-region (region-beginning) (region-end) '(4))
:active (and (not buffer-read-only) (c-region-is-active-p))]
"---"
["Hide Actions (incl. Args)" antlr-hide-actions t]
["Hide Actions (excl. Args)" (antlr-hide-actions 2) t]
["Unhide All Actions" (antlr-hide-actions 0) t]
"---"
["Run Tool on Grammar" antlr-run-tool t]
["Show Makefile Rules" antlr-show-makefile-rules t]
"---"
["Customize Antlr" (customize-group 'antlr) t]))