diff options
| author | Glenn Morris | 2010-06-22 00:41:10 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-06-22 00:41:10 -0700 |
| commit | be19ef0b9b4b68226655eb17e4aa3f72d6b71bbc (patch) | |
| tree | f73983eea36f051cd60dbf27ad8d24d41096ff73 | |
| parent | 32a679fd52520b7003c745548ce484a00a1ec5eb (diff) | |
| download | emacs-be19ef0b9b4b68226655eb17e4aa3f72d6b71bbc.tar.gz emacs-be19ef0b9b4b68226655eb17e4aa3f72d6b71bbc.zip | |
Add some utf-8 coding cookies.
* lisp/calc/calc-aent.el, lisp/calc/calc-ext.el, lisp/calc/calc-lang.el:
* lisp/calc/calc-store.el, lisp/calc/calc-units.el, lisp/calc/calc.el:
* lisp/calc/calccomp.el:
Add explicit utf-8 coding cookies to files with utf-8 characters.
Also delete trailing whitespace.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/calc/calc-aent.el | 31 | ||||
| -rw-r--r-- | lisp/calc/calc-ext.el | 26 | ||||
| -rw-r--r-- | lisp/calc/calc-lang.el | 118 | ||||
| -rw-r--r-- | lisp/calc/calc-store.el | 12 | ||||
| -rw-r--r-- | lisp/calc/calc-units.el | 10 | ||||
| -rw-r--r-- | lisp/calc/calc.el | 26 | ||||
| -rw-r--r-- | lisp/calc/calccomp.el | 54 |
8 files changed, 158 insertions, 126 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 05211ed5a8a..ca0fed14b5e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2010-06-22 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * calc/calc-aent.el, calc/calc-ext.el, calc/calc-lang.el: | ||
| 4 | * calc/calc-store.el, calc/calc-units.el, calc/calc.el: | ||
| 5 | * calc/calccomp.el: Add explicit utf-8 coding cookies to files with | ||
| 6 | utf-8 characters. | ||
| 7 | |||
| 1 | 2010-06-21 Karl Fogel <kfogel@red-bean.com> | 8 | 2010-06-21 Karl Fogel <kfogel@red-bean.com> |
| 2 | 9 | ||
| 3 | * simple.el (compose-mail): Fix doc string to refer to | 10 | * simple.el (compose-mail): Fix doc string to refer to |
diff --git a/lisp/calc/calc-aent.el b/lisp/calc/calc-aent.el index 77a02b58c73..30f15f04905 100644 --- a/lisp/calc/calc-aent.el +++ b/lisp/calc/calc-aent.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; calc-aent.el --- algebraic entry functions for Calc | 1 | ;;; calc-aent.el --- algebraic entry functions for Calc |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2002, 2003, 2004, 2005, |
| 4 | ;; 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 4 | ;; 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Dave Gillespie <daveg@synaptics.com> | 6 | ;; Author: Dave Gillespie <daveg@synaptics.com> |
| 7 | ;; Maintainer: Jay Belanger <jay.p.belanger@gmail.com> | 7 | ;; Maintainer: Jay Belanger <jay.p.belanger@gmail.com> |
| @@ -609,9 +609,9 @@ in Calc algebraic input.") | |||
| 609 | (setq math-exp-str (math-remove-percentsigns math-exp-str))) | 609 | (setq math-exp-str (math-remove-percentsigns math-exp-str))) |
| 610 | (if calc-language-input-filter | 610 | (if calc-language-input-filter |
| 611 | (setq math-exp-str (funcall calc-language-input-filter math-exp-str))) | 611 | (setq math-exp-str (funcall calc-language-input-filter math-exp-str))) |
| 612 | (while (setq math-exp-token | 612 | (while (setq math-exp-token |
| 613 | (string-match "\\.\\.\\([^.]\\|.[^.]\\)" math-exp-str)) | 613 | (string-match "\\.\\.\\([^.]\\|.[^.]\\)" math-exp-str)) |
| 614 | (setq math-exp-str | 614 | (setq math-exp-str |
| 615 | (concat (substring math-exp-str 0 math-exp-token) "\\dots" | 615 | (concat (substring math-exp-str 0 math-exp-token) "\\dots" |
| 616 | (substring math-exp-str (+ math-exp-token 2))))) | 616 | (substring math-exp-str (+ math-exp-token 2))))) |
| 617 | (math-build-parse-table) | 617 | (math-build-parse-table) |
| @@ -712,7 +712,7 @@ in Calc algebraic input.") | |||
| 712 | (math-read-token))) | 712 | (math-read-token))) |
| 713 | ((and (memq ch calc-user-token-chars) | 713 | ((and (memq ch calc-user-token-chars) |
| 714 | (let ((case-fold-search nil)) | 714 | (let ((case-fold-search nil)) |
| 715 | (eq (string-match | 715 | (eq (string-match |
| 716 | calc-user-tokens math-exp-str math-exp-pos) | 716 | calc-user-tokens math-exp-str math-exp-pos) |
| 717 | math-exp-pos))) | 717 | math-exp-pos))) |
| 718 | (setq math-exp-token 'punc | 718 | (setq math-exp-token 'punc |
| @@ -722,7 +722,7 @@ in Calc algebraic input.") | |||
| 722 | (and (>= ch ?A) (<= ch ?Z)) | 722 | (and (>= ch ?A) (<= ch ?Z)) |
| 723 | (and (>= ch ?α) (<= ch ?ω)) | 723 | (and (>= ch ?α) (<= ch ?ω)) |
| 724 | (and (>= ch ?Α) (<= ch ?Ω))) | 724 | (and (>= ch ?Α) (<= ch ?Ω))) |
| 725 | (string-match | 725 | (string-match |
| 726 | (cond | 726 | (cond |
| 727 | ((and (memq calc-language calc-lang-allow-underscores) | 727 | ((and (memq calc-language calc-lang-allow-underscores) |
| 728 | (memq calc-language calc-lang-allow-percentsigns)) | 728 | (memq calc-language calc-lang-allow-percentsigns)) |
| @@ -745,7 +745,7 @@ in Calc algebraic input.") | |||
| 745 | (eq (string-match "_\\.?[0-9]" math-exp-str math-exp-pos) | 745 | (eq (string-match "_\\.?[0-9]" math-exp-str math-exp-pos) |
| 746 | math-exp-pos) | 746 | math-exp-pos) |
| 747 | (or (eq math-exp-pos 0) | 747 | (or (eq math-exp-pos 0) |
| 748 | (and (not (memq calc-language | 748 | (and (not (memq calc-language |
| 749 | calc-lang-allow-underscores)) | 749 | calc-lang-allow-underscores)) |
| 750 | (eq (string-match "[^])}\"a-zA-Zα-ωΑ-Ω0-9'$]_" | 750 | (eq (string-match "[^])}\"a-zA-Zα-ωΑ-Ω0-9'$]_" |
| 751 | math-exp-str (1- math-exp-pos)) | 751 | math-exp-str (1- math-exp-pos)) |
| @@ -757,7 +757,7 @@ in Calc algebraic input.") | |||
| 757 | (setq math-exp-token 'number | 757 | (setq math-exp-token 'number |
| 758 | math-expr-data (math-match-substring math-exp-str 0) | 758 | math-expr-data (math-match-substring math-exp-str 0) |
| 759 | math-exp-pos (match-end 0))) | 759 | math-exp-pos (match-end 0))) |
| 760 | ((and (setq adfn | 760 | ((and (setq adfn |
| 761 | (assq ch (get calc-language 'math-lang-read-symbol))) | 761 | (assq ch (get calc-language 'math-lang-read-symbol))) |
| 762 | (eval (nth 1 adfn))) | 762 | (eval (nth 1 adfn))) |
| 763 | (eval (nth 2 adfn))) | 763 | (eval (nth 2 adfn))) |
| @@ -810,8 +810,8 @@ in Calc algebraic input.") | |||
| 810 | 810 | ||
| 811 | (defun math-read-expr-level (exp-prec &optional exp-term) | 811 | (defun math-read-expr-level (exp-prec &optional exp-term) |
| 812 | (let* ((math-expr-opers (math-expr-ops)) | 812 | (let* ((math-expr-opers (math-expr-ops)) |
| 813 | (x (math-read-factor)) | 813 | (x (math-read-factor)) |
| 814 | (first t) | 814 | (first t) |
| 815 | op op2) | 815 | op op2) |
| 816 | (while (and (or (and calc-user-parse-table | 816 | (while (and (or (and calc-user-parse-table |
| 817 | (setq op (calc-check-user-syntax x exp-prec)) | 817 | (setq op (calc-check-user-syntax x exp-prec)) |
| @@ -832,8 +832,8 @@ in Calc algebraic input.") | |||
| 832 | (memq math-exp-token '(symbol number dollar hash)) | 832 | (memq math-exp-token '(symbol number dollar hash)) |
| 833 | (equal math-expr-data "(") | 833 | (equal math-expr-data "(") |
| 834 | (and (equal math-expr-data "[") | 834 | (and (equal math-expr-data "[") |
| 835 | (not (equal | 835 | (not (equal |
| 836 | (get calc-language | 836 | (get calc-language |
| 837 | 'math-function-open) "[")) | 837 | 'math-function-open) "[")) |
| 838 | (not (and math-exp-keep-spaces | 838 | (not (and math-exp-keep-spaces |
| 839 | (eq (car-safe x) 'vec))))) | 839 | (eq (car-safe x) 'vec))))) |
| @@ -1141,8 +1141,8 @@ If the current Calc language does not use placeholders, return nil." | |||
| 1141 | (eq math-exp-token 'end))) | 1141 | (eq math-exp-token 'end))) |
| 1142 | (throw 'syntax "Expected `)'")) | 1142 | (throw 'syntax "Expected `)'")) |
| 1143 | (math-read-token) | 1143 | (math-read-token) |
| 1144 | (if (and (memq calc-language | 1144 | (if (and (memq calc-language |
| 1145 | calc-lang-parens-are-subscripts) | 1145 | calc-lang-parens-are-subscripts) |
| 1146 | args | 1146 | args |
| 1147 | (require 'calc-ext) | 1147 | (require 'calc-ext) |
| 1148 | (let ((calc-matrix-mode 'scalar)) | 1148 | (let ((calc-matrix-mode 'scalar)) |
| @@ -1184,7 +1184,7 @@ If the current Calc language does not use placeholders, return nil." | |||
| 1184 | (substring (symbol-name (cdr v)) | 1184 | (substring (symbol-name (cdr v)) |
| 1185 | 4)) | 1185 | 4)) |
| 1186 | (cdr v)))))) | 1186 | (cdr v)))))) |
| 1187 | (while (and (memq calc-language | 1187 | (while (and (memq calc-language |
| 1188 | calc-lang-brackets-are-subscripts) | 1188 | calc-lang-brackets-are-subscripts) |
| 1189 | (equal math-expr-data "[")) | 1189 | (equal math-expr-data "[")) |
| 1190 | (math-read-token) | 1190 | (math-read-token) |
| @@ -1284,6 +1284,7 @@ If the current Calc language does not use placeholders, return nil." | |||
| 1284 | (provide 'calc-aent) | 1284 | (provide 'calc-aent) |
| 1285 | 1285 | ||
| 1286 | ;; Local variables: | 1286 | ;; Local variables: |
| 1287 | ;; coding: utf-8 | ||
| 1287 | ;; generated-autoload-file: "calc-loaddefs.el" | 1288 | ;; generated-autoload-file: "calc-loaddefs.el" |
| 1288 | ;; End: | 1289 | ;; End: |
| 1289 | 1290 | ||
diff --git a/lisp/calc/calc-ext.el b/lisp/calc/calc-ext.el index 17dc9293237..18e63655ecf 100644 --- a/lisp/calc/calc-ext.el +++ b/lisp/calc/calc-ext.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; calc-ext.el --- various extension functions for Calc | 1 | ;;; calc-ext.el --- various extension functions for Calc |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2002, 2003, 2004, 2005, |
| 4 | ;; 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 4 | ;; 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: David Gillespie <daveg@synaptics.com> | 6 | ;; Author: David Gillespie <daveg@synaptics.com> |
| 7 | ;; Maintainer: Jay Belanger <jay.p.belanger@gmail.com> | 7 | ;; Maintainer: Jay Belanger <jay.p.belanger@gmail.com> |
| @@ -960,7 +960,7 @@ math-read-brackets math-reduce-cols math-reduce-vec math-transpose) | |||
| 960 | 960 | ||
| 961 | ("calc-yank" calc-alg-edit calc-clean-newlines | 961 | ("calc-yank" calc-alg-edit calc-clean-newlines |
| 962 | calc-do-grab-rectangle calc-do-grab-region calc-finish-stack-edit | 962 | calc-do-grab-rectangle calc-do-grab-region calc-finish-stack-edit |
| 963 | calc-copy-to-register calc-insert-register | 963 | calc-copy-to-register calc-insert-register |
| 964 | calc-append-to-register calc-prepend-to-register | 964 | calc-append-to-register calc-prepend-to-register |
| 965 | calc-force-refresh calc-locate-cursor-element calc-show-edit-buffer) | 965 | calc-force-refresh calc-locate-cursor-element calc-show-edit-buffer) |
| 966 | 966 | ||
| @@ -989,7 +989,7 @@ calc-floor calc-idiv calc-increment calc-mant-part calc-max calc-min | |||
| 989 | calc-round calc-scale-float calc-sign calc-trunc calc-xpon-part) | 989 | calc-round calc-scale-float calc-sign calc-trunc calc-xpon-part) |
| 990 | 990 | ||
| 991 | ("calc-bin" calc-and calc-binary-radix calc-clip calc-twos-complement-mode | 991 | ("calc-bin" calc-and calc-binary-radix calc-clip calc-twos-complement-mode |
| 992 | calc-decimal-radix calc-diff calc-hex-radix calc-leading-zeros | 992 | calc-decimal-radix calc-diff calc-hex-radix calc-leading-zeros |
| 993 | calc-lshift-arith calc-lshift-binary calc-not calc-octal-radix calc-or calc-radix | 993 | calc-lshift-arith calc-lshift-binary calc-not calc-octal-radix calc-or calc-radix |
| 994 | calc-rotate-binary calc-rshift-arith calc-rshift-binary calc-word-size | 994 | calc-rotate-binary calc-rshift-arith calc-rshift-binary calc-word-size |
| 995 | calc-xor) | 995 | calc-xor) |
| @@ -1415,7 +1415,7 @@ calc-kill calc-kill-region calc-yank)))) | |||
| 1415 | (with-current-buffer calc-main-buffer | 1415 | (with-current-buffer calc-main-buffer |
| 1416 | calc-option-flag) | 1416 | calc-option-flag) |
| 1417 | calc-option-flag)) | 1417 | calc-option-flag)) |
| 1418 | (msg | 1418 | (msg |
| 1419 | (cond | 1419 | (cond |
| 1420 | ((and opt-flag hyp-flag) "Option Inverse Hyperbolic...") | 1420 | ((and opt-flag hyp-flag) "Option Inverse Hyperbolic...") |
| 1421 | (hyp-flag "Inverse Hyperbolic...") | 1421 | (hyp-flag "Inverse Hyperbolic...") |
| @@ -1505,8 +1505,8 @@ calc-kill calc-kill-region calc-yank)))) | |||
| 1505 | (with-current-buffer calc-main-buffer | 1505 | (with-current-buffer calc-main-buffer |
| 1506 | calc-option-flag) | 1506 | calc-option-flag) |
| 1507 | calc-option-flag)) | 1507 | calc-option-flag)) |
| 1508 | (msg | 1508 | (msg |
| 1509 | (cond | 1509 | (cond |
| 1510 | ((and opt-flag inv-flag) "Option Inverse Hyperbolic...") | 1510 | ((and opt-flag inv-flag) "Option Inverse Hyperbolic...") |
| 1511 | (opt-flag "Option Hyperbolic...") | 1511 | (opt-flag "Option Hyperbolic...") |
| 1512 | (inv-flag "Inverse Hyperbolic...") | 1512 | (inv-flag "Inverse Hyperbolic...") |
| @@ -1537,8 +1537,8 @@ calc-kill calc-kill-region calc-yank)))) | |||
| 1537 | (with-current-buffer calc-main-buffer | 1537 | (with-current-buffer calc-main-buffer |
| 1538 | calc-hyperbolic-flag) | 1538 | calc-hyperbolic-flag) |
| 1539 | calc-hyperbolic-flag)) | 1539 | calc-hyperbolic-flag)) |
| 1540 | (msg | 1540 | (msg |
| 1541 | (cond | 1541 | (cond |
| 1542 | ((and hyp-flag inv-flag) "Option Inverse Hyperbolic...") | 1542 | ((and hyp-flag inv-flag) "Option Inverse Hyperbolic...") |
| 1543 | (hyp-flag "Option Hyperbolic...") | 1543 | (hyp-flag "Option Hyperbolic...") |
| 1544 | (inv-flag "Option Inverse...") | 1544 | (inv-flag "Option Inverse...") |
| @@ -1702,8 +1702,8 @@ calc-kill calc-kill-region calc-yank)))) | |||
| 1702 | (defun calc-execute-extended-command (n) | 1702 | (defun calc-execute-extended-command (n) |
| 1703 | (interactive "P") | 1703 | (interactive "P") |
| 1704 | (let* ((prompt (concat (calc-num-prefix-name n) "M-x ")) | 1704 | (let* ((prompt (concat (calc-num-prefix-name n) "M-x ")) |
| 1705 | (cmd (intern | 1705 | (cmd (intern |
| 1706 | (completing-read prompt obarray 'commandp t "calc-" | 1706 | (completing-read prompt obarray 'commandp t "calc-" |
| 1707 | 'calc-extended-command-history)))) | 1707 | 'calc-extended-command-history)))) |
| 1708 | (setq prefix-arg n) | 1708 | (setq prefix-arg n) |
| 1709 | (command-execute cmd))) | 1709 | (command-execute cmd))) |
| @@ -3500,5 +3500,9 @@ A key may contain additional specs for Inverse, Hyperbolic, and Inv+Hyp.") | |||
| 3500 | 3500 | ||
| 3501 | (provide 'calc-ext) | 3501 | (provide 'calc-ext) |
| 3502 | 3502 | ||
| 3503 | ;; Local variables: | ||
| 3504 | ;; coding: utf-8 | ||
| 3505 | ;; End: | ||
| 3506 | |||
| 3503 | ;; arch-tag: 1814ba7f-a390-49dc-9e25-a5adc205e97e | 3507 | ;; arch-tag: 1814ba7f-a390-49dc-9e25-a5adc205e97e |
| 3504 | ;;; calc-ext.el ends here | 3508 | ;;; calc-ext.el ends here |
diff --git a/lisp/calc/calc-lang.el b/lisp/calc/calc-lang.el index 0ebf1a18fef..f461c47aafd 100644 --- a/lisp/calc/calc-lang.el +++ b/lisp/calc/calc-lang.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; calc-lang.el --- calc language functions | 1 | ;;; calc-lang.el --- calc language functions |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2002, 2003, 2004, 2005, |
| 4 | ;; 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 4 | ;; 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: David Gillespie <daveg@synaptics.com> | 6 | ;; Author: David Gillespie <daveg@synaptics.com> |
| 7 | ;; Maintainer: Jay Belanger <jay.p.belanger@gmail.com> | 7 | ;; Maintainer: Jay Belanger <jay.p.belanger@gmail.com> |
| @@ -335,7 +335,7 @@ | |||
| 335 | (add-to-list 'calc-lang-allow-underscores 'fortran) | 335 | (add-to-list 'calc-lang-allow-underscores 'fortran) |
| 336 | (add-to-list 'calc-lang-parens-are-subscripts 'fortran) | 336 | (add-to-list 'calc-lang-parens-are-subscripts 'fortran) |
| 337 | 337 | ||
| 338 | ;; The next few variables are local to math-read-exprs in calc-aent.el | 338 | ;; The next few variables are local to math-read-exprs in calc-aent.el |
| 339 | ;; and math-read-expr in calc-ext.el, but are set in functions they call. | 339 | ;; and math-read-expr in calc-ext.el, but are set in functions they call. |
| 340 | 340 | ||
| 341 | (defvar math-exp-token) | 341 | (defvar math-exp-token) |
| @@ -379,12 +379,12 @@ | |||
| 379 | ((= n 1) | 379 | ((= n 1) |
| 380 | (message "TeX language mode with \\hbox{func}(\\hbox{var})")) | 380 | (message "TeX language mode with \\hbox{func}(\\hbox{var})")) |
| 381 | ((> n 1) | 381 | ((> n 1) |
| 382 | (message | 382 | (message |
| 383 | "TeX language mode with \\hbox{func}(\\hbox{var}) and multiline matrices")) | 383 | "TeX language mode with \\hbox{func}(\\hbox{var}) and multiline matrices")) |
| 384 | ((= n -1) | 384 | ((= n -1) |
| 385 | (message "TeX language mode with \\func(\\hbox{var})")) | 385 | (message "TeX language mode with \\func(\\hbox{var})")) |
| 386 | ((< n -1) | 386 | ((< n -1) |
| 387 | (message | 387 | (message |
| 388 | "TeX language mode with \\func(\\hbox{var}) and multiline matrices"))))) | 388 | "TeX language mode with \\func(\\hbox{var}) and multiline matrices"))))) |
| 389 | 389 | ||
| 390 | (defun calc-latex-language (n) | 390 | (defun calc-latex-language (n) |
| @@ -399,12 +399,12 @@ | |||
| 399 | ((= n 1) | 399 | ((= n 1) |
| 400 | (message "LaTeX language mode with \\text{func}(\\text{var})")) | 400 | (message "LaTeX language mode with \\text{func}(\\text{var})")) |
| 401 | ((> n 1) | 401 | ((> n 1) |
| 402 | (message | 402 | (message |
| 403 | "LaTeX language mode with \\text{func}(\\text{var}) and multiline matrices")) | 403 | "LaTeX language mode with \\text{func}(\\text{var}) and multiline matrices")) |
| 404 | ((= n -1) | 404 | ((= n -1) |
| 405 | (message "LaTeX language mode with \\func(\\text{var})")) | 405 | (message "LaTeX language mode with \\func(\\text{var})")) |
| 406 | ((< n -1) | 406 | ((< n -1) |
| 407 | (message | 407 | (message |
| 408 | "LaTeX language mode with \\func(\\text{var}) and multiline matrices"))))) | 408 | "LaTeX language mode with \\func(\\text{var}) and multiline matrices"))))) |
| 409 | 409 | ||
| 410 | (put 'tex 'math-lang-name "TeX") | 410 | (put 'tex 'math-lang-name "TeX") |
| @@ -498,7 +498,7 @@ | |||
| 498 | (intv . math-compose-tex-intv))) | 498 | (intv . math-compose-tex-intv))) |
| 499 | 499 | ||
| 500 | (put 'tex 'math-variable-table | 500 | (put 'tex 'math-variable-table |
| 501 | '( | 501 | '( |
| 502 | ;; The Greek letters | 502 | ;; The Greek letters |
| 503 | ( \\alpha . var-alpha ) | 503 | ( \\alpha . var-alpha ) |
| 504 | ( \\beta . var-beta ) | 504 | ( \\beta . var-beta ) |
| @@ -630,7 +630,7 @@ | |||
| 630 | 630 | ||
| 631 | (defun math-compose-tex-matrix (a &optional ltx) | 631 | (defun math-compose-tex-matrix (a &optional ltx) |
| 632 | (if (cdr a) | 632 | (if (cdr a) |
| 633 | (cons (append (math-compose-vector (cdr (car a)) " & " 0) | 633 | (cons (append (math-compose-vector (cdr (car a)) " & " 0) |
| 634 | (if ltx '(" \\\\ ") '(" \\cr "))) | 634 | (if ltx '(" \\\\ ") '(" \\cr "))) |
| 635 | (math-compose-tex-matrix (cdr a) ltx)) | 635 | (math-compose-tex-matrix (cdr a) ltx)) |
| 636 | (list (math-compose-vector (cdr (car a)) " & " 0)))) | 636 | (list (math-compose-vector (cdr (car a)) " & " 0)))) |
| @@ -722,7 +722,7 @@ | |||
| 722 | (setq left "{" right "}")) | 722 | (setq left "{" right "}")) |
| 723 | (t (setq left calc-function-open | 723 | (t (setq left calc-function-open |
| 724 | right calc-function-close))) | 724 | right calc-function-close))) |
| 725 | (list 'horiz func | 725 | (list 'horiz func |
| 726 | left | 726 | left |
| 727 | (math-compose-vector (cdr a) ", " 0) | 727 | (math-compose-vector (cdr a) ", " 0) |
| 728 | right))) | 728 | right))) |
| @@ -866,7 +866,7 @@ | |||
| 866 | (and right | 866 | (and right |
| 867 | (setq math-exp-str (copy-sequence math-exp-str)) | 867 | (setq math-exp-str (copy-sequence math-exp-str)) |
| 868 | (aset math-exp-str right ?\])))))))))) | 868 | (aset math-exp-str right ?\])))))))))) |
| 869 | 869 | ||
| 870 | (defun math-latex-parse-frac (f val) | 870 | (defun math-latex-parse-frac (f val) |
| 871 | (let (numer denom) | 871 | (let (numer denom) |
| 872 | (setq numer (car (math-read-expr-list))) | 872 | (setq numer (car (math-read-expr-list))) |
| @@ -988,7 +988,7 @@ | |||
| 988 | (cdr (math-transpose a))) | 988 | (cdr (math-transpose a))) |
| 989 | '("}"))))) | 989 | '("}"))))) |
| 990 | 990 | ||
| 991 | (put 'eqn 'math-var-formatter | 991 | (put 'eqn 'math-var-formatter |
| 992 | (function | 992 | (function |
| 993 | (lambda (a prec) | 993 | (lambda (a prec) |
| 994 | (let (v) | 994 | (let (v) |
| @@ -1011,7 +1011,7 @@ | |||
| 1011 | (intern (substring (symbol-name (nth 2 a)) 0 -1)))) | 1011 | (intern (substring (symbol-name (nth 2 a)) 0 -1)))) |
| 1012 | prec) | 1012 | prec) |
| 1013 | (symbol-name (nth 1 a)))))))) | 1013 | (symbol-name (nth 1 a)))))))) |
| 1014 | 1014 | ||
| 1015 | (defconst math-eqn-special-funcs | 1015 | (defconst math-eqn-special-funcs |
| 1016 | '( calcFunc-log | 1016 | '( calcFunc-log |
| 1017 | calcFunc-ln calcFunc-exp | 1017 | calcFunc-ln calcFunc-exp |
| @@ -1022,7 +1022,7 @@ | |||
| 1022 | calcFunc-arcsin calcFunc-arccos calcFunc-arctan | 1022 | calcFunc-arcsin calcFunc-arccos calcFunc-arctan |
| 1023 | calcFunc-arcsinh calcFunc-arccosh calcFunc-arctanh)) | 1023 | calcFunc-arcsinh calcFunc-arccosh calcFunc-arctanh)) |
| 1024 | 1024 | ||
| 1025 | (put 'eqn 'math-func-formatter | 1025 | (put 'eqn 'math-func-formatter |
| 1026 | (function | 1026 | (function |
| 1027 | (lambda (func a) | 1027 | (lambda (func a) |
| 1028 | (let (left right) | 1028 | (let (left right) |
| @@ -1035,8 +1035,8 @@ | |||
| 1035 | (not (math-tex-expr-is-flat (nth 1 a)))) | 1035 | (not (math-tex-expr-is-flat (nth 1 a)))) |
| 1036 | (setq left "{left ( " | 1036 | (setq left "{left ( " |
| 1037 | right " right )}")) | 1037 | right " right )}")) |
| 1038 | 1038 | ||
| 1039 | ((and | 1039 | ((and |
| 1040 | (memq (car a) math-eqn-special-funcs) | 1040 | (memq (car a) math-eqn-special-funcs) |
| 1041 | (= (length a) 2) | 1041 | (= (length a) 2) |
| 1042 | (or (Math-realp (nth 1 a)) | 1042 | (or (Math-realp (nth 1 a)) |
| @@ -1069,7 +1069,7 @@ | |||
| 1069 | ("above" punc ","))) | 1069 | ("above" punc ","))) |
| 1070 | 1070 | ||
| 1071 | (put 'eqn 'math-lang-adjust-words | 1071 | (put 'eqn 'math-lang-adjust-words |
| 1072 | (function | 1072 | (function |
| 1073 | (lambda () | 1073 | (lambda () |
| 1074 | (let ((code (assoc math-expr-data math-eqn-ignore-words))) | 1074 | (let ((code (assoc math-expr-data math-eqn-ignore-words))) |
| 1075 | (cond ((null code)) | 1075 | (cond ((null code)) |
| @@ -1189,21 +1189,21 @@ | |||
| 1189 | ( Gamma . var-gamma))) | 1189 | ( Gamma . var-gamma))) |
| 1190 | 1190 | ||
| 1191 | (put 'yacas 'math-parse-table | 1191 | (put 'yacas 'math-parse-table |
| 1192 | '((("Deriv(" 0 ")" 0) | 1192 | '((("Deriv(" 0 ")" 0) |
| 1193 | calcFunc-deriv (var ArgB var-ArgB) (var ArgA var-ArgA)) | 1193 | calcFunc-deriv (var ArgB var-ArgB) (var ArgA var-ArgA)) |
| 1194 | (("D(" 0 ")" 0) | 1194 | (("D(" 0 ")" 0) |
| 1195 | calcFunc-deriv (var ArgB var-ArgB) (var ArgA var-ArgA)) | 1195 | calcFunc-deriv (var ArgB var-ArgB) (var ArgA var-ArgA)) |
| 1196 | (("Integrate(" 0 ")" 0) | 1196 | (("Integrate(" 0 ")" 0) |
| 1197 | calcFunc-integ (var ArgB var-ArgB)(var ArgA var-ArgA)) | 1197 | calcFunc-integ (var ArgB var-ArgB)(var ArgA var-ArgA)) |
| 1198 | (("Integrate(" 0 "," 0 "," 0 ")" 0) | 1198 | (("Integrate(" 0 "," 0 "," 0 ")" 0) |
| 1199 | calcFunc-integ (var ArgD var-ArgD) (var ArgA var-ArgA) | 1199 | calcFunc-integ (var ArgD var-ArgD) (var ArgA var-ArgA) |
| 1200 | (var ArgB var-ArgB) (var ArgC var-ArgC)) | 1200 | (var ArgB var-ArgB) (var ArgC var-ArgC)) |
| 1201 | (("Subst(" 0 "," 0 ")" 0) | 1201 | (("Subst(" 0 "," 0 ")" 0) |
| 1202 | calcFunc-subst (var ArgC var-ArgC) (var ArgA var-ArgA) | 1202 | calcFunc-subst (var ArgC var-ArgC) (var ArgA var-ArgA) |
| 1203 | (var ArgB var-ArgB)) | 1203 | (var ArgB var-ArgB)) |
| 1204 | (("Taylor(" 0 "," 0 "," 0 ")" 0) | 1204 | (("Taylor(" 0 "," 0 "," 0 ")" 0) |
| 1205 | calcFunc-taylor (var ArgD var-ArgD) | 1205 | calcFunc-taylor (var ArgD var-ArgD) |
| 1206 | (calcFunc-eq (var ArgA var-ArgA) (var ArgB var-ArgB)) | 1206 | (calcFunc-eq (var ArgA var-ArgA) (var ArgB var-ArgB)) |
| 1207 | (var ArgC var-ArgC)))) | 1207 | (var ArgC var-ArgC)))) |
| 1208 | 1208 | ||
| 1209 | (put 'yacas 'math-oper-table | 1209 | (put 'yacas 'math-oper-table |
| @@ -1356,7 +1356,7 @@ | |||
| 1356 | (math-compose-expr (nth 2 a) -1) | 1356 | (math-compose-expr (nth 2 a) -1) |
| 1357 | (if (not (nth 3 a)) | 1357 | (if (not (nth 3 a)) |
| 1358 | ")" | 1358 | ")" |
| 1359 | (concat | 1359 | (concat |
| 1360 | "," | 1360 | "," |
| 1361 | (math-compose-expr (nth 3 a) -1) | 1361 | (math-compose-expr (nth 3 a) -1) |
| 1362 | "," | 1362 | "," |
| @@ -1393,7 +1393,7 @@ | |||
| 1393 | '(("+" + 100 100) | 1393 | '(("+" + 100 100) |
| 1394 | ("-" - 100 134) | 1394 | ("-" - 100 134) |
| 1395 | ("*" * 120 120) | 1395 | ("*" * 120 120) |
| 1396 | ("." * 130 129) | 1396 | ("." * 130 129) |
| 1397 | ("/" / 120 120) | 1397 | ("/" / 120 120) |
| 1398 | ("u-" neg -1 180) | 1398 | ("u-" neg -1 180) |
| 1399 | ("u+" ident -1 180) | 1399 | ("u+" ident -1 180) |
| @@ -1494,9 +1494,9 @@ | |||
| 1494 | (nth 3 args)))) | 1494 | (nth 3 args)))) |
| 1495 | 1495 | ||
| 1496 | (put 'maxima 'math-parse-table | 1496 | (put 'maxima 'math-parse-table |
| 1497 | '((("if" 0 "then" 0 "else" 0) | 1497 | '((("if" 0 "then" 0 "else" 0) |
| 1498 | calcFunc-if | 1498 | calcFunc-if |
| 1499 | (var ArgA var-ArgA) | 1499 | (var ArgA var-ArgA) |
| 1500 | (var ArgB var-ArgB) | 1500 | (var ArgB var-ArgB) |
| 1501 | (var ArgC var-ArgC)))) | 1501 | (var ArgC var-ArgC)))) |
| 1502 | 1502 | ||
| @@ -1572,7 +1572,7 @@ | |||
| 1572 | (lambda (a) | 1572 | (lambda (a) |
| 1573 | (list 'horiz | 1573 | (list 'horiz |
| 1574 | "matrix(" | 1574 | "matrix(" |
| 1575 | (math-compose-vector (cdr a) | 1575 | (math-compose-vector (cdr a) |
| 1576 | (concat math-comp-comma " ") | 1576 | (concat math-comp-comma " ") |
| 1577 | math-comp-vector-prec) | 1577 | math-comp-vector-prec) |
| 1578 | ")")))) | 1578 | ")")))) |
| @@ -1734,7 +1734,7 @@ order to Calc's." | |||
| 1734 | (nth 0 args)))) | 1734 | (nth 0 args)))) |
| 1735 | 1735 | ||
| 1736 | (put 'giac 'math-parse-table | 1736 | (put 'giac 'math-parse-table |
| 1737 | '((("set" 0) | 1737 | '((("set" 0) |
| 1738 | calcFunc-rdup | 1738 | calcFunc-rdup |
| 1739 | (var ArgA var-ArgA)))) | 1739 | (var ArgA var-ArgA)))) |
| 1740 | 1740 | ||
| @@ -1748,7 +1748,7 @@ order to Calc's." | |||
| 1748 | "Compose the arguments to a Calc function in reverse order. | 1748 | "Compose the arguments to a Calc function in reverse order. |
| 1749 | This is used for various language modes which have functions in reverse | 1749 | This is used for various language modes which have functions in reverse |
| 1750 | order to Calc's." | 1750 | order to Calc's." |
| 1751 | (list 'horiz (nth 1 fn) | 1751 | (list 'horiz (nth 1 fn) |
| 1752 | "(" | 1752 | "(" |
| 1753 | (math-compose-expr (nth 2 a) 0) | 1753 | (math-compose-expr (nth 2 a) 0) |
| 1754 | "," | 1754 | "," |
| @@ -1770,7 +1770,7 @@ order to Calc's." | |||
| 1770 | (list 'horiz | 1770 | (list 'horiz |
| 1771 | (math-compose-expr (nth 1 a) 1000) | 1771 | (math-compose-expr (nth 1 a) 1000) |
| 1772 | "[" | 1772 | "[" |
| 1773 | (math-compose-expr | 1773 | (math-compose-expr |
| 1774 | (calc-normalize (list '- (nth 2 a) 1)) 0) | 1774 | (calc-normalize (list '- (nth 2 a) 1)) 0) |
| 1775 | "]"))))) | 1775 | "]"))))) |
| 1776 | 1776 | ||
| @@ -2001,7 +2001,7 @@ order to Calc's." | |||
| 2001 | (list 'horiz | 2001 | (list 'horiz |
| 2002 | "matrix(" | 2002 | "matrix(" |
| 2003 | math-comp-left-bracket | 2003 | math-comp-left-bracket |
| 2004 | (math-compose-vector (cdr a) | 2004 | (math-compose-vector (cdr a) |
| 2005 | (concat math-comp-comma " ") | 2005 | (concat math-comp-comma " ") |
| 2006 | math-comp-vector-prec) | 2006 | math-comp-vector-prec) |
| 2007 | math-comp-right-bracket | 2007 | math-comp-right-bracket |
| @@ -2044,9 +2044,9 @@ order to Calc's." | |||
| 2044 | (defvar math-read-big-baseline) | 2044 | (defvar math-read-big-baseline) |
| 2045 | (defvar math-read-big-h2) | 2045 | (defvar math-read-big-h2) |
| 2046 | 2046 | ||
| 2047 | ;; The variables math-rb-h1, math-rb-h2, math-rb-v1 and math-rb-v2 | 2047 | ;; The variables math-rb-h1, math-rb-h2, math-rb-v1 and math-rb-v2 |
| 2048 | ;; are local to math-read-big-rec, but are used by math-read-big-char, | 2048 | ;; are local to math-read-big-rec, but are used by math-read-big-char, |
| 2049 | ;; math-read-big-emptyp and math-read-big-balance which are called by | 2049 | ;; math-read-big-emptyp and math-read-big-balance which are called by |
| 2050 | ;; math-read-big-rec. | 2050 | ;; math-read-big-rec. |
| 2051 | ;; math-rb-h2 is also local to math-read-big-bigp in calc-ext.el, | 2051 | ;; math-rb-h2 is also local to math-read-big-bigp in calc-ext.el, |
| 2052 | ;; which calls math-read-big-balance. | 2052 | ;; which calls math-read-big-balance. |
| @@ -2055,40 +2055,40 @@ order to Calc's." | |||
| 2055 | (defvar math-rb-v1) | 2055 | (defvar math-rb-v1) |
| 2056 | (defvar math-rb-v2) | 2056 | (defvar math-rb-v2) |
| 2057 | 2057 | ||
| 2058 | (defun math-read-big-rec (math-rb-h1 math-rb-v1 math-rb-h2 math-rb-v2 | 2058 | (defun math-read-big-rec (math-rb-h1 math-rb-v1 math-rb-h2 math-rb-v2 |
| 2059 | &optional baseline prec short) | 2059 | &optional baseline prec short) |
| 2060 | (or prec (setq prec 0)) | 2060 | (or prec (setq prec 0)) |
| 2061 | 2061 | ||
| 2062 | ;; Clip whitespace above or below. | 2062 | ;; Clip whitespace above or below. |
| 2063 | (while (and (< math-rb-v1 math-rb-v2) | 2063 | (while (and (< math-rb-v1 math-rb-v2) |
| 2064 | (math-read-big-emptyp math-rb-h1 math-rb-v1 math-rb-h2 (1+ math-rb-v1))) | 2064 | (math-read-big-emptyp math-rb-h1 math-rb-v1 math-rb-h2 (1+ math-rb-v1))) |
| 2065 | (setq math-rb-v1 (1+ math-rb-v1))) | 2065 | (setq math-rb-v1 (1+ math-rb-v1))) |
| 2066 | (while (and (< math-rb-v1 math-rb-v2) | 2066 | (while (and (< math-rb-v1 math-rb-v2) |
| 2067 | (math-read-big-emptyp math-rb-h1 (1- math-rb-v2) math-rb-h2 math-rb-v2)) | 2067 | (math-read-big-emptyp math-rb-h1 (1- math-rb-v2) math-rb-h2 math-rb-v2)) |
| 2068 | (setq math-rb-v2 (1- math-rb-v2))) | 2068 | (setq math-rb-v2 (1- math-rb-v2))) |
| 2069 | 2069 | ||
| 2070 | ;; If formula is a single line high, normal parser can handle it. | 2070 | ;; If formula is a single line high, normal parser can handle it. |
| 2071 | (if (<= math-rb-v2 (1+ math-rb-v1)) | 2071 | (if (<= math-rb-v2 (1+ math-rb-v1)) |
| 2072 | (if (or (<= math-rb-v2 math-rb-v1) | 2072 | (if (or (<= math-rb-v2 math-rb-v1) |
| 2073 | (> math-rb-h1 (length (setq math-rb-v2 | 2073 | (> math-rb-h1 (length (setq math-rb-v2 |
| 2074 | (nth math-rb-v1 math-read-big-lines))))) | 2074 | (nth math-rb-v1 math-read-big-lines))))) |
| 2075 | (math-read-big-error math-rb-h1 math-rb-v1) | 2075 | (math-read-big-error math-rb-h1 math-rb-v1) |
| 2076 | (setq math-read-big-baseline math-rb-v1 | 2076 | (setq math-read-big-baseline math-rb-v1 |
| 2077 | math-read-big-h2 math-rb-h2 | 2077 | math-read-big-h2 math-rb-h2 |
| 2078 | math-rb-v2 (nth math-rb-v1 math-read-big-lines) | 2078 | math-rb-v2 (nth math-rb-v1 math-read-big-lines) |
| 2079 | math-rb-h2 (math-read-expr | 2079 | math-rb-h2 (math-read-expr |
| 2080 | (substring math-rb-v2 math-rb-h1 | 2080 | (substring math-rb-v2 math-rb-h1 |
| 2081 | (min math-rb-h2 (length math-rb-v2))))) | 2081 | (min math-rb-h2 (length math-rb-v2))))) |
| 2082 | (if (eq (car-safe math-rb-h2) 'error) | 2082 | (if (eq (car-safe math-rb-h2) 'error) |
| 2083 | (math-read-big-error (+ math-rb-h1 (nth 1 math-rb-h2)) | 2083 | (math-read-big-error (+ math-rb-h1 (nth 1 math-rb-h2)) |
| 2084 | math-rb-v1 (nth 2 math-rb-h2)) | 2084 | math-rb-v1 (nth 2 math-rb-h2)) |
| 2085 | math-rb-h2)) | 2085 | math-rb-h2)) |
| 2086 | 2086 | ||
| 2087 | ;; Clip whitespace at left or right. | 2087 | ;; Clip whitespace at left or right. |
| 2088 | (while (and (< math-rb-h1 math-rb-h2) | 2088 | (while (and (< math-rb-h1 math-rb-h2) |
| 2089 | (math-read-big-emptyp math-rb-h1 math-rb-v1 (1+ math-rb-h1) math-rb-v2)) | 2089 | (math-read-big-emptyp math-rb-h1 math-rb-v1 (1+ math-rb-h1) math-rb-v2)) |
| 2090 | (setq math-rb-h1 (1+ math-rb-h1))) | 2090 | (setq math-rb-h1 (1+ math-rb-h1))) |
| 2091 | (while (and (< math-rb-h1 math-rb-h2) | 2091 | (while (and (< math-rb-h1 math-rb-h2) |
| 2092 | (math-read-big-emptyp (1- math-rb-h2) math-rb-v1 math-rb-h2 math-rb-v2)) | 2092 | (math-read-big-emptyp (1- math-rb-h2) math-rb-v1 math-rb-h2 math-rb-v2)) |
| 2093 | (setq math-rb-h2 (1- math-rb-h2))) | 2093 | (setq math-rb-h2 (1- math-rb-h2))) |
| 2094 | 2094 | ||
| @@ -2107,7 +2107,7 @@ order to Calc's." | |||
| 2107 | (/= (aref line math-rb-h1) ?\ ) | 2107 | (/= (aref line math-rb-h1) ?\ ) |
| 2108 | (if (and (= (aref line math-rb-h1) ?\-) | 2108 | (if (and (= (aref line math-rb-h1) ?\-) |
| 2109 | ;; Make sure it's not a minus sign. | 2109 | ;; Make sure it's not a minus sign. |
| 2110 | (or (and (< (1+ math-rb-h1) len) | 2110 | (or (and (< (1+ math-rb-h1) len) |
| 2111 | (= (aref line (1+ math-rb-h1)) ?\-)) | 2111 | (= (aref line (1+ math-rb-h1)) ?\-)) |
| 2112 | (/= (math-read-big-char math-rb-h1 (1- v)) ?\ ) | 2112 | (/= (math-read-big-char math-rb-h1 (1- v)) ?\ ) |
| 2113 | (/= (math-read-big-char math-rb-h1 (1+ v)) ?\ ))) | 2113 | (/= (math-read-big-char math-rb-h1 (1+ v)) ?\ ))) |
| @@ -2166,7 +2166,7 @@ order to Calc's." | |||
| 2166 | ;; Binomial coefficient. | 2166 | ;; Binomial coefficient. |
| 2167 | ((and (= other-char ?\() | 2167 | ((and (= other-char ?\() |
| 2168 | (= (math-read-big-char (1+ math-rb-h1) v) ?\ ) | 2168 | (= (math-read-big-char (1+ math-rb-h1) v) ?\ ) |
| 2169 | (= (string-match "( *)" (nth v math-read-big-lines) | 2169 | (= (string-match "( *)" (nth v math-read-big-lines) |
| 2170 | math-rb-h1) math-rb-h1)) | 2170 | math-rb-h1) math-rb-h1)) |
| 2171 | (setq h (match-end 0)) | 2171 | (setq h (match-end 0)) |
| 2172 | (math-read-big-emptyp math-rb-h1 math-rb-v1 (1+ math-rb-h1) v nil t) | 2172 | (math-read-big-emptyp math-rb-h1 math-rb-v1 (1+ math-rb-h1) v nil t) |
| @@ -2180,7 +2180,7 @@ order to Calc's." | |||
| 2180 | 2180 | ||
| 2181 | ;; Minus sign. | 2181 | ;; Minus sign. |
| 2182 | ((= other-char ?\-) | 2182 | ((= other-char ?\-) |
| 2183 | (setq p (list 'neg (math-read-big-rec (1+ math-rb-h1) math-rb-v1 | 2183 | (setq p (list 'neg (math-read-big-rec (1+ math-rb-h1) math-rb-v1 |
| 2184 | math-rb-h2 math-rb-v2 v 250 t)) | 2184 | math-rb-h2 math-rb-v2 v 250 t)) |
| 2185 | v math-read-big-baseline | 2185 | v math-read-big-baseline |
| 2186 | h math-read-big-h2)) | 2186 | h math-read-big-h2)) |
| @@ -2199,10 +2199,10 @@ order to Calc's." | |||
| 2199 | (if (= sep ?\]) | 2199 | (if (= sep ?\]) |
| 2200 | (math-read-big-error (1- h) v "Expected `)'")) | 2200 | (math-read-big-error (1- h) v "Expected `)'")) |
| 2201 | (if (= sep ?\)) | 2201 | (if (= sep ?\)) |
| 2202 | (setq p (math-read-big-rec | 2202 | (setq p (math-read-big-rec |
| 2203 | (1+ math-rb-h1) math-rb-v1 (1- h) math-rb-v2 v)) | 2203 | (1+ math-rb-h1) math-rb-v1 (1- h) math-rb-v2 v)) |
| 2204 | (setq hmid (math-read-big-balance h v "(") | 2204 | (setq hmid (math-read-big-balance h v "(") |
| 2205 | p (list p | 2205 | p (list p |
| 2206 | (math-read-big-rec h math-rb-v1 (1- hmid) math-rb-v2 v)) | 2206 | (math-read-big-rec h math-rb-v1 (1- hmid) math-rb-v2 v)) |
| 2207 | h hmid) | 2207 | h hmid) |
| 2208 | (cond ((= sep ?\.) | 2208 | (cond ((= sep ?\.) |
| @@ -2347,7 +2347,7 @@ order to Calc's." | |||
| 2347 | (math-read-big-emptyp math-rb-h1 math-rb-v1 h v nil t) | 2347 | (math-read-big-emptyp math-rb-h1 math-rb-v1 h v nil t) |
| 2348 | (math-read-big-emptyp math-rb-h1 (1+ v) h math-rb-v2 nil t))) | 2348 | (math-read-big-emptyp math-rb-h1 (1+ v) h math-rb-v2 nil t))) |
| 2349 | 2349 | ||
| 2350 | ;; Now left term is bounded by math-rb-h1, math-rb-v1, h, math-rb-v2; | 2350 | ;; Now left term is bounded by math-rb-h1, math-rb-v1, h, math-rb-v2; |
| 2351 | ;; baseline = v. | 2351 | ;; baseline = v. |
| 2352 | (if baseline | 2352 | (if baseline |
| 2353 | (or (= v baseline) | 2353 | (or (= v baseline) |
| @@ -2389,12 +2389,12 @@ order to Calc's." | |||
| 2389 | (cond ((eq (nth 3 widest) -1) | 2389 | (cond ((eq (nth 3 widest) -1) |
| 2390 | (setq p (list (nth 1 widest) p))) | 2390 | (setq p (list (nth 1 widest) p))) |
| 2391 | ((equal (car widest) "?") | 2391 | ((equal (car widest) "?") |
| 2392 | (let ((y (math-read-big-rec h math-rb-v1 math-rb-h2 | 2392 | (let ((y (math-read-big-rec h math-rb-v1 math-rb-h2 |
| 2393 | math-rb-v2 baseline nil t))) | 2393 | math-rb-v2 baseline nil t))) |
| 2394 | (or (= (math-read-big-char math-read-big-h2 baseline) ?\:) | 2394 | (or (= (math-read-big-char math-read-big-h2 baseline) ?\:) |
| 2395 | (math-read-big-error math-read-big-h2 baseline "Expected `:'")) | 2395 | (math-read-big-error math-read-big-h2 baseline "Expected `:'")) |
| 2396 | (setq p (list (nth 1 widest) p y | 2396 | (setq p (list (nth 1 widest) p y |
| 2397 | (math-read-big-rec | 2397 | (math-read-big-rec |
| 2398 | (1+ math-read-big-h2) math-rb-v1 math-rb-h2 math-rb-v2 | 2398 | (1+ math-read-big-h2) math-rb-v1 math-rb-h2 math-rb-v2 |
| 2399 | baseline (nth 3 widest) t)) | 2399 | baseline (nth 3 widest) t)) |
| 2400 | h math-read-big-h2))) | 2400 | h math-read-big-h2))) |
| @@ -2483,5 +2483,9 @@ order to Calc's." | |||
| 2483 | 2483 | ||
| 2484 | (provide 'calc-lang) | 2484 | (provide 'calc-lang) |
| 2485 | 2485 | ||
| 2486 | ;; Local variables: | ||
| 2487 | ;; coding: utf-8 | ||
| 2488 | ;; End: | ||
| 2489 | |||
| 2486 | ;; arch-tag: 483bfe15-f290-4fef-bb7d-ce65be687f2e | 2490 | ;; arch-tag: 483bfe15-f290-4fef-bb7d-ce65be687f2e |
| 2487 | ;;; calc-lang.el ends here | 2491 | ;;; calc-lang.el ends here |
diff --git a/lisp/calc/calc-store.el b/lisp/calc/calc-store.el index 8f73e71b0f9..b82ed08c557 100644 --- a/lisp/calc/calc-store.el +++ b/lisp/calc/calc-store.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; calc-store.el --- value storage functions for Calc | 1 | ;;; calc-store.el --- value storage functions for Calc |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2002, 2003, 2004, 2005, |
| 4 | ;; 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 4 | ;; 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: David Gillespie <daveg@synaptics.com> | 6 | ;; Author: David Gillespie <daveg@synaptics.com> |
| 7 | ;; Maintainer: Jay Belanger <jay.p.belanger@gmail.com> | 7 | ;; Maintainer: Jay Belanger <jay.p.belanger@gmail.com> |
| @@ -197,8 +197,8 @@ | |||
| 197 | (minibuffer-completion-predicate | 197 | (minibuffer-completion-predicate |
| 198 | (lambda (x) (boundp (intern (concat "var-" x))))) | 198 | (lambda (x) (boundp (intern (concat "var-" x))))) |
| 199 | (minibuffer-completion-confirm t)) | 199 | (minibuffer-completion-confirm t)) |
| 200 | (read-from-minibuffer | 200 | (read-from-minibuffer |
| 201 | prompt nil calc-var-name-map nil | 201 | prompt nil calc-var-name-map nil |
| 202 | 'calc-read-var-name-history))))) | 202 | 'calc-read-var-name-history))))) |
| 203 | (setq calc-aborted-prefix "") | 203 | (setq calc-aborted-prefix "") |
| 204 | (and (not (equal var "var-")) | 204 | (and (not (equal var "var-")) |
| @@ -677,5 +677,9 @@ | |||
| 677 | 677 | ||
| 678 | (provide 'calc-store) | 678 | (provide 'calc-store) |
| 679 | 679 | ||
| 680 | ;; Local variables: | ||
| 681 | ;; coding: utf-8 | ||
| 682 | ;; End: | ||
| 683 | |||
| 680 | ;; arch-tag: 2fbfec82-a521-42ca-bcd8-4f254ae6313e | 684 | ;; arch-tag: 2fbfec82-a521-42ca-bcd8-4f254ae6313e |
| 681 | ;;; calc-store.el ends here | 685 | ;;; calc-store.el ends here |
diff --git a/lisp/calc/calc-units.el b/lisp/calc/calc-units.el index 6881db3fb12..a88e87dffbc 100644 --- a/lisp/calc/calc-units.el +++ b/lisp/calc/calc-units.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; calc-units.el --- unit conversion functions for Calc | 1 | ;;; calc-units.el --- unit conversion functions for Calc |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2002, 2003, 2004, 2005, |
| 4 | ;; 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 4 | ;; 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: David Gillespie <daveg@synaptics.com> | 6 | ;; Author: David Gillespie <daveg@synaptics.com> |
| 7 | ;; Maintainer: Jay Belanger <jay.p.belanger@gmail.com> | 7 | ;; Maintainer: Jay Belanger <jay.p.belanger@gmail.com> |
| @@ -323,7 +323,7 @@ that the combined units table will be rebuilt.") | |||
| 323 | ( ?c (^ 10 -2) "Centi" ) | 323 | ( ?c (^ 10 -2) "Centi" ) |
| 324 | ( ?m (^ 10 -3) "Milli" ) | 324 | ( ?m (^ 10 -3) "Milli" ) |
| 325 | ( ?u (^ 10 -6) "Micro" ) | 325 | ( ?u (^ 10 -6) "Micro" ) |
| 326 | ( ?μ (^ 10 -6) "Micro" ) | 326 | ( ?μ (^ 10 -6) "Micro" ) |
| 327 | ( ?n (^ 10 -9) "Nano" ) | 327 | ( ?n (^ 10 -9) "Nano" ) |
| 328 | ( ?p (^ 10 -12) "Pico" ) | 328 | ( ?p (^ 10 -12) "Pico" ) |
| 329 | ( ?f (^ 10 -15) "Femto" ) | 329 | ( ?f (^ 10 -15) "Femto" ) |
| @@ -1548,5 +1548,9 @@ If EXPR is nil, return nil." | |||
| 1548 | 1548 | ||
| 1549 | (provide 'calc-units) | 1549 | (provide 'calc-units) |
| 1550 | 1550 | ||
| 1551 | ;; Local variables: | ||
| 1552 | ;; coding: utf-8 | ||
| 1553 | ;; End: | ||
| 1554 | |||
| 1551 | ;; arch-tag: e993314f-3adc-4191-be61-4ef8874881c4 | 1555 | ;; arch-tag: e993314f-3adc-4191-be61-4ef8874881c4 |
| 1552 | ;;; calc-units.el ends here | 1556 | ;;; calc-units.el ends here |
diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el index 587e376245b..7ea371dd16e 100644 --- a/lisp/calc/calc.el +++ b/lisp/calc/calc.el | |||
| @@ -419,7 +419,7 @@ in normal mode." | |||
| 419 | :group 'calc | 419 | :group 'calc |
| 420 | :type 'boolean) | 420 | :type 'boolean) |
| 421 | 421 | ||
| 422 | (defcustom calc-undo-length | 422 | (defcustom calc-undo-length |
| 423 | 100 | 423 | 100 |
| 424 | "The number of undo steps that will be preserved when Calc is quit." | 424 | "The number of undo steps that will be preserved when Calc is quit." |
| 425 | :group 'calc | 425 | :group 'calc |
| @@ -1233,7 +1233,7 @@ the trail buffer." | |||
| 1233 | ;; Eventually, prompt user with a list of buffers using embedded mode. | 1233 | ;; Eventually, prompt user with a list of buffers using embedded mode. |
| 1234 | (when (and | 1234 | (when (and |
| 1235 | info-list | 1235 | info-list |
| 1236 | (yes-or-no-p | 1236 | (yes-or-no-p |
| 1237 | (concat "This Calc stack is being used for embedded mode. Kill anyway?"))) | 1237 | (concat "This Calc stack is being used for embedded mode. Kill anyway?"))) |
| 1238 | (while info-list | 1238 | (while info-list |
| 1239 | (with-current-buffer (car (car info-list)) | 1239 | (with-current-buffer (car (car info-list)) |
| @@ -3409,7 +3409,7 @@ largest Emacs integer.") | |||
| 3409 | (Math-lessp a math-half-2-word-size)) | 3409 | (Math-lessp a math-half-2-word-size)) |
| 3410 | (and (Math-integer-negp a) | 3410 | (and (Math-integer-negp a) |
| 3411 | (require 'calc-ext) | 3411 | (require 'calc-ext) |
| 3412 | (let ((comparison | 3412 | (let ((comparison |
| 3413 | (math-compare (Math-integer-neg a) math-half-2-word-size))) | 3413 | (math-compare (Math-integer-neg a) math-half-2-word-size))) |
| 3414 | (or (= comparison 0) | 3414 | (or (= comparison 0) |
| 3415 | (= comparison -1)))))) | 3415 | (= comparison -1)))))) |
| @@ -3553,7 +3553,7 @@ largest Emacs integer.") | |||
| 3553 | (math-normalize | 3553 | (math-normalize |
| 3554 | (save-match-data | 3554 | (save-match-data |
| 3555 | (cond | 3555 | (cond |
| 3556 | 3556 | ||
| 3557 | ;; Integers (most common case) | 3557 | ;; Integers (most common case) |
| 3558 | ((string-match "\\` *\\([0-9]+\\) *\\'" s) | 3558 | ((string-match "\\` *\\([0-9]+\\) *\\'" s) |
| 3559 | (let ((digs (math-match-substring s 1))) | 3559 | (let ((digs (math-match-substring s 1))) |
| @@ -3565,22 +3565,22 @@ largest Emacs integer.") | |||
| 3565 | (if (<= (length digs) (* 2 math-bignum-digit-length)) | 3565 | (if (<= (length digs) (* 2 math-bignum-digit-length)) |
| 3566 | (string-to-number digs) | 3566 | (string-to-number digs) |
| 3567 | (cons 'bigpos (math-read-bignum digs)))))) | 3567 | (cons 'bigpos (math-read-bignum digs)))))) |
| 3568 | 3568 | ||
| 3569 | ;; Clean up the string if necessary | 3569 | ;; Clean up the string if necessary |
| 3570 | ((string-match "\\`\\(.*\\)[ \t\n]+\\([^\001]*\\)\\'" s) | 3570 | ((string-match "\\`\\(.*\\)[ \t\n]+\\([^\001]*\\)\\'" s) |
| 3571 | (math-read-number (concat (math-match-substring s 1) | 3571 | (math-read-number (concat (math-match-substring s 1) |
| 3572 | (math-match-substring s 2)))) | 3572 | (math-match-substring s 2)))) |
| 3573 | 3573 | ||
| 3574 | ;; Plus and minus signs | 3574 | ;; Plus and minus signs |
| 3575 | ((string-match "^[-_+]\\(.*\\)$" s) | 3575 | ((string-match "^[-_+]\\(.*\\)$" s) |
| 3576 | (let ((val (math-read-number (math-match-substring s 1)))) | 3576 | (let ((val (math-read-number (math-match-substring s 1)))) |
| 3577 | (and val (if (eq (aref s 0) ?+) val (math-neg val))))) | 3577 | (and val (if (eq (aref s 0) ?+) val (math-neg val))))) |
| 3578 | 3578 | ||
| 3579 | ;; Forms that require extensions module | 3579 | ;; Forms that require extensions module |
| 3580 | ((string-match "[^-+0-9eE.]" s) | 3580 | ((string-match "[^-+0-9eE.]" s) |
| 3581 | (require 'calc-ext) | 3581 | (require 'calc-ext) |
| 3582 | (math-read-number-fancy s)) | 3582 | (math-read-number-fancy s)) |
| 3583 | 3583 | ||
| 3584 | ;; Decimal point | 3584 | ;; Decimal point |
| 3585 | ((string-match "^\\([0-9]*\\)\\.\\([0-9]*\\)$" s) | 3585 | ((string-match "^\\([0-9]*\\)\\.\\([0-9]*\\)$" s) |
| 3586 | (let ((int (math-match-substring s 1)) | 3586 | (let ((int (math-match-substring s 1)) |
| @@ -3593,7 +3593,7 @@ largest Emacs integer.") | |||
| 3593 | (list 'float | 3593 | (list 'float |
| 3594 | (math-add (math-scale-int int flen) frac) | 3594 | (math-add (math-scale-int int flen) frac) |
| 3595 | (- flen))))))) | 3595 | (- flen))))))) |
| 3596 | 3596 | ||
| 3597 | ;; "e" notation | 3597 | ;; "e" notation |
| 3598 | ((string-match "^\\(.*\\)[eE]\\([-+]?[0-9]+\\)$" s) | 3598 | ((string-match "^\\(.*\\)[eE]\\([-+]?[0-9]+\\)$" s) |
| 3599 | (let ((mant (math-match-substring s 1)) | 3599 | (let ((mant (math-match-substring s 1)) |
| @@ -3604,7 +3604,7 @@ largest Emacs integer.") | |||
| 3604 | (and mant exp (Math-realp mant) (> exp -4000000) (< exp 4000000) | 3604 | (and mant exp (Math-realp mant) (> exp -4000000) (< exp 4000000) |
| 3605 | (let ((mant (math-float mant))) | 3605 | (let ((mant (math-float mant))) |
| 3606 | (list 'float (nth 1 mant) (+ (nth 2 mant) exp))))))) | 3606 | (list 'float (nth 1 mant) (+ (nth 2 mant) exp))))))) |
| 3607 | 3607 | ||
| 3608 | ;; Syntax error! | 3608 | ;; Syntax error! |
| 3609 | (t nil))))) | 3609 | (t nil))))) |
| 3610 | 3610 | ||
| @@ -3797,7 +3797,7 @@ See Info node `(calc)Defining Functions'." | |||
| 3797 | (setq unread-command-event nil) | 3797 | (setq unread-command-event nil) |
| 3798 | (setq unread-command-events nil))) | 3798 | (setq unread-command-events nil))) |
| 3799 | 3799 | ||
| 3800 | (defcalcmodevar math-2-word-size | 3800 | (defcalcmodevar math-2-word-size |
| 3801 | (math-read-number-simple "4294967296") | 3801 | (math-read-number-simple "4294967296") |
| 3802 | "Two to the power of `calc-word-size'.") | 3802 | "Two to the power of `calc-word-size'.") |
| 3803 | 3803 | ||
| @@ -3814,5 +3814,9 @@ See Info node `(calc)Defining Functions'." | |||
| 3814 | 3814 | ||
| 3815 | (provide 'calc) | 3815 | (provide 'calc) |
| 3816 | 3816 | ||
| 3817 | ;; Local variables: | ||
| 3818 | ;; coding: utf-8 | ||
| 3819 | ;; End: | ||
| 3820 | |||
| 3817 | ;; arch-tag: 0c3b170c-4ce6-4eaf-8d9b-5834d1fe938f | 3821 | ;; arch-tag: 0c3b170c-4ce6-4eaf-8d9b-5834d1fe938f |
| 3818 | ;;; calc.el ends here | 3822 | ;;; calc.el ends here |
diff --git a/lisp/calc/calccomp.el b/lisp/calc/calccomp.el index c8efded9270..7aeb31c7719 100644 --- a/lisp/calc/calccomp.el +++ b/lisp/calc/calccomp.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; calccomp.el --- composition functions for Calc | 1 | ;;; calccomp.el --- composition functions for Calc |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2002, 2003, 2004, 2005, |
| 4 | ;; 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 4 | ;; 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: David Gillespie <daveg@synaptics.com> | 6 | ;; Author: David Gillespie <daveg@synaptics.com> |
| 7 | ;; Maintainer: Jay Belanger <jay.p.belanger@gmail.com> | 7 | ;; Maintainer: Jay Belanger <jay.p.belanger@gmail.com> |
| @@ -50,19 +50,19 @@ | |||
| 50 | ;;; | 50 | ;;; |
| 51 | ;;; (tag X C) Composition C corresponds to sub-expression X | 51 | ;;; (tag X C) Composition C corresponds to sub-expression X |
| 52 | 52 | ||
| 53 | ;; math-comp-just and math-comp-comma-spc are local to | 53 | ;; math-comp-just and math-comp-comma-spc are local to |
| 54 | ;; math-compose-expr, but are used by math-compose-matrix, which is | 54 | ;; math-compose-expr, but are used by math-compose-matrix, which is |
| 55 | ;; called by math-compose-expr | 55 | ;; called by math-compose-expr |
| 56 | (defvar math-comp-just) | 56 | (defvar math-comp-just) |
| 57 | (defvar math-comp-comma-spc) | 57 | (defvar math-comp-comma-spc) |
| 58 | 58 | ||
| 59 | ;; math-comp-vector-prec is local to math-compose-expr, but is used by | 59 | ;; math-comp-vector-prec is local to math-compose-expr, but is used by |
| 60 | ;; math-compose-matrix and math-compose-rows, which are called by | 60 | ;; math-compose-matrix and math-compose-rows, which are called by |
| 61 | ;; math-compose-expr. | 61 | ;; math-compose-expr. |
| 62 | (defvar math-comp-vector-prec) | 62 | (defvar math-comp-vector-prec) |
| 63 | 63 | ||
| 64 | ;; math-comp-left-bracket, math-comp-right-bracket and math-comp-comma are | 64 | ;; math-comp-left-bracket, math-comp-right-bracket and math-comp-comma are |
| 65 | ;; local to math-compose-expr, but are used by math-compose-rows, which is | 65 | ;; local to math-compose-expr, but are used by math-compose-rows, which is |
| 66 | ;; called by math-compose-expr. | 66 | ;; called by math-compose-expr. |
| 67 | (defvar math-comp-left-bracket) | 67 | (defvar math-comp-left-bracket) |
| 68 | (defvar math-comp-right-bracket) | 68 | (defvar math-comp-right-bracket) |
| @@ -100,7 +100,7 @@ | |||
| 100 | (list 'tag a (math-compose-expr a prec)))) | 100 | (list 'tag a (math-compose-expr a prec)))) |
| 101 | ((and (not (consp a)) (not (integerp a))) | 101 | ((and (not (consp a)) (not (integerp a))) |
| 102 | (concat "'" (prin1-to-string a))) | 102 | (concat "'" (prin1-to-string a))) |
| 103 | ((setq spfn (assq (car-safe a) | 103 | ((setq spfn (assq (car-safe a) |
| 104 | (get calc-language 'math-special-function-table))) | 104 | (get calc-language 'math-special-function-table))) |
| 105 | (setq spfn (cdr spfn)) | 105 | (setq spfn (cdr spfn)) |
| 106 | (if (consp spfn) | 106 | (if (consp spfn) |
| @@ -111,12 +111,12 @@ | |||
| 111 | (and (nth 1 calc-frac-format) (Math-integerp a))) | 111 | (and (nth 1 calc-frac-format) (Math-integerp a))) |
| 112 | (if (and | 112 | (if (and |
| 113 | calc-language | 113 | calc-language |
| 114 | (not (memq calc-language | 114 | (not (memq calc-language |
| 115 | '(flat big unform)))) | 115 | '(flat big unform)))) |
| 116 | (let ((aa (math-adjust-fraction a)) | 116 | (let ((aa (math-adjust-fraction a)) |
| 117 | (calc-frac-format nil)) | 117 | (calc-frac-format nil)) |
| 118 | (math-compose-expr (list '/ | 118 | (math-compose-expr (list '/ |
| 119 | (if (memq calc-language | 119 | (if (memq calc-language |
| 120 | calc-lang-slash-idiv) | 120 | calc-lang-slash-idiv) |
| 121 | (math-float (nth 1 aa)) | 121 | (math-float (nth 1 aa)) |
| 122 | (nth 1 aa)) | 122 | (nth 1 aa)) |
| @@ -281,22 +281,22 @@ | |||
| 281 | (cdr a) | 281 | (cdr a) |
| 282 | (if full rows 3) t))))) | 282 | (if full rows 3) t))))) |
| 283 | (if (or calc-full-vectors (< (length a) 7)) | 283 | (if (or calc-full-vectors (< (length a) 7)) |
| 284 | (if (and | 284 | (if (and |
| 285 | (setq spfn (get calc-language 'math-matrix-formatter)) | 285 | (setq spfn (get calc-language 'math-matrix-formatter)) |
| 286 | (math-matrixp a)) | 286 | (math-matrixp a)) |
| 287 | (funcall spfn a) | 287 | (funcall spfn a) |
| 288 | (list 'horiz | 288 | (list 'horiz |
| 289 | math-comp-left-bracket | 289 | math-comp-left-bracket |
| 290 | (math-compose-vector (cdr a) | 290 | (math-compose-vector (cdr a) |
| 291 | (concat math-comp-comma " ") | 291 | (concat math-comp-comma " ") |
| 292 | math-comp-vector-prec) | 292 | math-comp-vector-prec) |
| 293 | math-comp-right-bracket)) | 293 | math-comp-right-bracket)) |
| 294 | (list 'horiz | 294 | (list 'horiz |
| 295 | math-comp-left-bracket | 295 | math-comp-left-bracket |
| 296 | (math-compose-vector (list (nth 1 a) (nth 2 a) (nth 3 a)) | 296 | (math-compose-vector (list (nth 1 a) (nth 2 a) (nth 3 a)) |
| 297 | (concat math-comp-comma " ") | 297 | (concat math-comp-comma " ") |
| 298 | math-comp-vector-prec) | 298 | math-comp-vector-prec) |
| 299 | math-comp-comma | 299 | math-comp-comma |
| 300 | (if (setq spfn (get calc-language 'math-dots)) | 300 | (if (setq spfn (get calc-language 'math-dots)) |
| 301 | (concat " " spfn) | 301 | (concat " " spfn) |
| 302 | " ...") | 302 | " ...") |
| @@ -869,7 +869,7 @@ | |||
| 869 | math-comp-vector-prec) | 869 | math-comp-vector-prec) |
| 870 | (if (= col cols) | 870 | (if (= col cols) |
| 871 | "" | 871 | "" |
| 872 | (concat | 872 | (concat |
| 873 | math-comp-comma-spc " "))))) | 873 | math-comp-comma-spc " "))))) |
| 874 | a))) | 874 | a))) |
| 875 | res))) | 875 | res))) |
| @@ -880,7 +880,7 @@ | |||
| 880 | (if (<= count 0) | 880 | (if (<= count 0) |
| 881 | (if (< count 0) | 881 | (if (< count 0) |
| 882 | (math-compose-rows (cdr a) -1 nil) | 882 | (math-compose-rows (cdr a) -1 nil) |
| 883 | (cons (concat | 883 | (cons (concat |
| 884 | (let ((mdots (get calc-language 'math-dots))) | 884 | (let ((mdots (get calc-language 'math-dots))) |
| 885 | (if mdots | 885 | (if mdots |
| 886 | (concat " " mdots) | 886 | (concat " " mdots) |
| @@ -1119,7 +1119,7 @@ | |||
| 1119 | (if (memq prec '(196 201)) ")" ""))))) | 1119 | (if (memq prec '(196 201)) ")" ""))))) |
| 1120 | 1120 | ||
| 1121 | ;; The variables math-svo-c, math-svo-wid and math-svo-off are local | 1121 | ;; The variables math-svo-c, math-svo-wid and math-svo-off are local |
| 1122 | ;; to math-stack-value-offset in calc.el, but are used by | 1122 | ;; to math-stack-value-offset in calc.el, but are used by |
| 1123 | ;; math-stack-value-offset-fancy, which is called by math-stack-value-offset.. | 1123 | ;; math-stack-value-offset-fancy, which is called by math-stack-value-offset.. |
| 1124 | (defvar math-svo-c) | 1124 | (defvar math-svo-c) |
| 1125 | (defvar math-svo-wid) | 1125 | (defvar math-svo-wid) |
| @@ -1195,11 +1195,11 @@ | |||
| 1195 | ;;; of the formula. | 1195 | ;;; of the formula. |
| 1196 | 1196 | ||
| 1197 | ;; The variables math-comp-full-width, math-comp-highlight, math-comp-word, | 1197 | ;; The variables math-comp-full-width, math-comp-highlight, math-comp-word, |
| 1198 | ;; math-comp-level, math-comp-margin and math-comp-buf are local to | 1198 | ;; math-comp-level, math-comp-margin and math-comp-buf are local to |
| 1199 | ;; math-comp-to-string-flat, but are used by math-comp-to-string-flat-term, | 1199 | ;; math-comp-to-string-flat, but are used by math-comp-to-string-flat-term, |
| 1200 | ;; which is called by math-comp-to-string-flat. | 1200 | ;; which is called by math-comp-to-string-flat. |
| 1201 | ;; math-comp-highlight and math-comp-buf are also local to | 1201 | ;; math-comp-highlight and math-comp-buf are also local to |
| 1202 | ;; math-comp-simplify-term and math-comp-simplify respectively, but are used | 1202 | ;; math-comp-simplify-term and math-comp-simplify respectively, but are used |
| 1203 | ;; by math-comp-add-string. | 1203 | ;; by math-comp-add-string. |
| 1204 | (defvar math-comp-full-width) | 1204 | (defvar math-comp-full-width) |
| 1205 | (defvar math-comp-highlight) | 1205 | (defvar math-comp-highlight) |
| @@ -1244,7 +1244,7 @@ | |||
| 1244 | (cond ((not (consp c)) | 1244 | (cond ((not (consp c)) |
| 1245 | (if math-comp-highlight | 1245 | (if math-comp-highlight |
| 1246 | (setq c (math-comp-highlight-string c))) | 1246 | (setq c (math-comp-highlight-string c))) |
| 1247 | (setq math-comp-word (if (= (length math-comp-word) 0) c | 1247 | (setq math-comp-word (if (= (length math-comp-word) 0) c |
| 1248 | (concat math-comp-word c)) | 1248 | (concat math-comp-word c)) |
| 1249 | math-comp-pos (+ math-comp-pos (length c)))) | 1249 | math-comp-pos (+ math-comp-pos (length c)))) |
| 1250 | 1250 | ||
| @@ -1347,8 +1347,8 @@ | |||
| 1347 | 1347 | ||
| 1348 | 1348 | ||
| 1349 | ;; The variable math-comp-sel-tag is local to calc-find-selected-part | 1349 | ;; The variable math-comp-sel-tag is local to calc-find-selected-part |
| 1350 | ;; in calc-sel.el, but is used by math-comp-sel-flat-term and | 1350 | ;; in calc-sel.el, but is used by math-comp-sel-flat-term and |
| 1351 | ;; math-comp-add-string-sel, which are called (indirectly) by | 1351 | ;; math-comp-add-string-sel, which are called (indirectly) by |
| 1352 | ;; calc-find-selected-part. | 1352 | ;; calc-find-selected-part. |
| 1353 | (defvar math-comp-sel-tag) | 1353 | (defvar math-comp-sel-tag) |
| 1354 | 1354 | ||
| @@ -1668,5 +1668,9 @@ | |||
| 1668 | 1668 | ||
| 1669 | (provide 'calccomp) | 1669 | (provide 'calccomp) |
| 1670 | 1670 | ||
| 1671 | ;; Local variables: | ||
| 1672 | ;; coding: utf-8 | ||
| 1673 | ;; End: | ||
| 1674 | |||
| 1671 | ;; arch-tag: 7c45d10a-a286-4dab-af49-7ae8989fbf78 | 1675 | ;; arch-tag: 7c45d10a-a286-4dab-af49-7ae8989fbf78 |
| 1672 | ;;; calccomp.el ends here | 1676 | ;;; calccomp.el ends here |