%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/ |
Current File : //usr/local/share/emacs/27.2/lisp/avoid.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\304\305\306\307&\210\310\311\302\312\313\314\315\316\317\320\306\301\321\301\322\323&\210\310\324\325\326\317\327\306\301&\210\310\330\331\332\317\327\306\301&\210\310\333\334\335\317\336\306\301&\210\310\337\340\341\317\327\306\301&\210\310\342\343\344\306\301\322\345\317\346\347\350&\207" [custom-declare-group avoid nil "Make mouse pointer stay out of the way of editing." :prefix "mouse-avoidance-" :group mouse custom-declare-variable mouse-avoidance-mode "Activate Mouse Avoidance mode.\nSee function `mouse-avoidance-mode' for possible values.\nSetting this variable directly does not take effect;\nuse either \\[customize] or the function `mouse-avoidance-mode'." :set #[(_symbol value) "\301\206 \302!\207" [value mouse-avoidance-mode none] 2] :initialize custom-initialize-default :type (choice (const :tag "none" nil) (const banish) (const jump) (const animate) (const exile) (const proteus)) :require :version "20.3" mouse-avoidance-nudge-dist 15 "Average distance that mouse will be moved when approached by cursor.\nOnly applies in Mouse Avoidance mode `jump' and its derivatives.\nFor best results make this larger than `mouse-avoidance-threshold'." integer mouse-avoidance-nudge-var 10 "Variability of `mouse-avoidance-nudge-dist' (which see)." mouse-avoidance-animation-delay 0.01 "Delay between animation steps, in seconds." number mouse-avoidance-threshold 5 "Mouse-pointer's flight distance.\nIf the cursor gets closer than this, the mouse pointer will move away.\nOnly applies in Mouse Avoidance modes `animate' and `jump'." mouse-avoidance-banish-position '((frame-or-window . frame) (side . right) (side-pos . 3) (top-or-bottom . top) (top-or-bottom-pos . 0)) "Position to which Mouse Avoidance mode `banish' moves the mouse.\nAn alist where keywords mean:\nFRAME-OR-WINDOW: banish the mouse to corner of frame or window.\nSIDE: banish the mouse on right or left corner of frame or window.\nSIDE-POS: Distance from right or left edge of frame or window.\nTOP-OR-BOTTOM: banish the mouse to top or bottom of frame or window.\nTOP-OR-BOTTOM-POS: Distance from top or bottom edge of frame or window." "24.3" (alist :key-type symbol :value-type (choice symbol integer)) :options ((frame-or-window symbol) (side symbol) (side-pos integer) (top-or-bottom symbol) (top-or-bottom-pos integer))] 16) (defvar mouse-avoidance-state nil) (defvar mouse-avoidance-pointer-shapes nil) (defvar mouse-avoidance-n-pointer-shapes 0) (defvar mouse-avoidance-old-pointer-shape nil) (defvar mouse-avoidance-animating-pointer nil) (defvar mouse-avoidance-timer nil) #@46 Set the shape of the mouse pointer to SHAPE. (defalias 'mouse-avoidance-set-pointer-shape #[(shape) "\302\301!\205 \303\304!\207" [shape x-pointer-shape boundp set-mouse-color nil] 2 (#$ . 3013)]) (put 'mouse-avoidance-set-pointer-shape 'byte-optimizer 'byte-compile-inline-expand) #@79 Return the position of point as (FRAME X . Y). Analogous to `mouse-position'. (defalias 'mouse-avoidance-point-position #[nil "\303 \301 \211\205 \3048\262\211\205* \305 @\n@\306 \245\\A@\nA\307 \245\\BB+\207" [edges posn-at-point x-y window-inside-edges 2 selected-frame frame-char-width frame-char-height] 6 (#$ . 3304)]) (defalias 'mouse-avoidance-set-mouse-position #[(pos) "\302 \303 @ A#\210)\304\207" [f pos selected-frame set-mouse-position t] 4]) #@191 Return t if mouse pointer and point cursor are too close. MOUSE is the current mouse position as returned by `mouse-position'. Acceptable distance is defined by `mouse-avoidance-threshold'. (defalias 'mouse-avoidance-too-close-p #[(mouse) "@AA\306\307\303\"\307\204 \310\n\203\"