%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/ |
Current File : //usr/local/share/emacs/27.2/lisp/mouse-drag.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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; #@120 Scroll down ROW-DELTA lines and right COL-DELTA, ignoring buffer edge errors. Keep the cursor on the screen as needed. (defalias 'mouse-drag-safe-scroll #[(row-delta &optional col-delta) "\303 \203) \304U\204) \3051$ \3061 \307 !00\202( 0\210\310\311!\202( \210\310\312!\210\n\205\\ \n\304U?\205\\ \313\n!\210i\314 W\203F \315\314 !\202\\ \316i\314 \317 \320$\304V\205\\ \315\321\317 \314 \322#!)\207" [scroll-preserve-screen-position row-delta col-delta nil 0 (end-of-buffer) (beginning-of-buffer) scroll-down message "Beginning of buffer" "End of buffer" scroll-right window-hscroll move-to-column - window-width -2 + -3] 5 (#$ . 409)]) #@66 Scroll ROW-DELTA rows and COL-DELTA cols until an event happens. (defalias 'mouse-drag-repeatedly-safe-scroll #[(row-delta &optional col-delta) "\303!\205 \304 \n\"\210\202 \207" [mouse-scroll-delay row-delta col-delta sit-for mouse-drag-safe-scroll] 3 (#$ . 1057)]) #@51 Determine if START-POSN and END-POSN are "close". (defalias 'mouse-drag-events-are-point-events-p #[(start-posn end-posn) "\304!\304\n! @@U\205 AAU*\207" [start-posn start-col-row end-posn end-col-row posn-col-row] 2 (#$ . 1333)]) #@63 If non-nil, mouse-drag on a long line enables truncate-lines. (defvar mouse-drag-electric-col-scrolling t (#$ . 1577)) #@127 Determine if it's wise to enable col-scrolling for the current window. Basically, we check for existing horizontal scrolling. (defalias 'mouse-drag-should-do-col-scrolling #[nil "\206+ \304 \305V\206+ \306 ?\206+ \205+ \212\307 \310\210`\nZ\311 V\205* \312\211+\207" [truncate-lines mouse-drag-electric-col-scrolling end beg window-hscroll 0 window-full-width-p line-beginning-position nil window-width t] 2 (#$ . 1703)]) #@152 Set direction of mouse-throwing. If nil, the text moves in the direction the mouse moves. If t, the scroll bar moves in the direction the mouse moves. (defvar mouse-throw-with-scroll-bar nil (#$ . 2139)) (defconst mouse-throw-magnifier-min -6) (defconst mouse-throw-magnifier-max 6) (defconst mouse-throw-magnifier-base 1.5) (defalias 'mouse-drag-scroll-delta #[(mouse-delta) " \n^]\305\306\307\310!\311\n!_!!\n\312W\203 \313\202 \314\f\203% \314\202&