Server IP : 111.118.215.189 / Your IP : 3.143.244.92 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/emacs/24.3/lisp/emacs-lisp/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:09:01 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/emacs-lisp/easymenu.el ;;; in Emacs version 24.3.1 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; #@460 Determine when equivalent key bindings are computed for easy-menu menus. It can take some time to calculate the equivalent key bindings that are shown in a menu. If the variable is on, then this calculation gives a (maybe noticeable) delay when a mode is first entered. If the variable is off, then this delay will come when a menu is displayed the first time. If you never use menus, turn this variable off, otherwise it is probably better to keep it on. (defvar easy-menu-precalculate-equivalent-keybindings nil (#$ . 563)) (make-obsolete-variable 'easy-menu-precalculate-equivalent-keybindings nil "23.1") (defalias 'easy-menu-intern #[(s) ";\203 \301!\207\207" [s intern] 2]) (put 'easy-menu-intern 'byte-optimizer 'byte-compile-inline-expand) #@3402 Define a pop-up menu and/or menu bar menu specified by MENU. If SYMBOL is non-nil, define SYMBOL as a function to pop up the submenu defined by MENU, with DOC as its doc string. MAPS, if non-nil, should be a keymap or a list of keymaps; add the submenu defined by MENU to the keymap or each of the keymaps, as a top-level menu bar item. The first element of MENU must be a string. It is the menu bar item name. It may be followed by the following keyword argument pairs: :filter FUNCTION FUNCTION must be a function which, if called with one argument---the list of the other menu items---returns the items to actually display. :visible INCLUDE INCLUDE is an expression. The menu is visible if the expression evaluates to a non-nil value. `:included' is an alias for `:visible'. :active ENABLE ENABLE is an expression. The menu is enabled for selection if the expression evaluates to a non-nil value. `:enable' is an alias for `:active'. The rest of the elements in MENU are menu items. A menu item can be a vector of three elements: [NAME CALLBACK ENABLE] NAME is a string--the menu item name. CALLBACK is a command to run when the item is chosen, or an expression to evaluate when the item is chosen. ENABLE is an expression; the item is enabled for selection if the expression evaluates to a non-nil value. Alternatively, a menu item may have the form: [ NAME CALLBACK [ KEYWORD ARG ]... ] where NAME and CALLBACK have the same meanings as above, and each optional KEYWORD and ARG pair should be one of the following: :keys KEYS KEYS is a string; a keyboard equivalent to the menu item. This is normally not needed because keyboard equivalents are usually computed automatically. KEYS is expanded with `substitute-command-keys' before it is used. :key-sequence KEYS KEYS is a hint for speeding up Emacs's first display of the menu. It should be nil if you know that the menu item has no keyboard equivalent; otherwise it should be a string or vector specifying a keyboard equivalent for the menu item. :active ENABLE ENABLE is an expression; the item is enabled for selection whenever this expression's value is non-nil. `:enable' is an alias for `:active'. :visible INCLUDE INCLUDE is an expression; this item is only visible if this expression has a non-nil value. `:included' is an alias for `:visible'. :label FORM FORM is an expression that is dynamically evaluated and whose value serves as the menu item's label (the default is NAME). :suffix FORM FORM is an expression that is dynamically evaluated and whose value is concatenated with the menu entry's label. :style STYLE STYLE is a symbol describing the type of menu item; it should be `toggle' (a checkbox), or `radio' (a radio button), or any other value (meaning an ordinary menu item). :selected SELECTED SELECTED is an expression; the checkbox or radio button is selected whenever the expression's value is non-nil. :help HELP HELP is a string, the help to display for the menu item. Alternatively, a menu item can be a string. Then that string appears in the menu as unselectable text. A string consisting solely of dashes is displayed as a menu separator. Alternatively, a menu item can be a list with the same format as MENU. This is a submenu. (defalias 'easy-menu-define '(macro . #[(symbol maps doc menu) "\304\205\n \305\306 F\307\310D\n \257E\207" [symbol doc maps menu progn defvar nil easy-menu-do-define quote] 7 (#$ . 1326)])) (byte-code "\300\301\302\303#\210\300\301\304\305#\207" [put easy-menu-define lisp-indent-function defun edebug-form-spec (symbolp body)] 4) #@99 Return a binding suitable to pass to `define-key'. This is expected to be bound to a mouse event. (defalias 'easy-menu-binding #[(menu &optional item-name) "9\205 \304NK\305 @\306=\203$ \211A@) \211AA)\2025 \2065 \307!\2034 \310!\2065 \311 )BBB\207" [menu props x item-name menu-prop menu-item :label keymapp keymap-prompt ""] 5 (#$ . 5070)]) (defalias 'easy-menu-do-define #[(symbol maps doc menu) "\306@A\"\n\2036 \n L\210\307\n\310\311\312\313\314\315\316\317\nD\320\315\321\322\n\323BB\324BB\325BB\326\nDEE\nEE\257\"\210\327\f!\203A \fC\202B \f\330\211\205w @\331 \332\333@\211;\203b \334!\202d )\"\335 @\"#\210A\211\204J \330+\207" [menu keymap symbol doc maps map easy-menu-create-menu defalias lambda (event) (interactive "@e") x-popup-menu event or and symbolp funcall plist-get get ('menu-prop) (:filter) ('identity) symbol-function keymapp nil define-key vector menu-bar intern easy-menu-binding --dolist-tail-- s] 18]) #@420 Convert MENU to the right thing to return from a menu filter. MENU is a menu as computed by `easy-menu-define' or `easy-menu-create-menu' or a symbol whose value is such a menu. In Emacs a menu filter must return a menu (a keymap), in XEmacs a filter must return a menu items list (without menu name and keywords). This function returns the right thing in the two cases. If NAME is provided, it is used for the keymap. (defalias 'easy-menu-filter-return #[(menu &optional name) "\302!\204 :\203 \303 \206 \304\"\202\"