%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/ |
Current File : //usr/local/share/emacs/27.2/lisp/tmm.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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\302\303\304\305\306\307\310\311&\207" [require electric custom-declare-group tmm nil "Text mode access to menu-bar." :prefix "tmm-" :group menu] 8) (defvar tmm-old-mb-map nil) (defvar tmm-c-prompt nil) #@104 Return the current menu-bar keymap. The ordering of the return value respects `menu-bar-final-items'. (defalias 'tmm-menubar-keymap #[0 "\300C\300C\301\302\303\304\305\306\"\307\"\310\311%\312\313!\"\210\314\315\242\237\242\237\"B\207" [nil map-keymap make-byte-code 514 "B\n>\203 \301\301\242B\240\202 \300\300\242B\240\207" vconcat vector [menu-bar-final-items] 6 "\n\n(fn KEY BINDING)" tmm-get-keybind [menu-bar] keymap append] 10 (#$ . 638)]) #@455 Text-mode emulation of looking and choosing from a menubar. See the documentation for `tmm-prompt'. X-POSITION, if non-nil, specifies a horizontal position within the menu bar; we make that menu bar item (the one at that position) the default choice. Note that \[menu-bar-open] by default drops down TTY menus; if you want it to invoke `tmm-menubar' instead, customize the variable `tty-menu-open-use-tmm' to a non-nil value. (fn &optional X-POSITION) (defalias 'tmm-menubar #[256 "\300\301!\210\302 \303C\203- \304C\303C\3052+ \306\307\310\311\312\313\n $\314\"\315\316%\"0\266\317\303\242#\207" [run-hooks menu-bar-update-hook tmm-menubar-keymap nil 0 done map-keymap make-byte-code 514 "\302\242\300V\203 \301\303\242\240\210\304\305\306\"\210\303\240\210\307:\205h @\211;\203) \302\"\202f \211\310=\203e A\211:\205` \211@A\211:\205^ \211@A\211\311\312\"\211?\206P \313!\262\262\205\\ \302\"\266\202\266\202\262\202f \306\262\207" vconcat vector [throw done nil #[514 "\300\242G\301#\240\207" [+ 1] 7 "\n\n(fn COLUMN NAME)"] menu-item plist-get :visible eval] 13 "\n\n(fn KEY BINDING)" tmm-prompt] 15 (#$ . 1106) nil]) #@237 Text-mode emulation of looking and choosing from a menubar. This command is used when you click the mouse in the menubar on a console which has no window system but does have a mouse. See the documentation for `tmm-prompt'. (fn EVENT) (defalias 'tmm-menubar-mouse #[257 "\300\301!\3028\262@!\207" [tmm-menubar event-start 2] 5 (#$ . 2269) "e"]) (byte-code "\300\301\302\303\304DD\305\306\307%\207" [custom-declare-variable tmm-mid-prompt funcall function #[0 "\300\207" [#1="==>"] 1 #1#] "String to insert between shortcut and menu item.\nIf nil, there will be no shortcuts. It should not consist only of spaces,\nor else the correct item might not be found in the `*Completions*' buffer." :type string] 6) #@34 A place to store minibuffer map. (defvar tmm-mb-map nil (#$ . 2987)) (byte-code "\300\301\302\303\304DD\305\306\307%\210\300\310\302\303\311DD\312\306\313%\210\300\314\302\303\315DD\316\306\317%\210\320\321\322\323#\207" [custom-declare-variable tmm-completion-prompt funcall function #[0 "\300\207" [#1="Press PageUp key to reach this buffer from the minibuffer.\nAlternatively, you can use Up/Down keys (or your History keys) to change\nthe item in the minibuffer, and press RET when you are done, or press the\nmarked letters to pick up your choice. Type C-g or ESC ESC ESC to cancel.\n"] 1 #1#] "Help text to insert on the top of the completion buffer.\nTo save space, you can set this to nil,\nin which case the standard introduction text is deleted too." :type (choice string (const nil)) tmm-shortcut-style #[0 "\300\207" [(downcase upcase)] 1] "What letters to use as menu shortcuts.\nMust be either one of the symbols `downcase' or `upcase',\nor else a list of the two in the order you prefer." (choice (const downcase) (const upcase) (repeat (choice (const downcase) (const upcase)))) tmm-shortcut-words #[0 "\300\207" [2] 1] "How many successive words to try for shortcuts, nil means all.\nIf you use only one of `downcase' or `upcase' for `tmm-shortcut-style',\nspecify nil for this variable." (choice integer (const nil)) custom-declare-face tmm-inactive ((t :inherit shadow)) "Face used for inactive menu items."] 6) #@14 (fn ITEMS) (defalias 'tmm--completion-table #[257 "\300\301\302\303\304!\305\"\306\307%\207" [make-byte-code 771 "\211\301=\203 \302\207\303\300$\207" vconcat vector [metadata (metadata (display-sort-function . identity)) complete-with-action] 8 "\n\n(fn STRING PRED ACTION)"] 7 (#$ . 4425)]) (defvar tmm--history nil) #@694 Text-mode emulation of calling the bindings in keymap. Creates a text-mode menu of possible choices. You can access the elements in the menu in two ways: *) via history mechanism from minibuffer; *) Or via completion-buffer that is automatically shown. The last alternative is currently a hack, you cannot use mouse reliably. MENU is like the MENU argument to `x-popup-menu': either a keymap or an alist of alists. DEFAULT-ITEM, if non-nil, specifies an initial default choice. Its value should be an event that has a binding in MENU. NO-EXECUTE, if non-nil, means to return the command the user selects instead of executing it. (fn MENU &optional IN-POPUP DEFAULT-ITEM NO-EXECUTE) (defalias 'tmm-prompt #[1025 "\306\307\211\211\211\211\211\211\211\211\310!? \311\312!\210\211\204, \313\314\"\210\202x \211\203w \211@\211;\203? \211\262 \202p \211<\203L \315\"\210\202p \316!\203p \211G\317\211W\203n \211\315HB\"\266\211T\262\202U \266A\266\202\202. \210\211\203\213 \fG\320U\203\213 \f@A\262\202\236\f\204\223 \321\322!\210\f\203b\317 \203\240 \323\f! \203\354 \307\203\352 @\242=\204\352 @:\203\343 @A\242;\204\337 @A\242\324=\203\343 \325\326@\233\327\"\262\211\203\337 \330!\203\343 T\262A\262\202\250 \266\331\332 !P\333\334\307\335\336\337\340\341\342 !\343\"\326\344%\f\"\"!2\2102G\262 \345 \320#28 \203$\211\f8@\202_\346\307C\211\336\317\347\341\342\"\350\"\351$\240\210\336\317\352\341\342!\353\"\351$\216\354\355\242\"\210\356\357P\360\f!\307\361\307\362\3332!&)\266\202\262\n\210\363 \f\"A\262\204\206\364\n\n\"\203\206\365 \nG\"\262 \363 \f\"A\262\204\236\203\236\366 \f\"\262 \363 \f\"A\262@\262A\262 \203\257\202\211\203\275\367\361\307$\202\310!\203\3479\203\315\370!\262\3711\330\372\373!0\202\334\210\202\335\210\367\307\211$\202\205\203\203\370\202=\374!\202-\207" [tmm-short-cuts tmm-old-mb-map tmm-c-prompt tmm-table-undef tmm-km-list tmm-mid-prompt "Menu bar" nil keymapp run-hooks activate-menubar-hook map-keymap #[514 "\300B!\207" [tmm-get-keymap] 5 "\n\n(fn K V)"] tmm-get-keymap vectorp 0 1 error "Empty menu reached" tmm-add-shortcuts menu-item plist-get 4 :visible eval "^." regexp-quote reverse delq mapcar make-byte-code 257 "\301\300@\"\205\n \211@\207" vconcat vector [string-match] "\n\n(fn ELT)" - tmm-add-prompt "\302\303\301\242\"\210\300 \207" [remove-hook minibuffer-setup-hook] 3 "\301\302\300\242\"\207" [remove-hook minibuffer-setup-hook] add-hook minibuffer-setup-hook completing-read-default " (up/down to change, PgUp to menu): " tmm--completion-table t tmm--history assoc string-prefix-p substring try-completion tmm-prompt indirect-function (error) require mouse call-interactively last-command-event] 27 (#$ . 4758)]) #@226 Add shortcuts to cars of elements of the list. Takes a list of lists with a string as car, returns list with shortcuts added to these cars. Stores a list of all the shortcuts in the free variable `tmm-short-cuts'. (fn LIST) (defalias 'tmm-add-shortcuts #[257 "\301\302\303\304!\")\207" [tmm-next-shortcut-digit 48 mapcar tmm-add-one-shortcut reverse] 5 (#$ . 7581)]) #@12 (fn ELT) (defalias 'tmm-add-one-shortcut #[257 "\211AA\305=\203 \306\307G\310\"@QAB\207\211@\311\312\"\313\211\314\3152\250 \203, W\203\211 \311\316#\211\262\203\211 \203B V\204\211 \313U\204Q SH\317U\204~ \n<\203Z \n\202\\ \nC\211\203} \211@\211H!\262>\204v \320\315\"\210A\266\202\202\\ \210T\262\313\225\262\202\"