403Webshell
Server IP : 217.160.0.212  /  Your IP : 216.73.216.141
Web Server : Apache
System : Linux www 6.18.51-i1-ampere #1196 SMP Fri Sep 11 20:43:55 CEST 2026 aarch64
User : sws1073854427 ( 1073854427)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/share/emacs/28.2/lisp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/emacs/28.2/lisp//mwheel.elc
;ELC
;;; Compiled
;;; in Emacs version 28.2
;;; with all optimizations.



(require 'timer)
#@50 Alist of all installed mouse wheel key bindings.
(defvar mouse-wheel--installed-bindings-alist nil (#$ . 101))
#@19 

(fn VAR BUTTON)
(defalias 'mouse-wheel-change-button #[514 "\302\"\210\205\303\301!\205	\205\301\304!\207" [mouse-wheel--installed-bindings-alist mouse-wheel-mode set-default boundp 1] 5 (#$ . 218)])
(byte-code "\300\301\302\303\304DD\305\306\307\310\311\312\313&	\210\300\314\302\303\315DD\316\306\307\310\311\312\313&	\210\300\317\302\303\320DD\321\306\307\310\311\312\313&	\210\300\322\302\303\323DD\324\306\307\310\325&\210\300\326\302\303\327DD\330\306\307\310\331\312\313\332\333&\210\300\334\302\303\335DD\336\306\307\310\337&\210\300\340\302\303\341DD\342\306\307\310\337&\210\300\343\302\303\344DD\345\306\307\310\325\332\333&	\210\300\346\302\303\347DD\350\306\307\310\337\332\351&	\210\300\352\302\303\353DD\354\306\307\310\337\332\351&	\207" [custom-declare-variable mouse-wheel-down-event funcall function #[0 "\300\301!\204\f\300\302!\203\303\207\304\207" [featurep w32-win ns-win wheel-up mouse-4] 2 #1=""] "Event used for scrolling down." :group mouse :type symbol :set mouse-wheel-change-button mouse-wheel-up-event #[0 "\300\301!\204\f\300\302!\203\303\207\304\207" [featurep w32-win ns-win wheel-down mouse-5] 2 #1#] "Event used for scrolling up." mouse-wheel-click-event #[0 "\300\207" [mouse-2] 1 #1#] "Event that should be temporarily inhibited after mouse scrolling.\nThe mouse wheel is typically on the mouse-2 button, so it may easily\nhappen that text is accidentally yanked into the buffer when\nscrolling with the mouse wheel.  To prevent that, this variable can be\nset to the event sent when clicking on the mouse wheel button." mouse-wheel-inhibit-click-time #[0 "\300\207" [0.35] 1 #1#] "Time in seconds to inhibit clicking on mouse wheel button after scroll." number mouse-wheel-scroll-amount #[0 "\300\207" [(1 ((shift) . hscroll) ((meta)) ((control) . text-scale))] 1 #1#] "Amount to scroll windows by when spinning the mouse wheel.\nThis is an alist mapping the modifier key to the amount to scroll when\nthe wheel is moved with the modifier key depressed.\nElements of the list have the form (MODIFIER . AMOUNT) or just AMOUNT if\nMODIFIER is nil.\n\nAMOUNT should be the number of lines to scroll, or nil for near full\nscreen.  It can also be a floating point number, specifying the fraction of\na full screen to scroll.  A near full screen is `next-screen-context-lines'\nless than a full screen.\n\nIf AMOUNT is the symbol 'hscroll', this means that with MODIFIER,\nthe mouse wheel will scroll horizontally instead of vertically.\n\nIf AMOUNT is the symbol 'text-scale', this means that with\nMODIFIER, the mouse wheel will change the face height instead of\nscrolling." (cons (choice :tag "Normal" (const :tag "Full screen" :value nil) (integer :tag "Specific # of lines") (float :tag "Fraction of window") (cons (repeat (choice :tag "modifier" (const alt) (const control) (const hyper) (const meta) (const shift) (const super))) (choice :tag "action" (const :tag "Scroll full screen" :value nil) (integer :tag "Scroll specific # of lines") (float :tag "Scroll fraction of window")))) (repeat (cons (repeat (choice :tag "modifier" (const alt) (const control) (const hyper) (const meta) (const shift) (const super))) (choice :tag "action" (const :tag "Scroll full screen" :value nil) (integer :tag "Scroll specific # of lines") (float :tag "Scroll fraction of window") (const :tag "Scroll horizontally" :value hscroll) (const :tag "Change face size" :value text-scale))))) :version "28.1" mouse-wheel-progressive-speed #[0 "\300\207" [t] 1 #1#] "If nil, scrolling speed is proportional to the wheel speed.\nIf non-nil, moving the wheel faster will make scrolling\nprogressively faster.\n\nNote that this has no effect when `mouse-wheel-scroll-amount' specifies\na \"near full screen\" scroll or when the mouse wheel sends key instead\nof button events." boolean mouse-wheel-follow-mouse #[0 "\300\207" [t] 1 #1#] "Whether the mouse wheel should scroll the window that the mouse is over.\nThis affects both the commands for scrolling and changing the\nface height." mouse-wheel-scroll-amount-horizontal #[0 "\300\207" [1] 1 #1#] "Amount to scroll windows horizontally.\nIts value can be changed dynamically by using a numeric prefix argument\nbefore starting horizontal scrolling.\nIt has effect when `mouse-wheel-scroll-amount' binds the value `hscroll'\nto one of modifiers (`Shift' by default)." mouse-wheel-tilt-scroll #[0 "\300\207" [nil] 1 #1#] "Enable horizontal scrolling by tilting mouse wheel or via touchpad.\nAlso see `mouse-wheel-flip-direction'." "26.1" mouse-wheel-flip-direction #[0 "\300\207" [nil] 1 #1#] "Swap direction of `wheel-right' and `wheel-left'.\nBy default, `wheel-right' scrolls the text to the right,\nand `wheel-left' scrolls in the other direction.\nIf this variable is non-nil, it inverts the direction of\nhorizontal scrolling by tilting the mouse wheel.\nAlso see `mouse-wheel-tilt-scroll'."] 12)
#@14 

(fn EVENT)
(defalias 'mwheel-event-button #[257 "\302!\211\303=\203AAA@\211\304W\203\207	\207\207" [mouse-wheel-up-event mouse-wheel-down-event event-basic-type mouse-wheel 0] 5 (#$ . 5118)])
#@14 

(fn EVENT)
(defalias 'mwheel-event-window #[257 "\300!\211@\207" [event-start] 3 (#$ . 5325)])
#@59 Timer running while mouse wheel click event is inhibited.
(defvar mwheel-inhibit-click-event-timer nil (#$ . 5429))
#@49 Handler for `mwheel-inhibit-click-event-timer'.
(defalias 'mwheel-inhibit-click-timeout #[0 "\301\302\303\304\"\207" [mwheel-inhibit-click-event-timer nil remove-hook pre-command-hook mwheel-filter-click-events] 3 (#$ . 5551)])
#@62 Discard `mouse-wheel-click-event' while scrolling the mouse.
(defalias 'mwheel-filter-click-events #[0 "\303!	=\205\304\211\207" [last-input-event mouse-wheel-click-event this-command event-basic-type ignore] 2 (#$ . 5786)])
#@49 Function that does the job of scrolling upward.
(defvar mwheel-scroll-up-function 'scroll-up (#$ . 6021))
#@51 Function that does the job of scrolling downward.
(defvar mwheel-scroll-down-function 'scroll-down (#$ . 6133))
#@47 Function that does the job of scrolling left.
(defvar mwheel-scroll-left-function 'scroll-left (#$ . 6251))
#@48 Function that does the job of scrolling right.
(defvar mwheel-scroll-right-function 'scroll-right (#$ . 6365))
#@32 Event used for scrolling left.
(defvar mouse-wheel-left-event (byte-code "\300\301!\204\f\300\302!\203\303\207\304\207" [featurep w32-win ns-win wheel-left mouse-6] 2) (#$ . 6482))
#@33 Event used for scrolling right.
(defvar mouse-wheel-right-event (byte-code "\300\301!\204\f\300\302!\203\303\207\304\207" [featurep w32-win ns-win wheel-right mouse-7] 2) (#$ . 6672))
#@196 Return window for mouse wheel event EVENT.
If `mouse-wheel-follow-mouse' is non-nil, return the window that
the mouse pointer is over.  Otherwise, return the currently
active window.

(fn EVENT)
(defalias 'mouse-wheel--get-scroll-window #[257 "\30127\203\302!\202\303 \304!\205\305\306!\307\"\310!\2054\311 \211@A\312\313\314#\315\316$\266\203\266\2020\206=\302!\207" [mouse-wheel-follow-mouse found mwheel-event-window selected-window window-live-p frame-parameter window-frame mouse-wheel-frame frame-live-p mouse-absolute-pixel-position walk-window-tree make-closure #[257 "\302\303\304\211$\211@\300X\205)\300\3058X\205)\211A@\301X\205)\301\3068X\205)\307\310\"\207" [V0 V1 window-edges nil t 2 3 throw found] 6 "\n\n(fn WINDOW-1)"] nil t] 11 (#$ . 6866)])
#@389 Scroll up or down according to the EVENT.
This should be bound only to mouse buttons 4, 5, 6, and 7 on
non-Windows systems.

Optional argument ARG (interactively, prefix numeric argument) controls
the step of horizontal scrolling.

The variable `mouse-wheel-scroll-amount-horizontal' records the last
value of ARG, and the command uses it in subsequent scrolls.

(fn EVENT &optional ARG)
(defalias 'mwheel-scroll #[513 "\306 \307!\211=\205\242\310=\205\311 \312\313\312\314\312\315\316!\"\"\"\317	\"\320=\2042\321\322\"\210\203=A\262\202L	\211A\262\242\211\262:\204>\210\323!\203[\324\325 _!T\262\n\203\201\247\203\201\211:\203{\3268\250\203{\3268\262\202~\327\262_\262\247\203\243\211:\203\235\3308\250\203\235\3308\262\202\240\327\262_\262\3311\235\3321\217\333\334$\216\335!\336=\203\346\211=\203\346\337!\203\326\340V\203\326
\203\3371\202\3412\f!\202\206\211=\203\3411\3703!0\202\206\210\342\2163 )\202\206\336=\2030\2114=\2030\337!\203 \340V\203 
\203)2\202+1\f!\202\206\2114=\203K\3431C5!0\202\206\2105 \210\202D\2116=\203g7\205\206
\203`2\202b1!\202\206\2118=\203\2037\205\206
\203|1\202~2!\202\206\344\345!\262)00\210\202\2470\210\346\347\350!!\210\351\262\202\247\210\346\347\352!!\210\351\262\211?\205\3219\205\321:\205\321;\203\303\353;!\210\202\310\354\355\356\"\210\357:\320\360#\211;\207" [transient-mark-mode mouse-wheel-scroll-amount mouse-wheel-progressive-speed mouse-wheel-down-event mouse-wheel-scroll-amount-horizontal mouse-wheel-flip-direction selected-window mouse-wheel--get-scroll-window only window-point delq click double triple event-modifiers assoc nil select-window mark-for-redisplay floatp truncate window-height 2 1 3 (end-of-buffer) (beginning-of-buffer) make-closure #[0 "\301\300=\203\302\205\302\303 U?\205#\303 \302b\210\304 \210\211b\262\207\305\300\306\"\207" [V0 V1 V2 window-point deactivate-mark select-window t] 3] mwheel-event-button hscroll natnump 0 (beginning-of-buffer) #[0 "\300\301 e\"\207" [set-window-start selected-window] 3] (end-of-buffer) error "Bad binding in mwheel-scroll" message error-message-string (beginning-of-buffer) t (end-of-buffer) cancel-timer add-hook pre-command-hook mwheel-filter-click-events run-with-timer mwheel-inhibit-click-timeout mwheel-scroll-left-function mwheel-scroll-right-function mwheel-scroll-down-function mouse-wheel-up-event mwheel-scroll-up-function mouse-wheel-left-event mouse-wheel-tilt-scroll mouse-wheel-right-event mouse-wheel-click-event mouse-wheel-inhibit-click-time mwheel-inhibit-click-event-timer] 13 (#$ . 7661) (list last-input-event current-prefix-arg)])
(put 'mwheel-scroll 'scroll-command t)
#@89 Increase or decrease the height of the default face according to the EVENT.

(fn EVENT)
(defalias 'mouse-wheel-text-scale #[257 "\302 \303!\304!\305\306\"\210\307\310\"\216\211=\203\311\312!\202'\211	=\205'\313\312!)\207" [mouse-wheel-down-event mouse-wheel-up-event selected-window mouse-wheel--get-scroll-window mwheel-event-button select-window mark-for-redisplay make-closure #[0 "\301\300!\207" [V0 select-window] 2] text-scale-increase 1 text-scale-decrease] 7 (#$ . 10432) (list last-input-event)])
#@121 Bind mouse wheel button KEY to function FUN.
Save it for later removal by `mouse-wheel--remove-bindings'.

(fn KEY FUN)
(defalias 'mouse-wheel--add-binding #[514 "\301\"\210BB\211\207" [mouse-wheel--installed-bindings-alist global-set-key] 5 (#$ . 10954)])
#@88 Remove all mouse wheel key bindings.
This is a helper function for `mouse-wheel-mode'.
(defalias 'mouse-wheel--remove-bindings #[0 "\211\203\"\211@\211@A\301\302 \"=\203\303!\210\266A\266\202\202\210\304\211\207" [mouse-wheel--installed-bindings-alist lookup-key current-global-map global-unset-key nil] 7 (#$ . 11223)])
#@198 Return list of key vectors for BINDING and EVENT.
BINDING is an element in `mouse-wheel-scroll-amount'.  EVENT is
an event used for scrolling, such as `mouse-wheel-down-event'.

(fn BINDING EVENT)
(defalias 'mouse-wheel--create-scroll-keys #[514 "\300\301\302\303\304\305\306\307\257:\203\310\311@C\"!C\207\310!\312\313\314\"\"B\207" [left-margin right-margin left-fringe right-fringe vertical-scroll-bar horizontal-scroll-bar mode-line header-line vector append mapcar make-closure #[257 "\301\300\"\207" [V0 vector] 4 "\n\n(fn PREFIX)"]] 10 (#$ . 11564)])
(byte-code "\300\301\302\303\304DD\305\306\307\310\311\312\313\314\315&\207" [custom-declare-variable mouse-wheel-mode funcall function #[0 "\300\207" [t] 1 ""] "Non-nil if Mouse-Wheel mode is enabled.\nSee the `mouse-wheel-mode' command\nfor a description of this minor mode.\nSetting this variable directly does not take effect;\neither customize it (see the info node `Easy Customization')\nor call the function `mouse-wheel-mode'." :set custom-set-minor-mode :initialize custom-initialize-default :type boolean :group mouse] 12)
#@624 Toggle mouse wheel support (Mouse Wheel mode).

This is a minor mode.  If called interactively, toggle the
`Mouse-Wheel mode' mode.  If the prefix argument is positive, enable
the mode, and if it is zero or negative, disable the mode.

If called from Lisp, toggle the mode if ARG is `toggle'.  Enable the
mode if ARG is nil, omitted, or is a positive number.  Disable the
mode if ARG is a negative number.

To check whether the minor mode is enabled in the current buffer,
evaluate `(default-value \='mouse-wheel-mode)'.

The mode's hook is called both when the mode is enabled and when it is
disabled.

(fn &optional ARG)
(defalias 'mouse-wheel-mode #[256 "\302 \303\301\304=\203\305\301!?\202!\247\203 \306W\203 \307\202!\310\"\210\311\300!\2038\312\301\"\305\301!\2038\301B\313 \210	\203B\314 \210\315\316\305\301!\203N\317\202O\320\"\210\321\322!\203w\323\301!\210\302 \203g\211\302 \232\203w\324\325\305\301!\203s\326\202t\327\330#\210\210\331 \210\305\301!\207" [global-minor-modes mouse-wheel-mode current-message set-default toggle default-value 1 nil t boundp delq mouse-wheel--remove-bindings mouse-wheel--setup-bindings run-hooks mouse-wheel-mode-hook mouse-wheel-mode-on-hook mouse-wheel-mode-off-hook called-interactively-p any customize-mark-as-set message "Mouse-Wheel mode %sabled%s" "en" "dis" "" force-mode-line-update] 6 (#$ . 12673) (byte-code "\203\n\301!\202\302C\207" [current-prefix-arg prefix-numeric-value toggle] 2)])
(defvar mouse-wheel-mode-hook nil)
(byte-code "\301\302N\204\f\303\301\302\304#\210\303\301\305\306#\210\303\301\307\310C#\210\311\312\310\313\300!\205#\310\211%\207" [mouse-wheel-mode-map mouse-wheel-mode-hook variable-documentation put "Hook run after entering or leaving `mouse-wheel-mode'.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it.  (This is true for all hook variables.)" custom-type hook standard-value nil add-minor-mode mouse-wheel-mode boundp] 6)
(defalias 'mouse-wheel--setup-bindings #[0 "\211\205c\211@\211:\2032\211A\305=\2032	\nD\211\203.\211@\306\307@@D!\310\"\210A\266\202\202\210\202\\	\n\fF\211\203[\211@\311\"\211\203S\211@\306\312\"\210A\266\202\202A\210A\266\202\2027\210A\266\202\202\207" [mouse-wheel-scroll-amount mouse-wheel-down-event mouse-wheel-up-event mouse-wheel-left-event mouse-wheel-right-event text-scale mouse-wheel--add-binding vector mouse-wheel-text-scale mouse-wheel--create-scroll-keys mwheel-scroll] 9])
(byte-code "\203\301 \210\301\207" [mouse-wheel-mode mouse-wheel--setup-bindings] 1)
#@55 Enable mouse wheel support.

(fn &optional UNINSTALL)
(defalias 'mwheel-install #[256 "\300\203	\301\202\n\302!\207" [mouse-wheel-mode -1 1] 3 (#$ . 15258)])
(make-obsolete 'mwheel-install 'mouse-wheel-mode "27.1")
(defvar mwheel-installed-bindings nil)
(make-obsolete-variable 'mwheel-installed-bindings nil "28.1")
(defvar mwheel-installed-text-scale-bindings nil)
(byte-code "\300\301\302\303#\210\304\305!\207" [make-obsolete-variable mwheel-installed-text-scale-bindings nil "28.1" provide mwheel] 4)

Youez - 2016 - github.com/yon3zu
LinuXploit