%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/share/emacs/27.2/lisp/
Upload File :
Create Path :
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=\203eA\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\343T\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\203BV\204\211\313U\204QSH\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\"\f\321X\203\243\f\262\fT\211>\204\211\320\315\"\210\202\211\314\211\2620\210\211\203\261\211B\211\203\275\322!P\202\303\307GT\323\"PAB\207" [tmm-mid-prompt tmm-shortcut-words tmm-shortcut-style tmm-short-cuts tmm-next-shortcut-digit ignore " " make-string 45 string-match "(" 0 nil done "\\w+" 46 throw 57 char-to-string 32] 11 (#$ . 7957)])
(put 'tmm-add-one-shortcut 'byte-optimizer 'byte-compile-inline-expand)
#@19 

(fn MINIBUFFER)
(defalias 'tmm-define-keys #[257 "\302 \303\304\"\210\211\2037\211@	<\203\305\306!\307#\210\2020\305\306\227!\307#\210\305\306\226!\307#\210A\266\202\202\210\203Z\305\310\311#\210\305\312\311#\210\305\313\311#\210\305\314\315#\210\305\316\317#\210\320 \321\322\320 \"!\210\207" [tmm-short-cuts tmm-shortcut-style make-sparse-keymap suppress-keymap t define-key char-to-string tmm-shortcut [pageup] tmm-goto-completions [prior] "v" "" next-history-element "" previous-history-element current-local-map use-local-map append] 8 (#$ . 8745)])
(defalias 'tmm-completion-delete-prompt #[0 "rq\210eb\210`\301\302!|)\207" [standard-output search-forward "Possible completions are:\n"] 3])
#@58 Remove the mouse-face property from inactive menu items.
(defalias 'tmm-remove-inactive-mouse-face #[0 "\302\303\304G\305\"P\306\212eb\210m\2041\307`\310\"\262\311!\203+\312`\313#\210\314`\315#\210\211b\210\202)\316\306!)\207" [tmm-mid-prompt inhibit-read-only t " " make-string 45 nil next-single-char-property-change mouse-face looking-at remove-text-properties (mouse-face nil) add-text-properties (face tmm-inactive) set-buffer-modified-p] 7 (#$ . 9477)])
(defalias 'tmm-add-prompt #[0 "\204\304\305!\210\306\307!\n\204\310\311\312\313#\210\314\216\315 \210)r\316q\210\317 \210\n\205C\307\320\316!eb\210\nc\210\211\205@\321\322\211\211\211\307&)\266\202)\207" [tmm-c-prompt tmm-old-mb-map tmm-completion-prompt inhibit-read-only error "No active menu entries" tmm-define-keys t add-hook completion-setup-hook tmm-completion-delete-prompt append #[0 "\300\301\302\"\207" [remove-hook completion-setup-hook tmm-completion-delete-prompt] 3] minibuffer-completion-help "*Completions*" tmm-remove-inactive-mouse-face get-buffer-window fit-window-to-buffer nil] 9])
#@42 Choose the shortcut that the user typed.
(defalias 'tmm-shortcut #[0 "\305	9\203\f	!\262\n>\205\\\306 \307\232\203*eb\210\310\311\312!Q!\210\313 \202\\\314 d|\210\f\211\203V\211@\315@\316GT@G^#\312!P\230\203O\211@\262A\266\202\2020\210\211c\210\317 \207" [last-command-event tmm-shortcut-style tmm-short-cuts tmm-mid-prompt tmm-km-list nil buffer-name "*Completions*" re-search-forward "\\(^\\|[ 	]\\)" char-to-string choose-completion minibuffer-prompt-end substring 0 exit-minibuffer] 9 (#$ . 10570) nil])
#@33 Jump to the completions buffer.
(defalias 'tmm-goto-completions #[0 "\301 \211d{\211d|\266\302\303!\210\304!\210\305!\207" [tmm-c-prompt minibuffer-prompt-end switch-to-buffer-other-window "*Completions*" search-forward search-backward] 3 (#$ . 11104) nil])
#@412 Prepend (DOCSTRING EVENT BINDING) to free variable `tmm-km-list'.
The values are deduced from the argument ELT, that should be an
element of keymap, an `x-popup-menu' argument, or an element of
`x-popup-menu' argument (when IN-X-MENU is not-nil).
This function adds the element only if it is not already present.
It uses the free variable `tmm-table-undef' to keep undefined keys.

(fn ELT &optional IN-X-MENU)
(defalias 'tmm-get-keymap #[513 "\302\211\211\211\211\211@A\262	\303=\203\211\302BB\211\202!\304\"\204\324<\203;\305	!\204H@\306=\202E9\203O\307	!\203O\262\202\232\243<\203g\305	\243!\204v\243@\306=\202s\2439\203\212\307	\243!\203\212A\262@;\203\232@\262\202\232\243\243<\203\245\305	\243\243!\204\266\243\243@\306=\202\263\243\2439\203\313\307	\243\243!\203\313AA\262@;\203\232@\262\202\232\242\310=\2031\243\243\243\262\242:\203\344\243\262\311	8\262\312	A@!\262\313\314\"\262\203!\262\313\315\"\262\203\312!\205\262\313\316\"\262\203\232\312!\203+\202,\317\262\202\232\243\243\243<\203O\305	\243\243\243!\204b\243\243\243@\306=\202_\243\243\2439\203x\307	\243\243\243!\203xAAA\262@;\203\232@\262\202\232\211;\203\232\211\262\302\262\204\217\242;\203\224\202\230\320	B\262\317=\204\324\203\324\321\302\322#\211\203\323\323!\262\324\325 \311\245\326Z^\327\311\330\331
!\331!#]\332\"Q\262\210\210\203\343;\203\343\262\2039\203\333N\203\312\333N!\203\202\317\262\205!\205!\304	\"\206!BB	B\211\207" [tmm-table-undef tmm-km-list nil undefined assoc keymapp lambda fboundp menu-item 2 eval plist-get :filter :visible :enable ignore keymap where-is-internal t key-description 30 window-width 10 make-string - string-width 32 menu-enable] 19 (#$ . 11373)])
#@312 Return the current binding of KEYSEQ, merging prefix definitions.
If KEYSEQ is a prefix key that has local and global bindings,
we merge them into a single keymap which shows the proper order of the menu.
However, for the menu bar itself, the value does not take account
of `menu-bar-final-items'.

(fn KEYSEQ)
(defalias 'tmm-get-keybind #[257 "\300\301\302 \237B\"\207" [lookup-key keymap current-active-maps] 4 (#$ . 13262)])
(provide 'tmm)

Zerion Mini Shell 1.0