?
Current Path : /usr/share/emacs/24.3/lisp/obsolete/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //usr/share/emacs/24.3/lisp/obsolete/mouse-sel.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:09:08 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/obsolete/mouse-sel.el ;;; in Emacs version 24.3.1 ;;; 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\300\302!\210\303\304\305\306\307\301%\210\310\311\312\313\314\315\307\304&\210\310\316\312\317\314\315\307\304&\210\310\320\312\321\314\322\307\304&\207" [require mouse thingatpt custom-declare-group mouse-sel nil "Mouse selection enhancement." :group custom-declare-variable mouse-sel-leave-point-near-mouse t "Leave point near last mouse position.\nIf non-nil, \\[mouse-select] and \\[mouse-extend] will leave point at the end\nof the region nearest to where the mouse last was.\nIf nil, point will always be placed at the beginning of the region." :type boolean mouse-sel-cycle-clicks "If non-nil, \\[mouse-select] cycles the click-counts after 4 clicks." mouse-sel-default-bindings "Control mouse bindings." (choice (const :tag "none" nil) (const :tag "cut and paste" interprogram-cut-paste) (other :tag "default bindings" t))] 8) #@49 An alist of events that `mouse-sel-mode' binds. (defconst mouse-sel-bound-events '(([mouse-1] . ignore) ([drag-mouse-1] . ignore) ([mouse-3] . ignore) ([down-mouse-1] . mouse-select) ([down-mouse-3] . mouse-extend) ([mouse-2] . mouse-insert-selection) ([M-mouse-1] . ignore) ([M-drag-mouse-1] . ignore) ([M-mouse-3] . ignore) ([M-down-mouse-1] . mouse-select-secondary) ([M-mouse-2] . mouse-insert-secondary) ([M-down-mouse-3] . mouse-extend-secondary)) (#$ . 1425)) #@59 Non-nil if Mouse Sel mode has been enabled at least once. (defvar mouse-sel-has-been-enabled nil (#$ . 1898)) (defvar mouse-sel-original-bindings nil) (defvar mouse-sel-original-interprogram-cut-function nil) (defvar mouse-sel-original-interprogram-paste-function nil) #@263 Non-nil if Mouse-Sel mode is enabled. See the command `mouse-sel-mode' for a description of this minor mode. Setting this variable directly does not take effect; either customize it (see the info node `Easy Customization') or call the function `mouse-sel-mode'. (custom-declare-variable 'mouse-sel-mode nil '(#$ . 2174) :set 'custom-set-minor-mode :initialize 'custom-initialize-default :group 'mouse-sel :type 'boolean) #@1061 Toggle Mouse Sel mode. With a prefix argument ARG, enable Mouse Sel mode if ARG is positive, and disable it otherwise. If called from Lisp, enable the mode if ARG is omitted or nil. Mouse Sel mode is a global minor mode. When enabled, mouse selection is enhanced in various ways: - Double-clicking on symbol constituents selects symbols. Double-clicking on quotes or parentheses selects sexps. Double-clicking on whitespace selects whitespace. Triple-clicking selects lines. Quad-clicking selects paragraphs. - Selecting sets the region & X primary selection, but does NOT affect the `kill-ring', nor do the kill-ring functions change the X selection. Because the mouse handlers set the primary selection directly, mouse-sel sets the variables `interprogram-cut-function' and `interprogram-paste-function' to nil. - Clicking mouse-2 inserts the contents of the primary selection at the mouse position (or point, if `mouse-yank-at-point' is non-nil). - mouse-2 while selecting or extending copies selection to the kill ring; mouse-1 or mouse-3 kills it. (defalias 'mouse-sel-mode #[(&optional arg) "\306 \307=\203 \n?\202 \310 !\311V\211\203F \312\313\314\315#\210\316\317\320\"\210\203z \321\322\f\"$%&'\323(\324=\204z \325\211$&\202z \326\317\320\"\210 \325)\211*\203l *@)\327)@)A\"\210*A\211*\204U *(\203z %$'&\330\331\n\203\204 \332\202\205 \333\"\210\334\335!\203\252 \336\302!\210\306 \203\235 \306 \232\203\252 \337\340\n\203\247 \341\202\250 \342\"\210)\343 \210\n\207" [#1=#:last-message arg mouse-sel-mode mouse-sel-default-bindings mouse-sel-bound-events mouse-sel-original-bindings current-message toggle prefix-numeric-value 0 put mouse-2 event-kind mouse-click add-hook x-lost-selection-functions mouse-sel-lost-selection-hook mapcar #[(binding) "@\211\303\n \"B\304 A\"\210)\207" [binding event global-map lookup-key global-set-key] 5] t interprogram-cut-paste nil remove-hook global-set-key run-hooks mouse-sel-mode-hook mouse-sel-mode-on-hook mouse-sel-mode-off-hook called-interactively-p any customize-mark-as-set message "Mouse-Sel mode %sabled" "en" "dis" force-mode-line-update interprogram-cut-function mouse-sel-original-interprogram-cut-function interprogram-paste-function mouse-sel-original-interprogram-paste-function mouse-sel-has-been-enabled binding --dolist-tail--] 5 (#$ . 2603) (list (or current-prefix-arg 'toggle))]) (byte-code "\301\302\303\304\300!\205\n \303\211%\210\305\302\306\307#\207" [mouse-sel-mode-map add-minor-mode mouse-sel-mode nil boundp make-obsolete "use the normal mouse modes" "24.3"] 6) #@46 Type of PRIMARY selection in current buffer. (defvar mouse-sel-primary-thing nil (#$ . 5192)) (make-variable-buffer-local 'mouse-sel-primary-thing) #@48 Type of SECONDARY selection in current buffer. (defvar mouse-sel-secondary-thing nil (#$ . 5346)) (byte-code "\301\302!\210\303!\204 \304\305\211\"\306\307\310#\210\301\207" [mouse-secondary-overlay make-variable-buffer-local mouse-sel-secondary-thing overlayp make-overlay 1 overlay-put face secondary-selection] 4) #@94 An overlay which records the current primary selection. This is used by Mouse Sel mode only. (defconst mouse-sel-primary-overlay (byte-code "\301ee\"\302!\210\303\304\305#\210)\207" [ol make-overlay delete-overlay overlay-put face region] 4) (#$ . 5673)) #@385 Alist associating selections with variables. Each element is of the form: (SELECTION-NAME OVERLAY-SYMBOL SELECTION-THING-SYMBOL) where SELECTION-NAME = name of selection OVERLAY-SYMBOL = name of variable containing overlay to use SELECTION-THING-SYMBOL = name of variable where the current selection type for this selection should be stored. (defconst mouse-sel-selection-alist '((PRIMARY mouse-sel-primary-overlay mouse-sel-primary-thing) (SECONDARY mouse-secondary-overlay mouse-sel-secondary-thing)) (#$ . 5939)) #@237 Function to call to set selection. Called with two arguments: SELECTION, the name of the selection concerned, and VALUE, the text to store. This sets the selection, unless `mouse-sel-default-bindings' is `interprogram-cut-paste'. (defvar mouse-sel-set-selection-function (byte-code "\301=\203 \302\207\303\207" [mouse-sel-default-bindings interprogram-cut-paste x-set-selection #[(selection value) "\302=\203\n \303 !\207\304 \"\207" [selection value PRIMARY x-select-text x-set-selection] 3]] 2) (#$ . 6504)) #@118 Function to call to get the selection. Called with one argument: SELECTION: the name of the selection concerned. (defvar mouse-sel-get-selection-function #[(selection) "\303=\203 \304 \206 \305\301!\203 \206 \305\302!\205 \n\207\306!\207" [selection x-last-selected-text x-last-selected-text-primary PRIMARY x-selection-value boundp x-get-selection] 2] (#$ . 7031)) #@519 Determine what `thing' `mouse-sel' should operate on. The first argument is NCLICKS, is the number of consecutive mouse clicks at the same position. Double-clicking on word constituents selects words. Double-clicking on symbol constituents selects symbols. Double-clicking on quotes or parentheses selects sexps. Double-clicking on whitespace selects whitespace. Triple-clicking selects lines. Quad-clicking selects paragraphs. Feel free to re-define this function to support your own desired multi-click semantics. (defalias 'mouse-sel-determine-selection-thing #[(nclicks) "`f\211\205 z\n\203 S\304\246T\305U\203 \306\202W \307U\203( \310\202W \304Y\2032 \311\202W \312>\203<