%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/obsolete/ |
Current File : //usr/local/share/emacs/27.2/lisp/obsolete/lmenu.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; 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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defvar recompute-lucid-menubar 'recompute-lucid-menubar) (defalias 'recompute-lucid-menubar #[nil "\304\305\3061 \307\310 \"0\202 \210\311\312!\210\313\314!\210 \315\211#\210\315\211\207" [lucid-menubar-map current-menubar lucid-failing-menubar lucid-menu-bar-dirty-flag define-key [menu-bar] (error) make-lucid-menu-keymap "menu-bar" message "Invalid data in current-menubar moved to lucid-failing-menubar" sit-for 1 nil] 6]) (defvar lucid-menubar-map (make-sparse-keymap)) (byte-code "\302\236\204\f \302 BB\302\207" [minor-mode-map-alist lucid-menubar-map current-menubar] 2) (defalias 'set-menubar-dirty-flag #[nil "\301 \210\302\211\207" [lucid-menu-bar-dirty-flag force-mode-line-update t] 2]) (defvar add-menu-item-count 0) (defvar make-lucid-menu-keymap-disable nil) (defalias 'make-lucid-menu-keymap #[(menu-name menu-items) "\306!\307\n!\211\203r\n@\310\211\211\211);\203/ \310\311\312)\"\203) \313\202+ )\202J):\203E \314)@)A\")@\202J\315)!\203J\316\317\320*\"!*T*)\321H)\322H\2119\203o M\210\202w \323\310\324FM\210\325 \326\327#\210\330++)GW\203I)+H\331=\203\254 \325 \332)+TH\206\240 \333#\210\330+\\\211+\202\202 )+H\334=\203\300 \330+\\\211+\202\202 )+H\335=\203\324 \330+\\\211+\202\202 )+H\336=\203\350 \330+\\\211+\202\202 )+H\337=\203\374 \330+\\\211+\202\202 )+H9\203\340\341)+H!!\342U\203\343\344)+H\"\210\202\200 +\330U\203=\325 \332)+H\2062\333#\210)G\211+\202\202 \343\345)+H\"\210\202\200 ) \204Z \310\fD AB\241\210\202j\f\203j\346 \347\350\f!!\f B#\210,\nA\211\204\f )\207" [menu-name menu menu-items callback name command make-sparse-keymap reverse nil string-match "^-+$" "" make-lucid-menu-keymap vectorp make-symbol format "menu-function-%d" 0 1 lambda (interactive) put menu-alias t 2 :active menu-enable make-lucid-menu-keymap-disable :suffix :keys :style :selected string-to-char symbol-name 58 error "Unrecognized menu item keyword: %S" "Unexpected menu item value: %S" define-key vector intern item add-menu-item-count i] 6]) #@1157 Pop up a dialog box. A dialog box description is a list. - The first element of the list is a string to display in the dialog box. - The rest of the elements are descriptions of the dialog box's buttons. Each one is a vector of three elements: - The first element is the text of the button. - The second element is the `callback'. - The third element is t or nil, whether this button is selectable. If the `callback' of a button is a symbol, then it must name a command. It will be invoked with `call-interactively'. If it is a list, then it is evaluated with `eval'. One (and only one) of the buttons may be nil. This marker means that all following buttons should be flushright instead of flushleft. The syntax, more precisely: form := <something to pass to `eval'> command := <a symbol or string, to pass to `call-interactively'> callback := command | form active-p := <t, nil, or a form to evaluate to decide whether this button should be selectable> name := <string> partition := `nil' button := `[' name callback active-p `]' dialog := `(' name [ button ]+ [ partition [ button ]+ ] `)' (defalias 'popup-dialog-box #[(data) "@A\306\211\211\f\203H \f@\204 \306B\202A \f@\307H\f@\310H\f@\311H\203; B\202= B+\fA\211\204 \312\313 \237B\"\211\205b \n9\203_ \314\n!\202b \315\n!-\207" [data meaning choice converted tail name nil 0 1 2 x-popup-dialog t call-interactively eval enable callback item] 6 (#$ . 2467)]) (defconst default-menubar nil) #@40 Set the default menubar to be menubar. (defalias 'set-menubar #[(menubar) "\301\302\303!\"\210\304 \207" [menubar set-default current-menubar copy-sequence set-menubar-dirty-flag] 4 (#$ . 4012)]) #@45 Set the buffer-local menubar to be menubar. (defalias 'set-buffer-menubar #[(menubar) "\302\301!\210\303!\304 \207" [menubar current-menubar make-local-variable copy-sequence set-menubar-dirty-flag] 2 (#$ . 4215)]) #@177 Searches MENUBAR for item given by ITEM-PATH-LIST. Returns (ITEM . PARENT), where PARENT is the immediate parent of the item found. Signals an error if the item is not found. (defalias 'find-menu-item #[(menubar item-path-list &optional parent) "\204 \305\306 \"\n:\205} \n\307\211\203N \f@\203G @\310\f@!\203+ \f@\311H\2029 \f@;\2036 \f@\2029 \f@@\227\232\203G \f@\307\211\202 \fA\211\204 A\203y :\203b \312A A#\202| \203o \313\314\315D\"\202| \313\314\316 @D\"\202| B*\207" [parent item-path-list menubar result rest mapcar downcase nil vectorp 0 find-menu-item signal error "not a submenu" "no such submenu"] 5 (#$ . 4439)]) #@312 Make the named menu item be unselectable. PATH is a list of strings which identify the position of the menu item in the menu hierarchy. ("File" "Save") means the menu item called "Save" under the toplevel "File" menu. ("Menu" "Foo" "Item") means the menu item called "Item" under the "Foo" submenu of "Menu". (defalias 'disable-menu-item #[(path) "\306 \n\"\211@A\f\204 \307\310 \203 \311\202 \312\nD\"\210\f:\203) \310\313!\210\f\314\315I\210\316 \210\f,\207" [current-menubar menubar path pair item menu find-menu-item signal error "No such menu item" "No such menu" "can't disable menus, only menu items" 2 nil set-menubar-dirty-flag] 5 (#$ . 5094)]) #@310 Make the named menu item be selectable. PATH is a list of strings which identify the position of the menu item in the menu hierarchy. ("File" "Save") means the menu item called "Save" under the toplevel "File" menu. ("Menu" "Foo" "Item") means the menu item called "Item" under the "Foo" submenu of "Menu". (defalias 'enable-menu-item #[(path) "\306 \n\"\211@A\f\204 \307\310 \203 \311\202 \312\nD\"\210\f:\203* \310\313\n\"\210\f\314\315I\210\316 \210\f,\207" [current-menubar menubar path pair item menu find-menu-item signal error "No such menu item" "No such menu" "%S is a menu, not a menu item" 2 t set-menubar-dirty-flag] 5 (#$ . 5766)]) (defalias 'add-menu-item-1 #[(item-p menu-path item-name item-data enabled-p before) "\203 \227 \3061 \307\n\"@0\202 \210\310\211<\203( \307\fA C\"@\202. \311\312\313D\"\f\204\237 \n\211\203\236 \n=\203Q \307@C\"@\202[ \307A@C\"@\211\204\222 \211\204l \312\314!\210A\203\202 A@\203\202 A\211\202n @C\211CA\244\241\210)\fA\211\204>