%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/ |
Current File : //usr/local/share/emacs/27.2/lisp/mouse.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\302\303#\210\304\305\306\307\310\311\310\312&\210\313\314\315\316\317DD\320\321\322%\210\313\323\315\316\324DD\325\321\322\326\327&\210\313\330\315\316\331DD\332\326\333\321\334&\210\313\335\315\316\336DD\337\321\322\326\333&\207" [put track-mouse lisp-indent-function 0 custom-declare-group mouse nil "Input from the mouse." :group environment editing custom-declare-variable mouse-yank-at-point funcall function #[0 "\300\207" [nil] 1] "If non-nil, mouse yank commands yank at point instead of at click." :type boolean mouse-drag-copy-region #[0 "\300\207" [nil] 1] "If non-nil, copy to kill-ring upon mouse adjustments of the region.\n\nThis affects `mouse-save-then-kill' (\\[mouse-save-then-kill]) in\naddition to mouse drags." :version "24.1" mouse-1-click-follows-link #[0 "\300\207" [450] 1] "Non-nil means that clicking Mouse-1 on a link follows the link.\n\nWith the default setting, an ordinary Mouse-1 click on a link\nperforms the same action as Mouse-2 on that link, while a longer\nMouse-1 click (hold down the Mouse-1 button for more than 450\nmilliseconds) performs the original Mouse-1 binding (which\ntypically sets point where you click the mouse).\n\nIf value is an integer, the time elapsed between pressing and\nreleasing the mouse button determines whether to follow the link\nor perform the normal Mouse-1 action (typically set point).\nThe absolute numeric value specifies the maximum duration of a\n\"short click\" in milliseconds. A positive value means that a\nshort click follows the link, and a longer click performs the\nnormal action. A negative value gives the opposite behavior.\n\nIf value is `double', a double click follows the link.\n\nOtherwise, a single Mouse-1 click unconditionally follows the link.\n\nNote that dragging the mouse never follows the link.\n\nThis feature only works in modes that specifically identify\nclickable text as links, so it may not work with some external\npackages. See `mouse-on-link-p' for details." "22.1" (choice (const :tag "Disabled" nil) (const :tag "Double click" double) (number :tag "Single click time limit" :value 450) (other :tag "Single click" t)) mouse-1-click-in-non-selected-windows #[0 "\300\207" [t] 1] "If non-nil, a Mouse-1 click also follows links in non-selected windows.\n\nIf nil, a Mouse-1 click on a link in a non-selected window performs\nthe normal mouse-1 binding, typically selects the window and sets\npoint at the click position."] 8) (defvar mouse--last-down nil) #@25 (fn &optional PROMPT) (defalias 'mouse--down-1-maybe-follows-link #[256 "\203\n \242\303 B\304\207" [mouse-1-click-follows-link last-input-event mouse--last-down current-time nil] 3 (#$ . 2905)]) #@153 Turn `mouse-1' events into `mouse-2' events if follows-link. Expects to be bound to `(double-)mouse-1' in `key-translation-map'. (fn &optional PROMPT) (defalias 'mouse--click-1-maybe-follows-link #[256 "\205\226 \204\n \304\207 \305=\203 \n\242\306=\2028 \n\242\307=\205\226 \247\203; \310W\203- \311\202. \312\313A!\314 !\315\245\"\205\226 @\316\317\n\242D!=\205\226 \320\321\n!!\211\205\224 \204a \322 \321\n!\211@\262=\205\224 \323!\203o \324\310H!\202\224 \305=\203y \325\202z \326\211\327N\204\211 \330\327\n@\327N#\210\n\211\240\266\324\n!\262\262\207" [mouse--last-down mouse-1-click-follows-link last-input-event mouse-1-click-in-non-selected-windows nil double double-mouse-1 mouse-1 0 #[514 "\300\"\207" [time-less-p] 5 "\n\n(fn A B)"] time-less-p time-since abs 1000.0 event-convert-list down mouse-on-link-p event-start selected-window arrayp vector double-mouse-2 mouse-2 event-kind put] 8 (#$ . 3113)]) (byte-code "\301\302\303#\210\301\304\303#\210\301\305\306#\210\301\307\306#\207" [key-translation-map define-key [down-mouse-1] mouse--down-1-maybe-follows-link [double-down-mouse-1] [mouse-1] mouse--click-1-maybe-follows-link [double-mouse-1]] 4) #@215 Show menu for minor mode specified by INDICATOR. Interactively, INDICATOR is read using completion. If there is no menu defined for the minor mode, then create one with items `Turn Off' and `Help'. (fn INDICATOR) (defalias 'minor-mode-menu-from-indicator #[257 "\301!\211\302N\206\n \211\204 \303\304\"\210\236\243\305!\205! \306\307\"\211\203+ \310!\202W \311!\205W \312\313\314\315\316\317\320\313\321 \"#!#\322\323\324F\325\323\326\327\330\331\332\333 DDFFF\262\211\203c \334!\202f \335\336!\266\202\207" [minor-mode-map-alist lookup-minor-mode-from-indicator :minor-mode-function error "Cannot find minor mode for `%s'" keymapp lookup-key [menu-bar] mouse-menu-non-singleton fboundp keymap format "%s - %s" capitalize replace-regexp-in-string "-" " " "%S" turn-off menu-item "Turn off minor mode" help "Help for minor mode" lambda nil (interactive) describe-function quote popup-menu message "No menu available"] 17 (#$ . 4310) (byte-code "\300\301\302 \"C\207" [completing-read "Minor mode indicator: " describe-minor-mode-completion-table-for-indicator] 3)]) #@82 Show minor-mode menu for EVENT on minor modes area of the mode line. (fn EVENT) (defalias 'mouse-minor-mode-menu #[257 "\300A@8@\301!\207" [4 minor-mode-menu-from-indicator] 4 (#$ . 5400) "@e"]) (defalias 'mouse-menu-major-mode-map #[0 "\302\303\304\"\210\305\306 \205 \307\310!!\211\203 \311\312!\313P!\202 \203' \314\"\210\207" [mode-name menu-bar-edit-menu run-hooks activate-menubar-hook menu-bar-update-hook mouse-menu-non-singleton current-local-map local-key-binding [menu-bar] make-sparse-keymap format-mode-line " Mode" set-keymap-parent] 5]) #@165 Return menu keybar MENUBAR, or a lone submenu inside it. If MENUBAR defines exactly one submenu, return just that submenu. Otherwise, return MENUBAR. (fn MENUBAR) (defalias 'mouse-menu-non-singleton #[257 "\211\205. \300C\301\302\303\304\305\306!\307\"\310\311%\312!\"\210\211\242\313=\203$ \202, \314\306\242@!\"\262\207" [nil map-keymap make-byte-code 514 "\300\211\242\203\n \301\202 B\240\207" vconcat vector [t] 5 "\n\n(fn K V)" keymap-canonicalize t lookup-key] 9 (#$ . 5970)]) #@143 Return a keymap equivalent to the menu bar. The contents are the items that would be in the menu bar whether or not it is actually displayed. (defalias 'mouse-menu-bar-map #[0 "\302\303\304\"\210\305 \205 \306\305 \307\"\306\310\"\311\312\313\314!\"\205 A@A@\2039 ;\2049 \315\316 !\317PABB\262\211;\204F \315\320ABB\262\321\322$\207" [global-map mode-name run-hooks activate-menubar-hook menu-bar-update-hook current-local-map lookup-key [menu-bar] [menu-bar] mapcar #[257 "\211@A\211A@\211;\204 \300\301\302\303\304\305!#!\306PABB\262\207" [keymap capitalize subst-char-in-string 45 32 symbol-name " Menu"] 11 "\n\n(fn MENU)"] minor-mode-key-binding [menu-bar] keymap format-mode-line " Mode Menu" "Global Menu" apply append] 10 (#$ . 6472)]) #@143 Pop up a mode-specific menu of mouse commands. Default to the Edit menu if the major mode doesn't define a menu. (fn EVENT &optional PREFIX) (defalias 'mouse-major-mode-menu #[513 "\300\301\302\"\210\303\304 #\207" [run-hooks activate-menubar-hook menu-bar-update-hook popup-menu mouse-menu-major-mode-map] 6 (#$ . 7248) "@e\nP"]) (make-obsolete 'mouse-major-mode-menu 'mouse-menu-major-mode-map "23.1") #@191 Pop up a menu equivalent to the menu bar for keyboard EVENT with PREFIX. The contents are the items that would be in the menu bar whether or not it is actually displayed. (fn EVENT PREFIX) (defalias 'mouse-popup-menubar #[514 "\300\301\302\"\210\303\304 \250?\205 #\207" [run-hooks activate-menubar-hook menu-bar-update-hook popup-menu mouse-menu-bar-map] 6 (#$ . 7662) "@e \nP"]) (make-obsolete 'mouse-popup-menubar 'mouse-menu-bar-map "23.1") #@160 Popup a menu like either `mouse-major-mode-menu' or `mouse-popup-menubar'. Use the former if the menu bar is showing, otherwise the latter. (fn EVENT PREFIX) (defalias 'mouse-popup-menubar-stuff #[514 "\300\301\302\"\210\303\304\305\306\"\206 \307\307U\203 \310 \202 \311 #\207" [run-hooks activate-menubar-hook menu-bar-update-hook popup-menu frame-parameter nil menu-bar-lines 0 mouse-menu-bar-map mouse-menu-major-mode-map] 6 (#$ . 8119) "@e\nP"]) (make-obsolete 'mouse-popup-menubar-stuff nil "23.1") #@14 (fn EVENT) (defalias 'mouse-minibuffer-check #[257 "\300!\211@\262\301!\203 \302!\204 \303\304!\210\210\305\306!\207" [event-start window-minibuffer-p minibuffer-window-active-p user-error "Minibuffer window is not active" run-hooks mouse-leave-buffer-hook] 4 (#$ . 8636)]) #@135 Delete the window you click on. Do nothing if the frame has just one window. This command must be bound to a mouse click. (fn CLICK) (defalias 'mouse-delete-window #[257 "\300\301!?\205 \302!\210\303\304!\211@\262!\207" [one-window-p t mouse-minibuffer-check delete-window event-start] 4 (#$ . 8925) "e"]) #@61 Select the window clicked on; don't move point. (fn CLICK) (defalias 'mouse-select-window #[257 "\300!\210\301 \302\303!\211@\262!\304\303!\211@\262!\210\305!\210\306!\210\211=\206/ \307\301 \310 S\311#\207" [mouse-minibuffer-check selected-frame window-frame event-start select-window raise-frame select-frame set-mouse-position frame-width 0] 7 (#$ . 9242) "e"]) (byte-code "\300\301\302\303#\210\304\301\302\305#\207" [defalias mouse-tear-off-window tear-off-window nil make-obsolete "24.4"] 4) #@87 Delete the selected window, and create a new frame displaying its buffer. (fn CLICK) (defalias 'tear-off-window #[257 "\300!\210\301!\211@\262\302!\303 \304!\210\305!\210\306!\207" [mouse-minibuffer-check event-start window-buffer make-frame select-frame switch-to-buffer delete-window] 6 (#$ . 9755) (list last-nonmenu-event)]) #@49 Delete all windows except the one you click on. (defalias 'mouse-delete-other-windows #[0 "\300 \207" [delete-other-windows] 1 (#$ . 10098) "@"]) #@169 Select Emacs window mouse is on, then split it vertically in half. The window is split at the line clicked on. This command must be bound to a mouse click. (fn CLICK) (defalias 'mouse-split-window-vertically #[257 "\302!\210\303!\304\211@\262!\210\305\306!!AT\307 Z\211W\203' \310\311!\2021 \312\313]^!)\266\203\207" [window-min-height window-combination-resize mouse-minibuffer-check event-start select-window posn-col-row event-end window-height user-error "Window too short to split" nil split-window-vertically] 8 (#$ . 10251) "@e"]) #@173 Select Emacs window mouse is on, then split it horizontally in half. The window is split at the column clicked on. This command must be bound to a mouse click. (fn CLICK) (defalias 'mouse-split-window-horizontally #[257 "\302!\210\303!\304\211@\262!\210\305\306!!@T\307 Z\211W\203' \310\311!\2021 \312\313]^!)\266\203\207" [window-min-width window-combination-resize mouse-minibuffer-check event-start select-window posn-col-row event-end window-width user-error "Window too narrow to split" nil split-window-horizontally] 8 (#$ . 10809) "@e"]) #@214 Drag a mode line, header line, or vertical line with the mouse. START-EVENT is the starting mouse event of the drag action. LINE must be one of the symbols `header', `mode', or `vertical'. (fn START-EVENT LINE) (defalias 'mouse-drag-line #[514 "\302\303!\210\304\305!C\211\242\211@\262C\306\242!\307=\203+ \310\242!\242\3118\262@\\\2028 \312\242!\242\3118\262A\\C\211\242C\313\314C\314C\314C \315\267\202\200 \316\317\n\242\313#\240\210\202\200 \202\200 \320!\211\247\203j \211\304U\203 \321\322\"\323=\203 \316\323\242\313#\240\210\210\314C\324\325\326\327\330& \331\"\332\333\334& \335\336\337 \340\341\342#\210\340\343\342#\210\340\344\342#\210\340\345#\210\340\346\324\304\347\327\330 !\350\"\351\314\211&#\210\307=\203\340\352\353\354\324\304\347\327\330!\350\"\351\314\211&\355\324\325\356\327\330!\350\"\311\357%\257#\210\340\360#\210\340\361#\210\340\362#\210\340\363#\210\340\364#\210\211\262\313\324\304\365\327\330 !\366\"\311$#\240\266\203)\207" [echo-keystrokes track-mouse run-hooks mouse-leave-buffer-hook 0 event-start window-frame vertical window-pixel-left 2 window-pixel-top t nil #s(hash-table size 3 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (header 74 mode 88 vertical 91)) window-in-direction above frame-right-divider-width frame-parameter vertical-scroll-bars left make-byte-code 257 "\211:\204 \311\207\300\312=\203\256 \301\313!\240\210\303\301\242\3148\262@\240\210\315\306\301\242\211@\262\240!\203d \303\316\306\242!\303\242\\\240\210\301\242A@\204d \317\306\242!\320=\203O \303\321\306\242!\303\242\\\240\210\303\322\323\306\242!@\324\306\242!@\206_ \325\303\242#\240\210\307\303\242\304\242Z\240\325U\204\251 \307\242\325V\203\206 \303\242\316\302\242!\326\302\242!\\W\204\251 \307\242\325W\203\234 \303\242\316\302\242!\326\302\242!\\V\204\251 \310\327\240\210\330\302\242\307\242\327\211$\210\304\303\242\240\207\305\205R\301\313!\240\210\306\301\242\211@\262\240\210\303\301\242\3148\262A\240\210\315\306\242!\203 \303\331\306\242!\303\242\\\240\210\301\242\211A@:\203\355 \211A@@\202\360 \211A@\2119\205\366 \211\262\262\332>\203 \303\333\306\242!\303\242\\\240\210\307\303\242\304\242Z\240\325U\204N\307\242\325V\203+\303\242\331\302\242!\334\302\242!\\W\204N\307\242\325W\203A\303\242\331\302\242!\334\302\242!\\V\204N\310\327\240\210\330\302\242\307\242\311\327$\210\304\303\242\240\207" vconcat vector [nil vertical event-start 2 window-live-p window-pixel-left window-current-scroll-bars left window-scroll-bar-width + window-fringes window-margins 0 window-pixel-width t adjust-window-trailing-edge window-pixel-top (nil left-fringe right-fringe left-margin right-margin) window-header-line-height window-pixel-height] 6 "\n\n(fn EVENT)" "e" dragging set-transient-map make-sparse-keymap define-key [switch-frame] ignore [select-window] [scroll-bar-movement] [mouse-movement] [drag-mouse-1] "\300\242 \207" [] 1 [mouse-1] menu-item "" :filter "\300\242\205 \211\207" "\n\n(fn CMD)" [mode-line] [header-line] [vertical-line] [right-divider] [bottom-divider] "\300\211\207" [track-mouse]] 30 (#$ . 11374)]) #@285 Change the height of a window by dragging on its mode line. START-EVENT is the starting mouse event of the drag action. If the drag happens in a mode line on the bottom of a frame and that frame's `drag-with-mode-line' parameter is non-nil, drag the frame instead. (fn START-EVENT) (defalias 'mouse-drag-mode-line #[257 "\301!\211\211@\262\302!\303!?\206Y \304\305\"\2032 \306!\302!=\205- ?\206- \211\307 =\262\2039 \310\311\"\202Y \312\313\"\205Y \304\305\"\205Y \306!\302!=?\262\205Y \314\315\"\207" [resize-mini-windows event-start window-frame window-live-p window-at-side-p bottom minibuffer-window active-minibuffer-window mouse-drag-line mode frame-parameter drag-with-mode-line mouse-drag-frame move] 7 (#$ . 14553) "e"]) #@288 Change the height of a window by dragging on its header line. START-EVENT is the starting mouse event of the drag action. If the drag happens in a header line on the top of a frame and that frame's `drag-with-header-line' parameter is non-nil, drag the frame instead. (fn START-EVENT) (defalias 'mouse-drag-header-line #[257 "\300!\211\211@\262\301!\203 \302\303\"\204 \304\305\"\202, \306!\307\310\"\205* \311\312\"\262\207" [event-start window-live-p window-at-side-p top mouse-drag-line header window-frame frame-parameter drag-with-header-line mouse-drag-frame move] 7 (#$ . 15310) "e"]) #@140 Change the width of a window by dragging on a vertical line. START-EVENT is the starting mouse event of the drag action. (fn START-EVENT) (defalias 'mouse-drag-vertical-line #[257 "\300\301\"\207" [mouse-drag-line vertical] 4 (#$ . 15922) "e"]) #@91 Helper function for `mouse-drag-frame'. (fn FRAME X-DIFF Y-DIFF &optional X-MOVE Y-MOVE) (defalias 'mouse-resize-frame #[1283 "\300!\211@A\301\302V\203\"