%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/calc/ |
Current File : //usr/local/share/emacs/27.2/lisp/calc/calc-aent.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; with all optimizations. ;;; This file contains utf-8 non-ASCII characters, ;;; and so cannot be loaded into Emacs 22 or earlier. (and (boundp 'emacs-version) (< (aref emacs-version (1- (length emacs-version))) ?A) (string-lessp emacs-version "23") (error "`%s' was compiled for Emacs 23 or later" #$)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\300\302!\207" [require calc calc-macs] 2) #@34 The history list for quick-calc. (defvar calc-quick-calc-history nil (#$ . 476)) (defalias 'calc-do-quick-calc #[(&optional insert) "\306\307!\210\310 \210\311=\203 \312\313!\207\314\211\212\315 \210\314\f\3163\31345\317>\203. \320\2020 55\321\322\323\313\324$6\325\3266\"\2117G\327U\203\205 7@\242\330=\203\205 7@G\331U\203\205 7@A@\242\332=\203\205 \3337@A@8\3337@8L\210\334\3337@A@8!\210\3337@8C77\335\3367\337#\2117G\327U\203\367 7@\242\314=\203\367 \nG\340W\203\367 8\341U\203\367 \n\342\3438\3447@\345\")\346\3478\3447@\345\")\346\3338\3447@\345\")7@\250\203\362 7@\316V\203\362 7@\350W\203\362 \351\3527@\"\202\363 \322\353\260 \nG\354 W\203&6G\327U\203&\355\307!\203&\3446@\345\"\356\nQ\2119G\354 \347ZX\203%9)\357 \210\360\361\n\"\210.:\204<;\341=\203A c\202D\362 !*\207" [major-mode shortbuf buf calc-command-flags calc-quick-prev-results calc-dollar-values require calc-ext calc-check-defines calc-mode calc-algebraic-entry t nil calc-create-buffer 0 (nil big) flat calc-do-alg-entry "" "Quick calc: " calc-quick-calc-history mapcar math-evaluate-expr 1 calcFunc-assign 3 var 2 calc-refresh-evaltos mapconcat #[(x) "\301\302\"\207" [x math-format-value 1000] 3] " " 20 10 " (" 16 math-format-value 1000 ", " 8 127 format ", \"%c\"" ")" frame-width featurep " => " calc-handle-whys message "Result: %s" kill-new calc-dollar-used enable-recursive-minibuffers calc-language entry alg-exp calc-number-radix long insert last-command-event] 11]) (defalias 'calc-do-calc-eval #[(str separator args) "\306 \210\3072@\212\310 \210:\203\220 @9\204\220 \311\312 \313\314\311\211\315\316\311\211\211\317\320\311\321\322\323\324\311\211\325\311\326\327\330\331\311\211\211\332A@ABCDEFGHIJKLMNOPQRSTUVWXY \203\203 @ A@L\210 AA\211\204t \333@Z[#.\202>Z\334\267\2024\335!\202>\336\337!\210p\\\340\\!]\341 ^]\203\306 \342\216\343]!\210\344\311[@#\210)\202\337 \345 _\346\216\343\347 !\210\350\\!\210\344\311[@#\210*+\311\202>\250\203\366 \351U\204\366 \352\353 ^!\210\353 \202>\250\205>\351V\205>\353 X\205>\354\355[@\"\356\"\202>\250\205>\351V\205>\353 X\205>\355[@\"\202>\311\211`aY\357>\203E\360\202GYY\361\362[\"b\351c;\203^\363!\202`Cd\311ed@\364=\203u\365dA!\202<\361\366d\"d\367`>\203\207\370\371!\210Z\372\267\202\336\337!\210dG\373U\203\242\374d@!\202<\365\375!\202<dG\373U\203\266d@\202<\365\376!\202<d\202<dG\373U\203\377d@!\203\351Z\201f =\203\343\354d@\356\"\202<d@\202<\365\351a\203\372\201g a@!\202\375\201h D!\202<\365\201i !\202<\201j d!\210\311\202<d\203:e\211\205(Z\206(\201k \354d@\356\"QedA\211d\204e.)0\207" [str strp calc-display-working-message calc-simplify-mode calc-display-strings calc-infinite-mode calc-check-defines calc-error calc-create-buffer nil math-standard-ops 12 32 deg 10 "." (":" nil) "%s@ %s' %s\"" ((H ":" mm C SS pp " ") Www " " Mmm " " D ", " YYYY) (float 0) (float 0) t "," "[]" (R O) cplx lots calc-do-calc-eval #s(hash-table size 5 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (eval 151 macro 157 pop 228 top 251 rawtop 281)) eval require calc-ext get-buffer-window selected-window #[nil "\301!\205 \302!\207" [save-window window-point select-window] 2] select-window calc-execute-kbd-macro current-window-configuration #[nil "\301!\207" [#1=#:wconfig set-window-configuration] 2] get-largest-window switch-to-buffer 0 calc-pop calc-stack-size math-format-value calc-top-n 1000 (nil big) flat mapcar #[(x) ";\203 \301!\211\242\302=\203 \303\304\305A!\"\207@\207\207" [x math-read-exprs error throw calc-error calc-eval-error] 5] math-read-exprs error calc-eval-error calc-normalize clear-message message "" #s(hash-table size 6 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (pred 398 raw 424 list 444 num 449 rawnum 449 push 522)) 1 math-is-true (0 "Single value expected") (0 "Single value expected") math-constp calc-complex-mode calc-matrix-brackets calc-vector-brackets calc-vector-commas calc-break-vectors calc-full-vectors calc-matrix-just calc-complex-format calc-full-float-format calc-float-format calc-date-format calc-hms-format calc-prefer-frac calc-frac-format calc-point-char calc-group-digits calc-leading-zeros calc-twos-complement-mode calc-number-radix calc-angle-mode calc-matrix-mode calc-symbolic-mode calc-word-size calc-internal-prec math-expr-opers calc-language separator args calc-buffer calc-window save-window #1# calc-command-flags calc-next-why calc-dollar-values calc-dollar-used res buf num calc-explain-why "Number expected" (0 "Single value expected") calc-push-list ", "] 32]) #@216 Determines how calc handles errors. If nil, return a list containing the character position of error. STRING means return error message as string rather than list. The value t means abort and give an error message. (defvar calc-eval-error nil (#$ . 5200)) (defalias 'calc-eval-error #[(msg) "\203 \302=\203 A@\207\303\304 A@\"\207 \207" [calc-eval-error msg string error "%s"] 3]) (defalias 'calc-auto-algebraic-entry #[(&optional prefix) "\301\302\"\207" [prefix calc-algebraic-entry t] 3 nil "P"]) (defalias 'calc-algebraic-entry #[(&optional prefix auto) "\300\301!\207" [calc-do #[nil "?\205 \203 \305 \202 \306 \307\205 \310\f!!*\207" [prefix calc-language math-expr-opers auto last-command-event math-standard-ops math-expr-ops calc-alg-entry char-to-string] 3]] 2 nil "P"]) #@30 History for algebraic entry. (defvar calc-alg-entry-history nil (#$ . 6003)) (defalias 'calc-alg-entry #[(&optional initial prompt) "\306\307 \233\"\310\311\312 \311\313$\211;\203$ \314\315!\210\316!\202~ \317=\203/ \320\2021 \306\321\"\203{ \322\323\315!\203L @\202O @\324\"\210\325@@\232?\205f \323\315!\205f \326@C#\210AA\310\202: *\327 ,\207" [calc-stack-top calc-stack calc-dollar-values calc-dollar-used calc-plain-entry initial mapcar calc-get-stack-element 0 t calc-do-alg-entry calc-alg-entry-history require calc-ext calc-alg-edit 10 none calc-normalize calc-record featurep "alg'" calc-pop-push-record-list "" calc-handle-whys prompt alg-exp last-command-event calc-simplify-mode nvals] 6]) #@38 The keymap used for algebraic entry. (defvar calc-alg-ent-map (byte-code "\302 \303 \"\210\304\305\306#\210\304\307\310#\210\304\311\312#\210\304\313\312#\210)\207" [map minibuffer-local-map make-sparse-keymap set-keymap-parent define-key "'" calcAlg-previous "`" calcAlg-edit " " calcAlg-enter "\n"] 4) (#$ . 6753)) #@49 The keymap used for escapes in algebraic entry. (defvar calc-alg-ent-esc-map (byte-code "\303 \304\305 \n\"\210\306W\203 \307 \310!\311#\210T\211\202 *\207" [i map esc-map make-keymap 33 set-keymap-parent 127 define-key vector calcAlg-escape] 5) (#$ . 7083)) (defalias 'calc-do-alg-entry #[(&optional initial prompt no-normalize history) "p\306\307\310\311\312#\210\f\313=\203 \310\311 #\210\202E \310\314\315#\210\310\316\317#\210\310\320\321#\210\310\322\321#\210\310\323\324#\210\310\325\326#\210\310\327\330#\210\312 \331!\206O \332\"\206U \333\312#%$\n\307=\203p \334$!\211\242\307=\203p \312\335 %\204\201 \n\203\201 \336\337\n\"\n,\207" [calc-buffer blink-matching-check-function calc-alg-exp calc-alg-ent-map calc-algebraic-mode calc-alg-ent-esc-map calcAlg-blink-matching-check error define-key "" nil total "+" calcAlg-plus-minus "m" calcAlg-mod "=" calcAlg-equals " " "p" previous-history-element "n" next-history-element "%" self-insert-command read-from-minibuffer "Algebraic: " "" math-read-exprs "alg'" mapcar calc-normalize calc-aborted-prefix prompt initial history buf no-normalize] 6]) (defalias 'calcAlg-plus-minus #[nil "\300\301!\203 \302c\207\303c\207" [calc-minibuffer-contains ".* \\'" "+/- " " +/- "] 2 nil nil]) (defalias 'calcAlg-mod #[nil "\301\302!\204 \303c\210\301\304!\203 \203 \305\306\"c\207\307 \207\310c\207" [calc-previous-modulo calc-minibuffer-contains ".* \\'" " " ".* mod +\\'" math-format-flat-expr 0 beep "mod "] 3 nil nil]) (defalias 'calcAlg-previous #[nil "\300\301!\203\n \302\303!\207\304c\207" [calc-minibuffer-contains "\\'" previous-history-element 1 "'"] 2 nil nil]) (defalias 'calcAlg-equals #[nil "\300\216\301 )\207" [#[nil ":\205 G\302\303!\207" [calc-alg-exp prefix-arg calc-unread-command 61] 2] calcAlg-enter] 1 nil nil]) (defalias 'calcAlg-escape #[nil "\301 \210\212\302 \210\303!\210)\304 \207" [calc-mode-map calc-unread-command calc-select-buffer use-local-map calcAlg-enter] 2 nil nil]) (defvar calc-plain-entry nil) (defalias 'calcAlg-edit #[nil "\203\n \302\303!\203 \304c\207\305 \306 \207" [calc-plain-entry calc-alg-exp calc-minibuffer-contains "\\`\\([^\"]*\"[^\"]*\"\\)*[^\"]*\"[^\"]*\\'" "`" minibuffer-contents exit-minibuffer] 2 nil nil]) (defalias 'calcAlg-enter #[nil "\304 \211G\305V\205 r q\210\306!)\211\242\307=\2038 \310 b\210\nA@u\210\311 \210\312\313\314\n8\206/ \315\316Q!\210\317 \202F \320\321!\203B \322\202C \n\323 *\207" [str calc-buffer exp calc-alg-exp minibuffer-contents 0 math-read-exprs error minibuffer-prompt-end beep calc-temp-minibuffer-message " [" 2 "Error" "]" calc-clear-unread-commands calc-minibuffer-contains "\\` *\\[ *\\'" ((incomplete vec)) exit-minibuffer] 5 nil nil]) (defalias 'calcAlg-blink-matching-check #[(leftpt rightpt) "\206 `Sf \205 f \2053 \304U\203 \n\305U\204+ \306U\2053 \n\307U\2053 \212 b\210\310\311!)?\205; \312 \"*\207" [rightpt leftpt leftchar rightchar 41 91 93 40 looking-at ".+\\(\\.\\.\\|\\\\dots\\|\\\\ldots\\)" blink-matching-check-mismatch] 3]) (defalias 'calc-alg-digit-entry #[nil "\300\301 !\207" [calc-alg-entry calc-digit-start-entry] 2]) (defalias 'calcDigit-algebraic #[nil "\301\302!\203 \303 \207\304 \305 \207" [calc-digit-value calc-minibuffer-contains ".*[@oh] *[^'m ]+[^'m]*\\'" calcDigit-key minibuffer-contents exit-minibuffer] 2 nil nil]) (defalias 'calcDigit-edit #[nil "\301 \210\302 \303 \207" [calc-digit-value calc-unread-command minibuffer-contents exit-minibuffer] 1 nil nil]) #@88 A list whose elements (old new) indicate replacements to make in Calc algebraic input. (defvar math-read-replacement-list '(("±" "+/-") ("×" "*") ("÷" ":") ("−" "-") ("∕" "/") ("∗" "*") ("∞" "inf") ("≤" "<=") ("≥" ">=") ("≦" "<=") ("≧" ">=") ("µ" "μ") ("¼" "(1:4)") ("½" "(1:2)") ("¾" "(3:4)") ("⅓" "(1:3)") ("⅔" "(2:3)") ("⅕" "(1:5)") ("⅖" "(2:5)") ("⅗" "(3:5)") ("⅘" "(4:5)") ("⅙" "(1:6)") ("⅚" "(5:6)") ("⅛" "(1:8)") ("⅜" "(3:8)") ("⅝" "(5:8)") ("⅞" "(7:8)") ("⅟" "1:") ("⁰" "0") ("¹" "1") ("²" "2") ("³" "3") ("⁴" "4") ("⁵" "5") ("⁶" "6") ("⁷" "7") ("⁸" "8") ("⁹" "9") ("⁺" "+") ("⁻" "-") ("⁽" "(") ("⁾" ")") ("ⁿ" "n") ("ⁱ" "i") ("₀" "0") ("₁" "1") ("₂" "2") ("₃" "3") ("₄" "4") ("₅" "5") ("₆" "6") ("₇" "7") ("₈" "8") ("₉" "9") ("₊" "+") ("₋" "-") ("₍" "(") ("₎" ")")) (#$ . 10602)) #@58 A string consisting of the superscripts allowed by Calc. (defvar math-read-superscripts "⁰¹²³⁴⁵⁶⁷⁸⁹⁺⁻⁽⁾ⁿⁱ" (#$ . 11503)) #@56 A string consisting of the subscripts allowed by Calc. (defvar math-read-subscripts "₀₁₂₃₄₅₆₇₈₉₊₋₍₎" (#$ . 11659)) #@53 Replace some substrings of STR by Calc equivalents. (defalias 'math-read-preprocess-string #[(str) "\305\306\307Q\310 #\305\306\n\307Q\311 #\211\203* \305\f@@\f@A@ #\fA\211\204 ) \207" [math-read-superscripts str math-read-subscripts math-read-replacement-list rep-list replace-regexp-in-string "[" "]+" "^(\\&)" "_(\\&)"] 5 (#$ . 11808)]) (defalias 'math-read-exprs #[(math-exp-str) "\306\211\307\211\211\310 !>\203 \311 !\203$ !\312\313 \"\211\203>