Variable: antlr-mode-menu

antlr-mode-menu is a variable defined in antlr-mode.el.gz.

Value

<Comment Out Region> <and> <c-region-is-active-p>                       nil
<Forward/Backward> <keymap> <End of Rule Body> <antlr-inside-rule-p>    nil
<Forward/Backward> <keymap> <Start of Rule Body> <antlr-inside-rule-p>  nil
<Forward/Backward> <keymap> <nil>                                       nil
<Indent Region> <and> <c-region-is-active-p>                            nil
<Uncomment Region> <and> <c-region-is-active-p>                         nil
<nil-13>                                                                nil
<nil-16>                                                                nil
<nil-9>                                                                 nil
<nil>                                                                   nil

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"
             :visible (elt antlr-options-alists 0)
	     :filter ,(lambda (x) (antlr-options-menu-filter 1 x)))
	    ("Insert Grammar Option"
             :visible (elt antlr-options-alists 1)
	     :filter ,(lambda (x) (antlr-options-menu-filter 2 x)))
	    ("Insert Rule Option"
             :visible (elt antlr-options-alists 2)
	     :filter ,(lambda (x) (antlr-options-menu-filter 3 x)))
	    ("Insert Subrule Option"
             :visible (elt antlr-options-alists 3)
	     :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 Subword" subword-forward t]
     ["Forward Subword" subword-backward 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 (eq antlr-tool-version 'antlr-v2)]
    "---"
    ["Customize Antlr" (customize-group 'antlr) t]))