%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/calc/ |
Current File : //usr/local/share/emacs/27.2/lisp/calc/calc-yank.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!\210\300\302!\207" [require calc-ext calc-macs] 2) (defalias 'calc-kill #[(nn &optional no-delete) "\302=\203\n \303\304!\207\305 !\207" [major-mode nn calc-mode calc-do #[nil "\306 \210\307\310!\210\311`!\312]\313! \314W\203% m\203 \nS\n Z [\315\n!\210\316 \317\n \320#\"\321\n!\210`\321\n Z!\210\204E \320u\210\322\f`\"\210 \204W \323 \317\n \320#\"\210)@B\211+\207" [nn n num stuff first no-delete calc-force-refresh calc-set-command-flag no-align calc-locate-cursor-element 1 prefix-numeric-value 0 calc-check-stack calc-top-list - -1 calc-cursor-stack-index copy-region-as-kill calc-pop-stack kill-ring calc-last-kill] 6] kill-line] 2 nil "P"]) (defalias 'calc-force-refresh #[nil "\204 \205 \302\303 )\207" [calc-executing-macro calc-display-dirty nil calc-refresh] 1]) (defalias 'calc-locate-cursor-element #[(pt) "\212db\210\303[ \n#)\207" [calc-stack-top calc-stack pt calc-locate-cursor-scan] 4]) (defalias 'calc-locate-cursor-scan #[(n stack pt) "`X\204\n \204\f \n\207 @A@[y\210\303\nT A#\207" [pt stack n calc-locate-cursor-scan] 4]) (defalias 'calc-kill-region #[(top bot &optional no-delete) "\304=\203\n \305\306!\207 \203 \307\n\"\207\310\n\"\207" [major-mode no-delete top bot calc-mode calc-do #[nil "\306 \210\307\310!\210\311!\212\312 !\210`)\311S!\212\312\313\fS]!\210`)\314 \f\315#\316\n \"\210@\317\f\"B?\205E \320\f\"-\207" [top top-num top-pos bot bot-num bot-pos calc-force-refresh calc-set-command-flag no-align calc-locate-cursor-element calc-cursor-stack-index 0 - -1 copy-region-as-kill calc-top-list calc-pop-stack num kill-ring calc-last-kill no-delete] 4] copy-region-as-kill kill-region] 3 nil "r"]) (defalias 'calc-copy-as-kill #[(n) "\301\302\"\207" [n calc-kill t] 3 nil "P"]) (defalias 'calc-copy-region-as-kill #[(top bot) "\302 \303#\207" [top bot calc-kill-region t] 4 nil "r"]) #@64 Return a regexp which will match a Calc number base RADIX-NUM. (defalias 'math-number-regexp #[(radix-num) "\304X\203 \305Y\203 \306\307S!\310Q\2021 \311U\203 \312\2021 \313\314\315\316\\\"\317\314\315\320\\\"\310\260\211\321P \322 \323R\324\325\n\325\n\326\n\327\n\330\n\327\n\330\330\n\331\260+\207" [radix-num digit-range integer-regexp decimal-regexp 2 10 "[0-" number-to-string "]" 11 "[0-9aA]" "[0-9a-" format "%c" 86 "A-" 54 "+" "+\\." "*" " *\\([-_+]?" "[eE][-+]?[0-9]+\\|[-_+]?" "*[:/]" "[:/]" "\\|[-_+]?" "\\) *\\(\n\\|\\'\\)"] 20 (#$ . 2299)]) #@610 Yank a value into the Calculator buffer. Valid numeric prefixes for RADIX: 0, 2, 6, 8 No radix notation is prepended for any other numeric prefix. If RADIX is 2, prepend "2#" - Binary. If RADIX is 8, prepend "8#" - Octal. If RADIX is 0, prepend "10#" - Decimal. If RADIX is 6, prepend "16#" - Hexadecimal. If RADIX is a non-nil list (created using \[universal-argument]), the user will be prompted to enter the radix in the minibuffer. If RADIX is nil or if the yanked string already has a calc radix prefix, the yanked string will be passed on directly to the Calculator buffer without any alteration. (defalias 'calc-yank #[(radix) "\300\301!\207" [calc-do #[nil "\306\307\310\311\211\311\312\313!\203 \313\307\314\"\202 @ \203. \315\f\311\314#\316#)\266\203\2032 \f\202\211 <\203S \317\320!\211\250\203L \321X\203L \322Y\204p \323\324!\210\202p \325\267\202i \321\202o \326\202o \327\202o \330\202o \331\332 \"\210\311\203\210 \333!\334P\335!\336\n \337P\f#\202\211 \f$%\242\f=\203\231 %A\202\311 $;\205\311 \340\341$!!\211&\242\323=\203\306 \340$!\211&\242\323=\203\301 \323\342!\202\310 &\202\310 &)-#\207" [radix-num radix-notation valid-num-regexp kill-ring-yank-pointer thing-raw radix calc-pop-push-record-list 0 "yank" nil fboundp current-kill t "^[-(]*[0-9]\\{1,2\\}#" string-match read-number "Set radix for yanked content (2-36): " 2 36 error "The radix has to be an integer between 2 and 36." #s(hash-table size 4 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (2 89 8 93 0 97 6 101)) 8 10 16 message "No radix prepended for invalid *numeric* prefix %0d." number-to-string "#" math-number-regexp replace-regexp-in-string "\\&" math-read-exprs calc-clean-newlines "Bad format in yanked data" inhibit-changing-match-data thing calc-last-kill val] 11]] 2 (#$ . 2877) "P"]) #@149 Alist of elements (NAME . (TEXT . CALCVAL)). NAME is a character (a number). TEXT and CALCVAL are the TEXT and internal structure of stack entries. (defvar calc-register-alist nil (#$ . 4723)) #@137 Set the contents of the Calc register REGISTER to (TEXT . CALCVAL), as well as set the contents of the Emacs register REGISTER to TEXT. (defalias 'calc-set-register #[(register text calcval) "\306 \"\210\n\236 \fB\203 \241\210\202 B\211\nB *\207" [register text calc-register-alist #1=#:p calcval #2=#:v set-register] 3 (#$ . 4923)]) #@235 Return the CALCVAL portion of the contents of the Calc register REG, unless the TEXT portion doesn't match the contents of the Emacs register REG, in which case either return the contents of the Emacs register (if it is text) or nil. (defalias 'calc-get-register #[(reg) " \236A\n\236A;\205\"