| Server IP : 217.160.0.212 / Your IP : 216.73.216.71 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 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/obsolete/ |
Upload File : |
;ELC
;;; Compiled
;;; in Emacs version 28.2
;;; with all optimizations.
(byte-code "\300\301!\210\300\302!\210\303\304\305\306\307\301%\210\310\311\312\313\314DD\315\316\317%\210\310\320\312\313\321DD\322\316\317%\210\310\323\312\313\324DD\325\316\326%\207" [require mouse thingatpt custom-declare-group mouse-sel nil "Mouse selection enhancement." :group custom-declare-variable mouse-sel-leave-point-near-mouse funcall function #[0 "\300\207" [t] 1 #1=""] "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 #[0 "\300\207" [t] 1 #1#] "If non-nil, \\[mouse-select] cycles the click-counts after 4 clicks." mouse-sel-default-bindings #[0 "\300\207" [t] 1 #1#] "Control mouse bindings." (choice (const :tag "none" nil) (const :tag "cut and paste" interprogram-cut-paste) (other :tag "default bindings" t))] 6)
#@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)) (#$ . 1046))
(defvar mouse-sel-original-bindings nil)
(byte-code "\300\301\302\"\210\303\304\305\306\307DD\310\311\312\313\314\315\316& \207" [defalias mouse-sel--ignore ignore custom-declare-variable mouse-sel-mode funcall function #[0 "\300\207" [nil] 1 ""] "Non-nil if Mouse-Sel mode is enabled.\nSee the `mouse-sel-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-sel-mode'." :set custom-set-minor-mode :initialize custom-initialize-default :type boolean] 10)
#@1473 Toggle Mouse Sel mode.
This is a minor mode. If called interactively, toggle the `Mouse-Sel
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-sel-mode)'.
The mode's hook is called both when the mode is enabled and when it is
disabled.
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.
(fn &optional ARG)
(defalias 'mouse-sel-mode #[256 "\305 \306\301\307=\203 \310\301!?\202! \247\203 \311W\203 \312\202! \313\"\210\314\300!\2038 \315\301\"\310\301!\2038 \301B \203k \316\317\320\321#\210\322\323\324\"\210\n\203\256 \325\326\"\n\327=\204\256 \330\331\332\333B\334\312$\210\330\331\335\336B\334\312$\210\202\256 \337\323\324\"\210\f\211\203\205 \211@\340@A\"\210A\266\202\202q \210\341\310\342!\334\"\211\310\342!=\204\231 \306\342\"\210\210\341\310\343!\334\"\211\310\343!=\204\255 \306\343\"\210\210\344\345\310\301!\203\272 \346\202\273 \347\"\210\350\351!\203\343 \352\301!\210\305 \203\323 \211\305 \232\203\343 \353\354\310\301!\203\337 \355\202\340 \356\357#\210\210\360 \210\310\301!\207" [global-minor-modes mouse-sel-mode mouse-sel-default-bindings mouse-sel-bound-events mouse-sel-original-bindings current-message set-default toggle default-value 1 nil t boundp delq put mouse-2 event-kind mouse-click add-hook x-lost-selection-functions mouse-sel-lost-selection-hook mapcar #[257 "\211@\211\301\"B\302A\"\210\207" [global-map lookup-key global-set-key] 6 "\n\n(fn BINDING)"] interprogram-cut-paste advice--add-function :override #[0 "\300\301!\207" [default-value interprogram-cut-function] 2] #[257 "\300\301\"\207" [set-default interprogram-cut-function] 4 "\n\n(fn GV--VAL)"] mouse-sel--ignore #[0 "\300\301!\207" [default-value interprogram-paste-function] 2] #[257 "\300\301\"\207" [set-default interprogram-paste-function] 4 "\n\n(fn GV--VAL)"] remove-hook global-set-key advice--remove-function interprogram-cut-function interprogram-paste-function 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%s" "en" "dis" "" force-mode-line-update] 7 (#$ . 2121) (byte-code "\203\n \301!\202 \302C\207" [current-prefix-arg prefix-numeric-value toggle] 2)])
(defvar mouse-sel-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%\210\314\312\315\316#\207" [mouse-sel-mode-map mouse-sel-mode-hook variable-documentation put "Hook run after entering or leaving `mouse-sel-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-sel-mode 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 (#$ . 6062))
(make-variable-buffer-local 'mouse-sel-primary-thing)
#@48 Type of SECONDARY selection in current buffer.
(defvar mouse-sel-secondary-thing nil (#$ . 6216))
(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 "\300ee\"\301!\210\302\303\304#\210\207" [make-overlay delete-overlay overlay-put face region] 5) (#$ . 6543))
#@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)) (#$ . 6803))
#@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 gui-set-selection #[514 "\300=\203\n \301!\207\302\"\207" [PRIMARY gui-select-text gui-set-selection] 5 "\n\n(fn SELECTION VALUE)"]] 2) (#$ . 7368))
#@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 #[257 "\211\302=\203 \303 \206 \304\300!\203 \206 \207\305!\207" [x-last-selected-text-primary gui--last-selected-text-primary PRIMARY gui-selection-value boundp gui-get-selection] 3 "\n\n(fn SELECTION)"] (#$ . 7898))
#@533 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.
(fn NCLICKS)
(defalias 'mouse-sel-determine-selection-thing #[257 "`f\211\205 \211z\203 S\301\246T\262\302U\203 \303\207\304U\203# \305\207\301Y\203+ \306\207\211\307>\2033 \310\207\311>\203; \312\207\211\313\267\202E \314\207\315\207\311>\205L \312\207" [mouse-sel-cycle-clicks 4 1 nil 3 line paragraph (40 41 34 39) sexp (32 9 10) whitespace #s(hash-table size 2 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (95 65 119 67)) symbol word] 5 (#$ . 8288)])
#@61 Set the specified SELECTION to VALUE.
(fn SELECTION VALUE)
(defalias 'mouse-sel-set-selection #[514 "\203 \"\207\301\302#\207" [mouse-sel-set-selection-function put mouse-sel-internal-selection] 6 (#$ . 9298)])
#@59 Get the value of the specified SELECTION.
(fn SELECTION)
(defalias 'mouse-sel-get-selection #[257 "\203 !\207\301N\207" [mouse-sel-get-selection-function mouse-sel-internal-selection] 3 (#$ . 9523)])
#@60 Return overlay corresponding to SELECTION.
(fn SELECTION)
(defalias 'mouse-sel-selection-overlay #[257 "\301\"A@\211\204 \302\303\"\210\211J\207" [mouse-sel-selection-alist assoc error "No overlay corresponding to %s selection"] 5 (#$ . 9735)])
#@60 Return overlay corresponding to SELECTION.
(fn SELECTION)
(defalias 'mouse-sel-selection-thing #[257 "\301\302\"8\211\204 \303\304\"\210\207" [mouse-sel-selection-alist 2 assoc error "No symbol corresponding to %s selection"] 5 (#$ . 9991)])
#@241 Convert region to PRIMARY overlay and deactivate region.
Argument ORIG-WINDOW specifies the window the cursor was in when the
originating command was issued, and is used to determine whether the
region was visible or not.
(fn ORIG-WINDOW)
(defalias 'mouse-sel-region-to-primary #[257 "\205<