1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-16 09:50:25 +00:00
Commit Graph

445 Commits

Author SHA1 Message Date
Jay Belanger
8cdb7a173d (calc-read-var-name): Remove initial "var-" from minibuffer. 2004-12-27 05:02:08 +00:00
Jay Belanger
a1a6b42850 (calcAlg-blank-matching-open): Temporarily adjust the syntax of both
delimiters of half-open intervals.
2004-12-19 06:59:33 +00:00
Jay Belanger
a59a16878f (math-random-last): Declare it.
(math-random-digit): Undo last change.  Don't make math-random-last local.
(var-RandSeed): Don't initially bind it.
(math-init-random-base, math-random-digit): Check to see if
var-RandSeed is bound.
2004-12-17 05:26:18 +00:00
Jay Belanger
2d3da38b67 (math-random-digit): Call math-init-random-base if var-RandSeed is nil. 2004-12-16 22:56:08 +00:00
Jay Belanger
46110f337e (calc-keypad-mode): Unbind unused mouse events.
(calc-keypad-left-click): Set buffer to calc-keymap-buffer.
2004-12-08 22:46:13 +00:00
Jay Belanger
19649cc93c (math-read-replacement-list, math-read-superscripts): Move to
calc-aent.el.
(math-read-preprocess-string): Move to calc-aent.el.
2004-12-08 06:10:56 +00:00
Jay Belanger
c59d10e073 (math-read-replacement-list, math-read-superscripts): Move from
calc-ext.el.
(math-read-preprocess-string): Move from calc-ext.el.
2004-12-08 06:09:20 +00:00
Jay Belanger
5ff9dafd88 Add math-read-preprocess-string to autoloads. 2004-12-08 06:07:27 +00:00
Jay Belanger
7b90763521 Set calc-summary-indentation even when Calc Summary buffer exists. 2004-12-07 04:24:28 +00:00
Jay Belanger
7e1637c2cb (calc-read-key-sequence): Leave message visible. 2004-12-02 21:21:32 +00:00
Jay Belanger
93d8d5a8b0 (calc-inverse, calc-hyperbolic): Add more checks. 2004-12-01 21:03:24 +00:00
Jay Belanger
d5639b35f7 (calc-inverse, calc-hyperbolic): Give more thorough messages. 2004-12-01 20:57:30 +00:00
Jay Belanger
773a144d44 (math-possible-signs): Added checks to intervals.
(math-pow-of-zero): Strengthen checks for positive and negative exponents.
2004-11-30 21:58:53 +00:00
Jay Belanger
25efff5f9d Add a provide statement.
(calc-Need-calc-sel-2): Remove it.
2004-11-30 17:32:17 +00:00
Jay Belanger
cfd31ee4dc Add a provide statement.
(calc-Need-calc-comp): Remove it.
2004-11-30 17:31:45 +00:00
Jay Belanger
c728e63356 Add a provide statement.
(calc-Need-calc-alg-3): Remove it.
2004-11-30 17:31:13 +00:00
Jay Belanger
59f2c6c09b Add a provide statement.
(calc-Need-calc-alg-2): Remove it.
2004-11-30 17:30:34 +00:00
Jay Belanger
451d4c5cff Remove calc-Need-calc-aent and calc-Need-calc-misc from autoloads.
Add calc-do-embedded-activate to autoloads.
(calc-gnuplot-name, calc-gnuplot-plot-command,
calc-gnuplot-print-command): Remove them.
2004-11-30 17:29:51 +00:00
Jay Belanger
b1687f6035 Add a provide statement.
(calc-Need-calc-yank): Remove it.
2004-11-30 17:29:04 +00:00
Jay Belanger
429dae43c5 Add a provide statement.
(calc-Need-calc-vec): Remove it.
2004-11-30 17:28:25 +00:00
Jay Belanger
7d02e8cd1f Add a provide statement.
(calc-Need-calc-units): Remove it.
2004-11-30 17:27:44 +00:00
Jay Belanger
2c2198cd5e Add a provide statement.
(calc-Need-calc-undo): Remove it.
2004-11-30 17:26:56 +00:00
Jay Belanger
07b7530a38 Add a provide statement.
(calc-Need-calc-trail): Remove it.
2004-11-30 17:26:19 +00:00
Jay Belanger
a2e360d6fa Add a provide statement.
(calc-Need-calc-stuff): Remove it.
2004-11-30 17:25:40 +00:00
Jay Belanger
4b02a25275 Add a provide statement.
(calc-Need-calc-store): Remove it.
2004-11-30 17:25:00 +00:00
Jay Belanger
01a2939cad Add a provide statement.
(calc-Need-calc-stat): Remove it.
2004-11-30 17:24:18 +00:00
Jay Belanger
da0ae499b8 Add a provide statement.
(calc-Need-calc-sel): Remove it.
2004-11-30 17:23:06 +00:00
Jay Belanger
51b5c91c51 Add a provide statement.
(calc-Need-calc-rules): Remove it.
2004-11-30 17:22:12 +00:00
Jay Belanger
a2470ec963 Add a provide statement.
(calc-Need-calc-rewr): Remove it.
2004-11-30 17:21:27 +00:00
Jay Belanger
8758faecce Add a provide statement.
(calc-Need-calc-prog): Remove it.
2004-11-30 17:20:50 +00:00
Jay Belanger
7a08a495aa Add a provide statement.
(calc-Need-calc-poly): Remove it.
2004-11-30 17:19:41 +00:00
Jay Belanger
2a0adea35e Add a provide statement.
(calc-Need-calc-mat): Remove it.
2004-11-30 17:19:02 +00:00
Jay Belanger
123526a819 Add a provide statement.
(calc-Need-calc-mode): Remove it.
2004-11-30 17:18:19 +00:00
Jay Belanger
877dc4f5ff Add a provide statement.
(calc-Need-calc-misc): Remove it.
2004-11-30 17:17:35 +00:00
Jay Belanger
95995a85a2 Add a provide statement.
(calc-Need-calc-math): Remove it.
2004-11-30 17:16:50 +00:00
Jay Belanger
0e5b14555c Add a provide statement.
(calc-Need-calc-map): Remove it.
2004-11-30 17:16:02 +00:00
Jay Belanger
4b37638f7d Add a provide statement.
(calc-Need-calc-lang): Remove it.
2004-11-30 17:14:06 +00:00
Jay Belanger
567bb26fae Add a provide statement.
(calc-Need-calc-keypd): Remove it.
2004-11-30 17:13:23 +00:00
Jay Belanger
c66b0f18d9 Add a provide statement.
(calc-Need-calc-incom): Remove it.
2004-11-30 17:12:21 +00:00
Jay Belanger
42c76e340f Add a provide statement.
(calc-Need-calc-help): Remove it.
2004-11-30 17:11:37 +00:00
Jay Belanger
808cd57386 Add a provide statement.
(calc-Need-calc-graph): Remove it.
(calc-gnuplot-name, calc-gnuplot-plot-command, calc-gnuplot-print):
Give them values.
2004-11-30 17:10:43 +00:00
Jay Belanger
300f28d368 Add a provide statement.
(calc-Need-calc-funcs): Remove it.
2004-11-30 17:10:06 +00:00
Jay Belanger
3ccef44f19 Add a provide statement.
(calc-Need-calc-frac): Remove it.
2004-11-30 17:09:05 +00:00
Jay Belanger
76216e5acd Add a provide statement.
(calc-Need-calc-forms): Remove it.
2004-11-30 17:08:20 +00:00
Jay Belanger
7bd611343e Add a provide statement.
(calc-Need-calc-fin): Remove it.
2004-11-30 17:07:25 +00:00
Jay Belanger
1b303b2cc0 Remove dummy autoloading functions from autoloads.
(calc-load-everything, math-defsimplify): Replace dummy autoloading
functions by require statements.
(math-defsimplify): Move to calc-alg.el, added to autoloads.
2004-11-30 17:06:07 +00:00
Jay Belanger
937640a621 Add a provide statement.
(calc-Need-calc-embed): Remove it.
(calc-do-embedded-activate): Remove from autoloads.
2004-11-30 17:04:40 +00:00
Jay Belanger
b96bd98c39 Add a provide statement.
(calc-Need-calc-cplx): Remove it.
2004-11-30 17:03:46 +00:00
Jay Belanger
43f34cccca Add a provide statement.
(calc-Need-calc-comb): Remove it.
2004-11-30 17:02:55 +00:00
Jay Belanger
fb9ec5ef18 Add a provide statement.
(calc-Need-calc-bin): Remove it.
2004-11-30 17:02:05 +00:00
Jay Belanger
5e30155bca Add a provide statement.
(calc-Need-calc-arith): Remove it.
2004-11-30 17:01:18 +00:00
Jay Belanger
41cf648ddc Add a provide statement.
(calc-Need-calc-alg, math-need-std-simps): Remove them.
(math-defsimplify): Move from calc-ext.el.
2004-11-30 17:00:26 +00:00
Jay Belanger
4723353515 Add a provide statement.
(calc-Need-calc-aent): Remove it.
2004-11-30 16:59:39 +00:00
Jay Belanger
6adaed7889 (math-pow-of-zero): Take into account different cases. 2004-11-29 22:41:10 +00:00
Jay Belanger
ce805efac0 Move require to end of file.
(calc-info-filename, calc-autoload-directory, calc-extensions-loaded):
Remove unnecessary variable.
(calc-do-dispatch, calc-mode, calc-check-defines, calc-create-buffer)
(calc, calc-keypad, full-calc-keypad, calc-do, calc-normalize)
(calc-binary-op, calc-unary-op, calcDigit-start, calcDigit-key)
(math-normalize, math-add, math-mul, math-div,
(math-format-stack-value, math-stack-value-offset, math-format-value)
(math-format-flat-expr, math-format-number, math-format-bignum)
(math-read-number, calc-grab-region, calc-grab-rectangle)
(calc-grab-sum-down, calc-grab-sum-across, calc-embedded, defmath)
(calc-check-defines): Replace calc-need-macros by appropriate require.
2004-11-29 06:00:07 +00:00
Jay Belanger
537a762d4b (calc-user-define-formula, calc-do-defmath): Replace calc-need-macros by
appropriate require.
2004-11-29 05:58:45 +00:00
Jay Belanger
c6d3240529 (calc-do-handle-whys, calc-last-args-stub, calc-missing-key)
(calc-shift-Y-prefix-help, math-concat, math-trunc, math-floor)
(calcFunc-inv, math-mod, math-pow): Replace calc-extensions by
appropriate require.
(calc-power): Replace calc-extensions-loaded by appropriate featurep.
2004-11-29 05:57:46 +00:00
Jay Belanger
f50dfd02cb Move provide to end of file.
(calc-need-macros): Remove unnecessary function.
2004-11-29 05:56:56 +00:00
Jay Belanger
5eb3eedabb Remove unnecessary eval-when-compile.
(calc-do-quick-calc, calc-do-calc-eval, calc-alg-entry)
(math-read-expr-level, calc-check-user-syntax, math-read-factor):
Replace calls to calc-extensions by appropriate require,
replace calc-extensions-loaded by appropriate featurep.
2004-11-29 05:56:06 +00:00
Jay Belanger
6697b53cd3 Move require to end of file.
Remove redundant loading of calc.
(calc-extensions-loaded): Remove unnecessary variable.
(calc-extensions): Remove unnecessary function.
(calc-load-everything): Replace calc-need-macros by appropriate require.
2004-11-29 05:54:53 +00:00
Jay Belanger
79d2746f47 (math-expr-parts, math-try-solve-sign, math-solve-b, math-int-factors)
(math-double-roots): Declare them (for real this time).
2004-11-27 04:13:08 +00:00
Jay Belanger
388df0be56 (math-exp-pos, math-exp-str, math-exp-old-pos, math-exp-token)
(math-exp-keep-spaces, math-expr-data): Declare them.
2004-11-27 04:11:13 +00:00
Jay Belanger
0aba68f8ca (math-expr-data, math-expr-token, math-exp-old-pos): Declare them. 2004-11-27 04:10:15 +00:00
Jay Belanger
90b4409729 (calc-command-flags, calc-gnuplot-buffer, calc-gnuplot-input)
(math-normalize-a, math-integral-cache): Declare them.
2004-11-27 04:09:24 +00:00
Jay Belanger
d37f2979c6 (calc-eval-error): Declare and initialize the variable.
(calc-eval-error): Don't check if the variable calc-eval-error is
bound.
(calc-buffer, calc-digit-value, math-expr-data): Declare them.
(math-alg-inequalities): Move declaration to earlier in the file.
2004-11-27 04:07:22 +00:00
Jay Belanger
b9bc92b4d7 (calc-embedded-update): Finish changing prev-mode to calc-embed-prev-mode. 2004-11-26 23:31:27 +00:00
Jay Belanger
d4c9536003 Removed no longer necessary file. 2004-11-26 22:44:21 +00:00
Jay Belanger
3b058174cd (calc-keep-selection): Declare it. 2004-11-26 22:39:32 +00:00
Jay Belanger
1bf345d19a (math-format-radix-float): Make pos a local variable.
(math-format-radix-float): Remove unnecessary setq.
(math-radix-float-cache): Declare it.
2004-11-26 22:39:01 +00:00
Jay Belanger
adb0a6165d (calc-original-buffer): Declare it.
(calc-embed-outer-top, calc-embed-outer-bot, calc-embed-top)
(calc-embed-bot): New variables.
(calc-do-embedded, calc-embedded-mark-formula)
(calc-embedded-find-bounds, calc-embedded-duplicate)
(calc-embedded-new-formula, calc-embedded-make-info):
Replace variables outer-top, outer-bot, bot and top by declared
variables.
(calc-embed-prev-modes): New variable.
(calc-embedded-set-modes, calc-embedded-update): Replace variable
prev-modes with declared variable.
(calc-embed-vars-used): New variable.
(calc-embedded-make-info, calc-embedded-evaluate-expr)
(calc-embedded-update, calc-embedded-find-vars): Replace variable
vars-used by declared variable.
2004-11-26 22:38:31 +00:00
Jay Belanger
c478ee0ee2 (Info-history): Declare it.
(calc-describe-key): Make calc-summary-indentation a local variable.
(calc-help-long-names): Move declaration to earlier in file.
2004-11-26 22:37:54 +00:00
Jay Belanger
53cbeb3de0 (calc-prev-char, calc-prev-prev-char, calc-digit-value): Declare them. 2004-11-26 22:37:26 +00:00
Jay Belanger
8b31b5197e (math-ms-temp, math-ms-args): New variables.
(math-multi-subst, math-multi-subst-rec): Replace variables temp and
arg by declared variables.

(calcFunc-reducer): Fixed incorrect variable.

(math-inner-mul-func, math-inner-add-func): New variables.
(calcFunc-inner, math-inner-mats): Replace variables mul-func
and add-func by declared variables.
2004-11-26 22:36:49 +00:00
Jay Belanger
4952f0be95 (calc-det-lu): New variable.
(math-det-raw, math-det-step): Replace variable lu by declared
variable.
2004-11-26 22:36:10 +00:00
Jay Belanger
3a7a4adb2d (calc-given-value, calc-store-opers): Declare them.
(calc-var-name-map): Move declaration to earlier in the file.

(calc-pv-pos): New variable.
(calc-permanent-variable, calc-insert-permanent-variable):
Replace variable pos by declared variable.
2004-11-26 22:35:35 +00:00
Jay Belanger
32bac5ed0d (calc-flush-caches): Remove unnecessary variables.
(math-lud-cache, math-log2-cache, math-radix-digits-cache)
(math-radix-float-cache-tag, math-random-cache, math-max-digits-cache)
(math-integral-cache, math-units-table, math-format-date-cache)
(math-holidays-cache-tag): Declare them.

(math-moc-func): New variable.
(math-map-over-constants, math-map-over-constants-rec):
Replace variable func by declared variable.
2004-11-26 22:34:59 +00:00
Jay Belanger
3f53a1f4df (calc-original-buffer, calc-return-buffer, calc-one-window)
(calc-edit-handler, calc-restore-trail, calc-allow-ret): Declare them.
2004-11-26 22:34:23 +00:00
Jay Belanger
866ebaa905 (math-grade-vec): New variable.
(calcFunc-grade, calcFunc-rgrade, math-grade-beforep): Replace
variable grade-vec by declared variable.
(math-rb-close): New variable.
(math-read-brackets, math-read-vector): Replace variable close by
declared variable.
2004-11-26 22:33:49 +00:00
Jay Belanger
f58af89963 (calc-last-why-command): Declare it. 2004-11-26 22:33:19 +00:00
Jay Belanger
92d7f48929 Change maintainer name. 2004-11-26 22:32:51 +00:00
Jay Belanger
3effaa28f5 Finish making previous changes. 2004-11-25 06:29:11 +00:00
Jay Belanger
95d91710e9 Finish making previous change. 2004-11-25 06:28:25 +00:00
Jay Belanger
2797124100 (calc-convert-units): Make units a local variable.
(calc-num-units, calc-den-units): New variables.
(calc-explain-units, calc-explain-units-rec): Replace variables
num-units and den-units by declared variables.
(math-cu-unit-list): New variable.
(math-build-units-table, math-compare-unit-names)
(math-convert-units, math-convert-units-rec): Replace variable
unit-list by declared variable.
(math-fbu-base, math-fbu-entry): New variables.
(math-find-base-units, math-find-base-units-rec): Replace variables
base and entry by declared variables.
(math-which-standard): New variable.
(math-to-standard-units, math-to-standard-rec): Replace variable
which-standard by declared variable.
(math-fcu-u): New variable.
(math-find-compatible-unit, math-find-compatible-unit-rec):
Replace variable u by declared variable.
(math-cu-new-units, math-cu-pure): New variables.
(math-convert-units, math-convert-units-rec): Replace variables
new-units and pure by declared variables.
(math-try-cancel-units): New variable.
(math-simplify-units-quotient): Replace variable try-cancel-units by
declared variable.
2004-11-25 05:53:35 +00:00
Jay Belanger
4fd1fc35b1 (math-poly-base-top-expr): New variable.
(math-polynomial-p1): Replace variable mpb-top-expr by declared
variable.
(math-poly-base-total-base): New variable.
(math-total-polynomial-base, math-polynomial-p1): Replace variable
mpb-total-base by declared variable.
(math-factored-vars, math-to-list): Declare it.
(math-fact-expr): New variable.
(calcFunc-factors, calcFunc-factor, math-factor-expr,
math-factor-expr-try, math-factor-expr-part): Replace variable expr by
declared variable.
(math-fet-x): New variable.
(math-factor-expr-try, math-factor-poly-coefs): Replace variable x by
declared variable.
(math-factor-poly-coefs): Make temp a local variable.
2004-11-25 05:52:38 +00:00
Jay Belanger
885e6671fc Added comment.
(math-polynomial-base): Replace variable mpb-top-expr by
math-poly-base-top-expr.
2004-11-25 05:51:40 +00:00
Jay Belanger
276d28655e (math-trunc): Replace variable prec by math-trunc-prec.
(math-floor): Replace variable prec by math-floor-prec.
2004-11-24 21:45:32 +00:00
Jay Belanger
67549a854a (math-scalar-functions, math-nonscalar-functions)
(math-scalar-if-args-functions, math-real-functions)
(math-positive-functions, math-nonnegative-functions)
(math-real-scalar-functions, math-real-if-arg-functions)
(math-integer-functions, math-num-integer-functions)
(math-rounding-functions, math-float-rounding-functions)
(math-integer-if-args-functions, math-super-types):
Move declarations to earlier in file.

(math-unit-prefixes): Declared it.

(math-floor-prec, math-trunc-prec): New variables.
(math-trunc-fancy): Replace variable prec by declared variable.
(math-floor-fancy): Replace variable prec by declared variable.

(math-com-bterms): New variable.
(math-commutative-equal, math-commutative-collect): Replace variable
bterms by declared variable.
2004-11-24 21:45:04 +00:00
Jay Belanger
ac39a77ca1 (calc-gnuplot-default-device, calc-gnuplot-default-output)
(calc-gnuplot-print-device, calc-gnuplot-print-output)
(calc-gnuplot-geometry, calc-graph-default-resolution)
(calc-graph-default-resolution-3d): Remove redundant initial values.
2004-11-24 21:44:23 +00:00
Jay Belanger
7893af2d79 (calc-embedded-active): Removed unnecessary declaration.
(calc-show-banner): Removed redundant declaration.
2004-11-24 21:43:36 +00:00
Jay Belanger
86498823f8 (math-nrf-n, math-nrf-nf, math-nrf-nfm1): New variables.
(math-nth-root-float, math-nth-root-float-iter): Replace variables
n, nf and nfm1 by declared variables.

(math-nri-n): New variable.
(math-nth-root-int, math-nth-root-int-iter): Replace variable n by
declared variable.

(calcFunc-log): Removed misplaced condition.
2004-11-24 18:01:37 +00:00
Jay Belanger
9822335996 (math-fd-date, math-fd-dt, math-fd-year, math-fd-month)
(math-fd-day, math-fd-weekday, math-fd-hour, math-fd-minute)
(math-fd-second, math-fd-bc-flag): New variables.
(math-format-date, math-format-date-part): Replace variables
date, dt, year, month, day, weekday, hour, minute, second and
bc-flag by declared variables.

(math-pd-str): New variable.
(math-parse-date, math-parse-date-word, math-parse-standard-date):
Replace variable str by declared variable.

(math-daylight-savings-hook, math-tzone-names): Move definitions
to earlier in the file.

(var-TimeZone): Declare it.

(math-exp-str, math-exp-pos): Declare them.

(math-sh-year): New variable.
(math-setup-add-holidays, math-setup-holidays)
(math-setup-year-holiday): Replace variable `year'
by declared variable.
2004-11-24 17:59:37 +00:00
Jay Belanger
f0a35df4ea (math-stack-value-offset): Replace variables c, wid and off with
math-svo-c, math-svo-wid and math-svo-off.
2004-11-24 06:01:45 +00:00
Jay Belanger
1c80b98b61 Add comment. 2004-11-24 06:00:30 +00:00
Jay Belanger
fdcf8e2b4a (math-svo-c, math-svo-wid, math-svo-off): New variables.
(math-stack-value-offset-fancy): Replace variables c, wid and off
by declared variables.

(math-comp-just, math-comp-comma-spc): New variables.
(math-compose-expr, math-compose-matrix): Replace variable just by
declared variable.

(math-comp-vector-prec): New variable.
(math-compose-expr, math-compose-matrix, math-compose-rows): Replace
variable vector-prec by declared variable.

(math-comp-left-bracket, math-comp-right-bracket, math-comp-comma): New variables.
(math-compose-expr, math-compose-rows): Replace variables left-bracket,
right-bracket and comma by declared variables.

(math-comp-full-width): New variable.
(math-comp-to-string-flat, math-comp-to-string-flat-term): Replace
variable full-width by declared variable.

(math-comp-sel-tag): Declared it.

(math-comp-highlight, math-comp-word, math-comp-level)
(math-comp-margin, math-comp-pos, math-comp-buf, math-comp-base)
(math-comp-hgt, math-comp-tag, math-comp-hpos, math-comp-vpos):
New variables.

(math-comp-to-string-flat, math-comp-to-string-flat-term)
(math-comp-sel-flat-term): Replace variables comp-highlight, comp-word,
comp-level, comp-margin, comp-pos and comp-buf by declared variables.

(math-comp-simplify, math-comp-simplify-term, math-comp-add-string)
(math-comp-add-string-sel): Replace variables comp-highlight,
comp-buf, comp-base, comp-height, comp-tag, comp-hpos and comp-vpos
by declared variables.
2004-11-24 05:59:23 +00:00
Jay Belanger
c4446fc2e9 (math-read-exprs): Filter input through math-read-preprocess-string. 2004-11-23 05:58:20 +00:00
Jay Belanger
66c2cf664e (math-read-replacement-list, math-read-superscripts): New variables.
(math-read-preprocess-string): New function.
(math-read-expr): Filter input through math-read-preprocess-string.
2004-11-23 05:56:40 +00:00
Jay Belanger
8cd2540e17 (math-read-big-lines): New variable.
(math-read-big-rec, math-read-big-char, math-read-big-emptyp)
(math-read-big-error, math-read-big-balance): Replace variable
lines by declared variable.

(math-read-big-baseline, math-read-big-h2): New variables.
(math-read-big-rec): Replace variables the-baseline and the-h2
by declared variables.

(math-read-big-rec): Fix typo.

(math-read-big-balance): Replace unbound variable by value.

(math-rb-h1, math-rb-h2, math-rb-v1, math-rb-v2): New variables.
(math-read-big-rec, math-read-big-char, math-read-big-emptyp)
(math-read-big-balance): Replace variables h1, h2, v1 and v2 by
declared variables.

(math-read-big-err-msg): New variable.
(math-read-big-error): Replace variable err-msg by declared variable.
2004-11-22 04:53:51 +00:00
Jay Belanger
c308c46341 (math-read-big-expr, math-read-big-bigp): Replace variable lines by
math-read-big-lines.
(math-read-big-expr): Replace variables the-baseline, the-h2
and err-msg by math-read-big-baseline, math-read-big-h2 and
math-read-err-msg.
(math-read-big-bigp): Replace variable h2 with math-rb-h2.
2004-11-22 04:52:48 +00:00
Jay Belanger
03cc1abafe (calc-curve-nvars, calc-curve-varnames, calc-curve-model)
(calc-curve-coefnames): New variable.
(calc-curve-fit, calc-get-fit-variables): Replace variables nvars,
varnames, model and coefnames by declared variables.

(math-root-widen): New variable.
(math-search-root, math-find-root): Replace variable root-widen by
declared variable.

(var-DUMMY): Declare it.
(math-root-vars, math-min-vars): Move the declarations to earlier in
the file.

(math-brent-min): Make d a local variable.

(math-find-minimum): Replace non-existent variable.

(math-ninteg-romberg): Remove unnecessary variable.

(math-ninteg-temp): New variable.
(math-ninteg-romberg, math-ninteg-midpoint): Replace variable
integ-temp by declared variable.

(math-fit-first-var, math-fit-first-coef, math-fit-new-coefs): New variables.
(math-general-fit): Replace variables first-var, first-coef and
new-coefs by declared variables.
(calcFunc-fitvar): Replace variable first-var by declared variable.
(calcFunc-fitparam): Replace variable first-coef by declared variable.
(calcFunc-fitdummy): Replace variable new-coefs by declared variable.

(math-all-vars-vars, math-all-vars-found): New variables.
(math-all-vars-in, math-all-vars-rec): Replace variables vars and
found by declared variable math-all-vars-vars.
2004-11-21 05:55:43 +00:00
Jay Belanger
a6cecab98a (math-integral-cache-state, calc-lang)
(calc-original-buffer): Declare them.

(calc-user-formula-alist): New variable.
(calc-user-define-formula, calc-fix-user-formula)
(calc-user-define-composition, calc-finish-formula-edit):
Replace variable alist by declared variable.

(var-q0, var-q1, var-q2, var-q3, var-q4, var-q5, var-q6)
(var-q7, var-q7, var-q8, var-q9): Declare them.
(calc-kbd-push): Don't check to see if var-q0 through var-q9
are bound.

(calcFunc-typeof): Replace undeclared variable by correct expression.

(math-exp-env): New variable.
(math-define-body, math-define-exp): Replace exp-env by declared
variable.

(math-define-exp): Replace misplaced variable by expression.
2004-11-21 05:52:41 +00:00
Jay Belanger
8416e352b1 (calc-selection-cache-entry): Moved declaration to earlier in the
file.

(calc-selection-cache-num, calc-selection-cache-comp)
(calc-selection-cache-offset, calc-selection-true-num)
(calc-final-point-line, calc-final-point-column)
(calc-original-buffer): Declare them.


(calc-fnp-op, calc-fnp-num): New variables.
(calc-find-nth-part, calc-find-nth-part-rec)
(calc-select-previous): Replace op and num by declared variables.

(calc-rsf-old, calc-rsf-new): New variables.
(calc-replace-sub-formula, calc-replace-sub-formula-rec):
Replace variables old and new by declared variables.

(calc-sel-reselect): New variable.
(calc-auto-selection, calc-enter-selection, calc-edit-selection)
(calc-sel-evaluate, calc-sel-expand-formula, calc-sel-expand-formula)
(calc-sel-mult-both-sides, calc-sel-add-both-sides):  Replace variable
reselect with declared variable.

(calc-edit-disp-trail): Declare it.
(calc-finish-selection-edit):  Replace variable disp-trail by declared
variable.
2004-11-19 22:21:18 +00:00
Jay Belanger
7fc684b392 (calc-edit-disp-trail): New variable.
(calc-edit-finish, calc-finish-stack-edit): Replace variable
disp-trail by declared variable.
2004-11-19 22:17:25 +00:00
Jay Belanger
40ead93715 (calc-rewrite-selection): Make rules a local variable.
(calc-rewr-sel): New variable.
(calc-rewrite-selection, calc-locate-selection-marker, calc-rewrite):
Use the declared variable calc-rewr-sel instead of sel.

(math-rewrite):  Use let* to declare variables.

(math-mt-many): Declare it.

(math-rewrite-whole-expr): New variable.
(math-rewrite, math-rewrite-phase): Replace variable expr by declared
variable.

(math-import-list): Declare it.

(math-rewrite-heads-heads, math-rewrite-heads-skips)
(math-rewrite-heads-blanks ): New variables.
(math-rewrite-heads, math-rewrite-heads-rec): Replace variables heads,
skips and blanks by declared variables.

(math-regs, math-num-regs, math-prog-last, math-bound-vars)
(math-conds, math-copy-neg, math-rhs, math-pattern, math-remembering)
(math-aliased-vars): Declare them.

(math-rwcomp-subst-old, math-rwcomp-subst-new)
(math-rwcomp-subst-old-func, math-rwcomp-subst-new-func):
New variables.
(math-rwcomp-substitute, math-rwcomp-subst-rec): Replace variables
old, new, old-func and new-func by declared variables.

(math-rwcomp-assoc-args, math-rwcomp-addsub-args):  Remove unnecessary
variable.

(math-rewrite-phase): Declare it.

(math-apply-rw-regs): New variable.
(math-apply-rewrites, math-rwapply-replace-regs,
math-rwapply-reg-looks-negp): Replace variable regs by declared variable.

(math-apply-rw-ruleset): New variable.
(math-apply-rewrites, math-rwapply-remember): Replace variable ruleset
by declared variable.
2004-11-19 21:03:48 +00:00
Jay Belanger
358c90f4f2 (math-simplify-divisor): Remove unnecessary variables. 2004-11-18 16:30:27 +00:00
Jay Belanger
f095c6c9db (math-simplify-expr): Declared it.
Replaced argument expr in all calls of math-defsimplify by
math-simplify-expr.
(math-simplify-units-prod):  Replaced variable expr by declared
variable math-simplify-expr.
2004-11-17 19:23:41 +00:00
Jay Belanger
e10300728d (calc-poly-div-remainder): Declared it. 2004-11-17 19:23:01 +00:00
Jay Belanger
e528df0df8 (math-defsimplify): Changed the argument in the created function to
math-simplify-expr.
2004-11-17 19:22:31 +00:00
Jay Belanger
0c90894530 (calc-poly-div): Made calc-poly-div-remainder a local variable.
(math-eval-rules-cache, math-eval-rules-cache-other):  Declared them.

(math-top-only):  New variable
(math-simplify, math-simplify-step):  Replace variable top-only by
declared variable math-top-only.

(math-simplify-expr):  Declared it.
Replaced argument expr in all calls of math-defsimplify by
math-simplify-expr.
(math-simplify-plus, math-simplify-times, math-simplify-divide)
(math-simplify-divisor, math-simplify-one-divisor)
(math-simplify-mod, math-simplify-ineq, math-simplify-sqrt)
(math-simplify-pow):  Replaced variable expr by declared variable
math-simplify-expr.

(math-simplify-divisor):  Removed local variables temp and op.
(math-simplify-one-divisor):  Made temp and op local variables.

(math-simplify-divisor-nover, math-simplify-divisor-dover):  New
variables.
(math-simplify-divisor, math-simplify-one-divisor):  Use declared
variables.

(math-expr-subst-new, math-expr-subst-old):  New variables.
(math-expr-subst, math-expr-subst-rec):  Use declared variables.

(math-is-poly-degree, math-is-poly-loose):  New variables.
(math-is-polynomial, math-is-poly-rec):  Use declared variables.

(math-poly-base-const-ok, math-poly-base-pred): New variables.
(math-polynomial-base, math-polynomial-base-rec):  Use declared
variables.
2004-11-17 19:21:57 +00:00
Jay Belanger
f7adda5411 (math-integrate-by-parts): Removed unused variable var-thing.
(math-integ-depth, math-integ-level, math-integral-limit)
(math-enable-subst, math-any-substs, math-integ-msg)
(math-prev-parts-v, math-good-parts, math-max-integral-limit)
(math-int-threshold, math-int-factors, math-double-roots)
(math-solve-simplifying, var-IntegLimit, math-solve-sign)
(var-GenCount):  Declared these variables.
(calcFunc-integ):  Don't check if var-IntegLimit is bound.

(math-integral-cache, math-integral-cache-state):  Move declarations
to earlier in the file.

(math-deriv-var, math-deriv-total, math-deriv-symb):  New variables.
(math-derivative, calcFunc-deriv, calcFunc-tderiv):  Replace
variables deriv-var, deriv-total and deriv-symb by declared variables
math-deriv-var, math-deriv-total and math-deriv-symb.

(math-cur-record):  New variable.
(math-integral, math-replace-integral-parts, math-integrate-by-parts)
(calc-dump-integral-cache, math-try-integral):  Replace variable
cur-record by declared variable math-cur-record.

(math-has-rules):  New variable.
(math-try-integral, math-do-integral):  Use declared variable
math-has-rules instead of has-rules.

(math-t1, math-t2, math-t3):  New variables.
(math-do-integral, math-do-integral-methods, math-try-solve-for)
(math-try-solve-prod, math-solve-poly-funny-powers)
(math-solve-crunch-poly, math-decompose-poly)
(math-solve-find-root-term, math-find-root-in-prod):  Replace
variables t1, t2, t3 by declared variables math-t1, math-t2,
math-t3.

(math-so-far, math-integ-expr):  New variables.
(math-do-integral-methods, math-integ-try-linear-substitutions)
(math-integ-try-substitutions):  Replace variables so-far and expr by
declared variables math-so-far and math-integ-expr.

(math-expr-parts):  New variable.
(math-expr-rational-in, math-expr-rational-in-rec):  Replace variable
parts by declared variable math-expr-parts.

(calc-low, calc-high):  New variables.
(calcFunc-table, math-scan-for-limits):  Replaced variable low and
high with the declared variable calc-low and calc-high.

(math-solve-var, math-solve-full):  New variables.
(math-try-solve-for, math-try-solve-prod, math-solve-prod)
(math-decompose-poly, math-solve-quartic, math-poly-all-roots)
(math-solve-find-root-in-prod, math-solve-for, math-solve-system)
(math-solve-system-rec, math-solve-get-sign, math-solve-get-int):
Replace variables solve-var and solve-full with declared variables
math-solve-var and math-solve-full.

(math-solve-vars):  New variable.
(math-solve-system, math-solve-system-rec):  Replace variable
solve-vars with declared variable math-solve-vars.

(math-try-solve-sign):  New variable.
(math-try-solve-for, math-try-solve-prod):  Replace variable
sign by declared variable math-try-solve-sign.

(math-solve-b):  New variable.
(math-solve-poly-funny-powers, math-decompose-poly):  Replace variable
b by declared variable math-solve-b.

(math-solve-system-vv, math-solve-res):  New variables
(math-solve-system-rec, math-solve-system-subst):  Replaced variables
vv and res with declared variables math-solve-system-vv and
math-solve-system-res.
2004-11-15 06:16:21 +00:00
Jay Belanger
68d1b30d25 (calc-dumb-map): Declared it.
(calc-graph-show-dumb):  Check if calc-dumb-map is non-nil rather than
unbound.

(calc-graph-name):  Made `end' a local variable.

(calc-graph-lookup):  Made `varname' a local variable.

(var-DUMMY, var-DUMMY2, var-PlotRejects, calc-gnuplot-trail-mark):
Declared them.
(calc-graph-format-data):  Don't check if var-PlotRejects is bound.

(calc-graph-plot, calc-graph-compute-3d):  Removed references to the
unused variable y3vec.

(calc-graph-show-dumb):  Removed reference to unused variable found-pt.

(calc-graph-kill-hook, calc-graph-plot):  Removed reference to
calc-graph-prev-kill-hook.

(calc-graph-yvalue, calc-graph-yvec, calc-graph-numsteps,
calc-graph-numsteps3, calc-graph-xvalue, calc-graph-xvec,
calc-graph-xname, calc-graph-yname, calc-graph-xstep,
calc-graph-ycache, calc-graph-ycacheptr, calc-graph-refine,
calc-graph-keep-file, calc-graph-xval, calc-graph-xlow,
calc-graph-xhigh, calc-graph-yval, calc-graph-yp, calc-graph-xp,
calc-graph-zp, calc-graph-yvector, calc-graph-resolution,
calc-graph-y3value, calc-graph-y3name,
calc-graph-y3step, calc-graph-y3step, calc-graph-zval,
calc-graph-stepcount, calc-graph-is-splot, calc-graph-surprise-splot,
calc-graph-blank, calc-graph-non-blank, calc-graph-curve-num):  New
variables.
(calc-graph-plot, calc-graph-compute-2d, calc-graph-refine-2d)
(calc-graph-recompute-2d, calc-graph-compute-3d, calc-graph-format-data):
Replaced undeclared variables with the above declared variables.
2004-11-12 22:35:21 +00:00
Jay Belanger
8d7498c1ff (math-prime-factors-finished): Declared it as a variable.
(calcFunc-dfac):  Replaced max by n.

(math-stirling-local-cache):  New variable.
(math-stirling-number, math-stirling-1, math-stirling-2):  Replaced
the variable `cache' by the declared variable math-stirling-local-cache.

(var-RandSeed):  Declared it.
(math-init-random-base, math-random-digit):  Don't check to see if
var-RandSeed is bound.

(math-random-cache, math-gaussian-cache, calc-verbose-nextprime):
Declared them instead of just setting them.

(math-init-random-base):  Made i a local variable.

(math-random-digit):  Made math-random-last a local variable.

(math-prime-test-cache):  Moved declaration to before it is used.

(math-prime-test-cache-k, math-prime-test-cache-q,
math-prime-test-cache-nm1, math-prime-factors-finished):  Declared
them as variables.
2004-11-11 20:59:02 +00:00
Jay Belanger
fe1f8500f8 (math-defcache): Use defvar for the new variables it creates. 2004-11-11 20:16:15 +00:00
Jay Belanger
411b140762 (math-read-brackets, math-check-for-commas): Use declared variable
math-exp-pos.

(math-check-for-commas):  Use declared variable math-exp-str.

(math-read-brackets):  Use declared variables math-exp-old-pos,
math-exp-keep-spaces.

(math-read-brackets, math-read-vector, math-read-matrix):  Use
declared variable math-exp-token.
2004-11-11 05:53:19 +00:00
Jay Belanger
679e2630d3 (math-parse-tex-sum): Use declared variable math-exp-old-pos.
(math-parse-fortran-vector, math-parse-fortran-vector-end)
(math-parse-eqn-prime):  Use declared variable math-exp-token.
2004-11-11 05:52:17 +00:00
Jay Belanger
97660b3e63 (math-read-angle-bracket): Use declared variables math-exp-pos,
math-exp-str.
2004-11-11 05:51:24 +00:00
Jay Belanger
e59b8655da (math-read-expr): Use declared variables math-exp-pos,
math-exp-old-pos, math-exp-str, math-exp-token,
math-exp-keep-spaces.
2004-11-11 05:50:09 +00:00
Jay Belanger
3cedbf7217 (calc-do-quick-calc): Use kill-new to append string to kill-ring.
(calc-alg-exp, math-toks, math-exp-pos,math-exp-old-pos)
(math-exp-token, math-exp-keep-spaces, math-exp-str):  New variables.

(calc-do-alg-entry, calcAlg-equals, calcAlg-edit, calcAlg-enter):  Use
declared variable calc-alg-exp.

(math-build-parse-table, math-find-user-token):  Use declared variable
math-toks.

(math-read-exprs, math-read-token, calc-check-user-syntax,
calc-match-user-syntax, match-factor-after, math-read-factor):  Use
declared variables math-exp-pos math-exp-old-pos.

(math-read-exprs, math-read-token, math-read-expr-level)
(calc-check-user-syntax, calc-match-user-syntax, match-factor-after)
(math-read-factor):  Use declared variable math-exp-token.

(math-read-exprs, math-read-expr-list, math-read-token,
math-read-factor):  Use declared variable math-exp-keep-spaces.

(math-read-exprs, math-read-token):  Use declared variable
math-exp-str.

(calc-match-user-syntax):  Made m a local variable.
2004-11-11 05:48:50 +00:00
Jay Belanger
abd880c33e (math-read-exprs, math-read-expr-list, math-read-expr-level,
math-read-token, calc-check-user-syntax, calc-match-user-syntax,
math-read-if, math-factor-after, math-read-factor):  Use
declared variable math-expr-data.
2004-11-09 20:32:37 +00:00
Jay Belanger
54961aa0ca (math-parse-fortran-vector, math-parse-fortran-vector-end,
math-parse-tex-sum, math-parse-eqn-matrix, math-parse-eqn-prime,
math-read-math-subscr):  Use declared variable math-expr-data.
2004-11-09 20:32:13 +00:00
Jay Belanger
5c8a5f96c7 (math-read-brackets, math-read-vector, math-read-matrix): Use
declared variable math-expr-data.
2004-11-09 20:31:40 +00:00
Jay Belanger
ce037856d4 (math-rewrite, math-rewrite-phase): Use declared variable math-mt-many.
(math-rewrite):  Use declared variable math-mt-func.
2004-11-09 20:31:12 +00:00
Jay Belanger
f7917133cb (math-expand-form): Use declared variable math-mt-many. 2004-11-09 20:30:40 +00:00
Jay Belanger
dc78141338 (math-normalize-a): New variable.
(math-normalize):  Use declared variable math-normalize-a.
2004-11-09 20:30:10 +00:00
Jay Belanger
722401eb12 (calc-init-extensions): Remove old code.
(math-expr-data, math-mt-many, math-mt-func, calc-z-prefix-buf)
(calc-z-prefix-msgs):  New variables.

(calc-z-prefix-help, calc-user-function-list):  Use declared variables
calc-z-prefix-buf, calc-z-prefix-msgs.

(math-normalize-nonstandard):  Use declared variable math-normalize-a.

(math-map-tree, math-map-tree-rec):  Use declared variables
math-mt-many, math-mt-func.

(math-read-expression, math-read-string):  Use declared variable math-expr-data.
2004-11-09 20:29:34 +00:00
Jay Belanger
5f16f8be79 (calc-init-extensions): Bound calc-yank to mouse-2. 2004-11-09 04:49:01 +00:00
Jay Belanger
f55320b5c4 (calc-mode-hook, calc-trail-mode-hook, calc-start-hook, calc-end-hook)
(calc-load-hook):  New variables.

(calc, calc-trail-display, calc-mode):  Removed obsolete sections.

(calc-x-paste-text):  Removed.
2004-11-09 04:43:03 +00:00
Jay Belanger
f1e0e03c67 (math-do-integral-methods): Try linear, then non-linear, substitutions. 2004-11-08 02:21:11 +00:00
Jay Belanger
4710da05cb (math-linear-subst-tried): New variable.
(math-do-integral):  Set `math-linear-subst-tried' to nil.

(math-do-integral-methods):  Use `math-linear-subst-tried' to
determine what type of substitution to try.

(math-integ-try-linear-substituion):  Set `math-linear-subst-tried' to
t.
2004-11-07 23:33:29 +00:00
Jay Belanger
97d8398874 (calc-over-notation): Replaced `completing-read' with
`interactive "s"'.
2004-11-01 20:08:56 +00:00
Jay Belanger
8cb77f98f0 (calc-match): Use an extra argument instead of `interactive-p'. 2004-10-26 19:09:40 +00:00
Jay Belanger
1f5a0f5d5d (calc-other-window): Use an extra argument instead of `interactive-p'. 2004-10-26 19:06:24 +00:00
Jay Belanger
577e1b7491 (calc,full-calc, calc-quit, calc-keypad, full-calc-keypad)
(calc-trail-display):  Use an extra argument instead of `interactive-p'.
2004-10-26 19:05:53 +00:00
Jay Belanger
b89c5b7158 (calc-digit-dots): Inhibit read-only before erasing minibuffer. 2004-10-25 13:57:20 +00:00
Jay Belanger
1480882c5f (calc-alg-ent-map, calc-alg-ent-esc-map): Declared these variables
with defvar.

(calc-do-alg-entry): Since `calc-alg-ent-map' is bound, only check to
see if it is non-nil.
2004-10-21 19:20:11 +00:00
Stefan Monnier
22101fbb14 (calc-describe-bindings): Fix last change. 2004-10-21 19:09:46 +00:00
Jay Belanger
6e237e7298 (calc-graph-init): Use `set-process-query-on-exit-flag' 2004-10-21 15:41:15 +00:00
Jay Belanger
aa9208fbc7 (calcAlg-previous): Changed the regexp to the end of buffer regexp. 2004-10-19 15:34:38 +00:00
Jay Belanger
da8937c1f8 (calc-fancy-prefix): Removed emacs version check. 2004-10-19 14:41:50 +00:00
Jay Belanger
33f3d9aebb (calc-graph-plot): Removed emacs version check. 2004-10-19 14:41:18 +00:00
Jay Belanger
ab079f7202 (calc-total-algebraic-mode): Removed error call that would be given
when the current emacs was used.
2004-10-19 14:39:57 +00:00
Jay Belanger
cecd4c2023 (calc-emacs-type-19, calc-emacs-type-epoch, calc-emacs-type-gnu19):
Removed.

(calc-digit-map, calc-read-key-sequence, calc-read-key): Removed
check for old emacs versions.
2004-10-19 14:36:47 +00:00
Jay Belanger
f1625eaa20 (calc-do-alg-entry): Remove Emacs version check. Use `copy-keymap' to
copy `esc-map'.
2004-10-19 14:22:47 +00:00
Jay Belanger
4ebcaf0ef8 (calc-init-extensions): Define calc-alg-map' and calc-alg-esc-map'
for current Emacs.
2004-10-19 14:21:31 +00:00
Jay Belanger
2061942c16 (calc-describe-bindings): Set `buffer-read-only' to nil while working
in the keybindings buffer; remove some extra information from the
keybindings buffer.
2004-10-18 19:13:16 +00:00
Jay Belanger
6fb690e298 (calc-help-function-list, calc-help-variable-list): New variables.
(calc-help-index-entries): New function.

(calc-describe-function):  Use calc-help-function-list instead of
obarray for completion.

(calc-describe-variable):  Use calc-help-variable-list instead of
obarray for completion.
2004-10-12 15:47:32 +00:00
Jay Belanger
749dadb57d (calc-describe-copying, calc-describe-distribution, calc-describe-thing,
calc-describe-no-warranty, calc-describe-key):  Go to appropriate info
node in one step.
2004-10-11 03:29:45 +00:00
Jay Belanger
65ce291b9c (calc-info-goto-node): New function.
(calc-tutorial, calc-info-summary): Go to appropriate Calc info node
in one step.
2004-10-11 03:27:24 +00:00
Jay Belanger
9d3c486a7e Added `calc-info-goto-node' to autoloads. 2004-10-11 03:25:09 +00:00
Jay Belanger
b881982543 (calc-graph-add-curve): Moved the call to `calc-graph-set-styles' so
the gnuplot buffer will appear in a separate window.
2004-09-21 18:52:00 +00:00
Jay Belanger
cde090ee08 (calc-mode-var-list): Removed unnecessary quotes. 2004-09-20 18:35:40 +00:00
John Paul Wallington
91af11b2a3 (calc-quick-units): Fix overzealous s/or/unless. 2004-09-18 09:29:35 +00:00
Jay Belanger
def71c184c (calc-mode-var-list): Fixed the value of `calc-matrix-brackets'. 2004-09-17 17:07:07 +00:00
Jay Belanger
32d5360ac8 (calc-bug-address): Changed email address to send bug reports to.
Also changed the maintainer address at the top.
2004-09-15 16:57:57 +00:00
Jay Belanger
a8aee43bd2 (calc-mode): Compare calc-settings-file' to user-init-file' rather
than "\\.emacs" to determine if it is the user-init-file.
2004-09-15 16:54:26 +00:00
Jay Belanger
f10b7b1b5a calc/calc-embed.el (calc-embedded-set-modes): Use
`calc-mode-var-list' correctly.
2004-09-15 16:49:04 +00:00
Jay Belanger
7b2cda3878 calc/calc.el (calc-mode-var-list): Define this variable.
(calc-always-load-extensions, calc-line-numbering,
calc-line-breaking, calc-display-just, calc-display-origin,
calc-number-radix, calc-leading-zeros, calc-group-digits,
calc-group-char, calc-point-char, calc-frac-format,
calc-prefer-frac, calc-hms-format, calc-date-format,
calc-float-format, calc-full-float-format, calc-complex-format,
calc-complex-mode, calc-infinite-mode, calc-display-strings,
calc-matrix-just, calc-break-vectors, calc-full-vectors,
calc-full-trail-vectors, calc-vector-commas, calc-vector-brackets,
calc-matrix-brackets, calc-language, calc-language-option,
calc-left-label, calc-right-label, calc-word-size,
calc-previous-modulo, calc-simplify-mode, calc-auto-recompute,
calc-display-raw, calc-internal-prec, calc-angle-mode,
calc-algebraic-mode, calc-incomplete-algebraic-mode,
calc-symbolic-mode, calc-matrix-mode, calc-shift-prefix,
calc-window-height, calc-display-trail, calc-show-selections,
calc-use-selections, calc-assoc-selections,
calc-display-working-message, calc-auto-why , calc-timing,
calc-mode-save-mode, calc-standard-date-formats,
calc-autorange-units, calc-was-keypad-mode, calc-full-mode,
calc-user-parse-tables, calc-gnuplot-default-device,
calc-gnuplot-default-output, calc-gnuplot-print-device,
calc-gnuplot-print-output, calc-gnuplot-geometry,
calc-graph-default-resolution, calc-graph-default-resolution-3d,
calc-invocation-macro, calc-show-banner): Give these values as
  part of `calc-mode-var-list's initialization after the variables
  are declared with defvar.
2004-09-15 16:48:19 +00:00
Stefan Monnier
e1fbd956b0 Add comment. 2004-03-26 15:30:42 +00:00
Stefan Monnier
6a3ed0641c (calc-mode-map): Use mapc. 2004-03-26 15:29:13 +00:00
Eli Zaretskii
bc47b3f8c5 (calc-do-embedded-activate): Add autoload
cookie.  Don't check if we are looking-at open-formula.
2004-02-16 17:16:22 +00:00
Andreas Schwab
79cd7893f4 (calc-do-prefix-help): Remove extra format
string argument.
2004-02-08 22:40:16 +00:00
Andreas Schwab
1e9a52a584 (calc-convert-time-zones): Fix format string. 2004-02-08 22:39:49 +00:00
Andreas Schwab
ab5a176572 (calc-get-operator): Remove extra format
string argument.
2004-02-08 22:39:28 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Deepak Goel
877d0199ee Alias UTC to GMT. 2003-03-16 20:26:43 +00:00
Juanma Barranquero
4a72380522 (calc-macro-edit-variable): Fix character constant. 2003-02-18 11:00:10 +00:00
Juanma Barranquero
9b80830ca2 (calc-graph-plot): Fix character constant. 2003-02-18 10:58:50 +00:00
Juanma Barranquero
a1506d2977 Trailing whitepace deleted. 2003-02-04 13:24:35 +00:00
Deepak Goel
6e1c888ad0 Add new maintainer (deego). 2003-01-15 15:16:25 +00:00
Deepak Goel
442a3e38fc *** empty log message *** 2003-01-15 14:58:11 +00:00
Deepak Goel
e1d290e211 Add new maintainer (deego). 2003-01-15 14:56:17 +00:00
David Kastrup
11bfbbd26e (calc-any-evaltos): Initialize to nil, since
calc-refresh-evaltos appears to need this.
2002-10-29 00:30:21 +00:00
David Kastrup
2c6dfebbbb (calcFunc-ln): In symbolic manipulations,
ln(-1) should be i*pi, not pi.
2002-10-09 16:00:16 +00:00
Colin Walters
20e97ae684 (calc-kbd-report, calc-kbd-query): Don't bind `executing-kbd-macro'
and `defining-kbd-macro'.
2002-09-30 04:25:38 +00:00
Colin Walters
b27614ceff (calc-save-modes): Remove quiet' arg; Don't bind executing-kbd-macro'. 2002-09-30 04:25:15 +00:00
Colin Walters
2528da6a32 (calc-reset): Don't bind `executing-kbd-macro'. Call
`calc-flush-caches' with inhibit-msg arg.
(calc-change-mode): Remove extra arg for `calc-save-modes'.
2002-09-30 04:24:40 +00:00
Colin Walters
9b08ce78d2 (calc-flush-caches): Add optional arg `inhibit-msg'. 2002-09-30 04:23:37 +00:00
Colin Walters
80f952a297 (calc-dispatch-map): Actually set to keymap. 2002-09-29 14:48:27 +00:00
Colin Walters
730576f3ec (calc-bug-address, calc-scan-for-dels, calc-stack)
(calc-stack-top, calc-always-load-extensions)
(calc-line-numbering, calc-line-breaking, calc-display-just)
(calc-display-origin, calc-number-radix, calc-leading-zeros)
(calc-group-digits, calc-group-char, calc-point-char)
(calc-frac-format, calc-prefer-frac, calc-hms-format)
(calc-date-format, calc-float-format, calc-complex-format)
(calc-full-float-format, calc-complex-mode, calc-infinite-mode)
(calc-display-strings, calc-matrix-just, calc-break-vectors)
(calc-full-vectors, calc-full-trail-vectors, calc-vector-commas)
(calc-vector-brackets, calc-matrix-brackets, calc-language)
(calc-language-option, calc-function-open, calc-function-open)
(calc-function-close, calc-language-output-filter)
(calc-language-input-filter, calc-radix-formatter)
(calc-left-label, calc-right-label, calc-word-size)
(calc-previous-modulo, calc-simplify-mode, calc-auto-recompute)
(calc-display-raw, calc-internal-prec, calc-inverse-flag)
(calc-hyperbolic-flag, calc-keep-args-flag, calc-angle-mode)
(calc-algebraic-mode, calc-incomplete-algebraic-mode)
(calc-symbolic-mode, calc-matrix-mode, calc-shift-prefix)
(calc-window-height, calc-display-trail, calc-show-selections)
(calc-use-selections, calc-assoc-selections)
(calc-display-working-message, calc-auto-why, calc-timing)
(calc-display-sci-high, calc-display-sci-low, calc-other-modes)
(calc-other-modes, calc-Y-help-msgs, calc-loaded-settings-file):
Make into real defvars.
(calc-mode-var-list): Delete.
(calc-mode-save-mode, calc-standard-date-formats)
(calc-autorange-units, calc-was-keypad-mode, calc-full-mode)
(calc-user-parse-tables, calc-gnuplot-default-device)
(calc-gnuplot-default-output, calc-gnuplot-print-device)
(calc-gnuplot-print-output, calc-gnuplot-geometry)
(calc-graph-default-resolution, calc-graph-default-resolution-3d)
(calc-invocation-macro, calc-show-banner): Make into defvars,
taken from `calc-mode-var-list'.
(calc-emacs-type-epoch, calc-emacs-type-19)
(calc-emacs-type-lucid, calc-emacs-type-gnu19): Make into defvars.
(calc-version, calc-version-date, calc-trail-pointer)
(calc-trail-overlay, calc-undo-list, calc-redo-list)
(calc-main-buffer, calc-trail-buffer, calc-why, calc-next-why)
(calc-inverse-flag, calc-hyperbolic-flag, calc-keep-args-flag)
(calc-last-kill, calc-previous-alg-entry, calc-dollar-values)
(calc-dollar-used, calc-hashes-used, calc-quick-prev-results)
(calc-said-hello, calc-executing-macro, calc-any-selections)
(calc-help-phase, calc-full-help-flag, calc-refresh-count)
(calc-display-dirty, calc-prepared-composition)
(calc-selection-cache-default-entry, calc-embedded-info)
(calc-embedded-active, calc-standalone-flag, var-EvalRules)
(math-eval-rules-cache-tag, math-radix-explicit-format)
(math-expr-function-mapping, math-expr-variable-mapping)
(math-read-expr-quotes, math-working-step, math-working-step-2)
(var-i, var-pi, var-e, var-phi, var-gamma, var-Modes): Make into
defvars, from toplevel setq.
(calc-mode-map): Set up keymap in more modern fashion.
(calc-dispatch-map): Ditto.
(calc-command-flags, calc-final-point-line)
(calc-final-point-column): Defvar.
(calc-do): Use `save-current-buffer' instead of `save-excursion'.
(sel-mode): Defvar.
(calc-any-evaltos): Ditto.
(calc-buffer, calc-prev-char, calc-prev-prev-char)
(calc-digit-value): Ditto.
(math-eval-rules-cache, math-eval-rules-cache-other): Ditto.
(math-sub-bignum): Bind `diff'.
(calc-selection-cache-entry): Defvar.
(calc-count-lines): Reference `pos' instead of `newpos'.
2002-09-27 04:55:22 +00:00
Colin Walters
558f9ba1c1 (calc-mode): Add font-lock-defontify to change-major-mode-hook. 2002-09-18 16:47:48 +00:00
David Kastrup
2363bd8daa (math-format-stack-value): Revert a broken
if->when replacement and reformat so that this does not happen
again.  Fixes a pretty lethal line formatting/yanking bug.
2002-08-05 09:34:12 +00:00
Juanma Barranquero
6f8269719e Fix typo. 2002-07-09 09:57:34 +00:00
Colin Walters
cd01230948 Use when', unless'.
(calc-trail-mode): Use an italic `font-lock-face'.
(calc-refresh): Ditto.
2002-06-12 05:11:22 +00:00
Miles Bader
a579b36f34 (calc-d-prefix-help): Add `@'. 2002-05-30 01:07:52 +00:00
Miles Bader
4813c36271 (calc-init-extensions): Add binding for `d@'.
(calc-toggle-banner): New function.
2002-05-30 01:05:21 +00:00
Miles Bader
1501f4f67e (calc-show-banner): New variable.
(calc-refresh): Only show banner if `calc-show-banner' is non-nil.
(calc-mode-var-list): Add `calc-show-banner'.
2002-05-30 01:04:15 +00:00
Colin Walters
be59410cd4 (math-standard-units): Update from CODATA. 2002-05-14 18:49:33 +00:00
Colin Walters
4cb72a5478 Revert previous change. 2002-04-14 05:51:31 +00:00
Colin Walters
91da64426a (math-format-number): Load `calc-ext' before we call
`math-group-float'.
2002-04-14 05:50:05 +00:00
Colin Walters
23cbf556ab (math-format-radix-float): Load calc-ext' before we call math-group-float'. 2002-04-14 01:51:15 +00:00
Colin Walters
afa717ec93 (calc-init-base): Ditto. 2002-03-29 23:00:21 +00:00
Colin Walters
59f4b0804d (calc-delete-windows-keep): Function deleted. 2002-03-29 22:55:53 +00:00
Colin Walters
1cc6997c38 (calc-was-split): Var deleted.
(calc): Remove reference to it.
(calc): Ditto.
(calc-quit): Ditto.
2002-03-29 22:55:39 +00:00
Colin Walters
2c37c14bd0 (calc-gnuplot-tempfile): Don't expand against
`temporary-file-directory'; we now do that in `calc-graph-file-cache'.
(calc-temp-file-name): Use `make-temp-file'.
2002-03-01 01:18:37 +00:00
Colin Walters
960e24e7bd (calc-scroll-left): Call scroll-left interactively, so they do something.
(calc-scroll-right): Ditto.
2002-02-26 19:54:21 +00:00
Colin Walters
a9c76ab2e6 (math-solve-get-sign): Convert integer to string. 2002-02-24 01:14:55 +00:00
Colin Walters
67dbc846a9 (calc-invent-variables): Convert integer to string. 2002-02-23 21:33:19 +00:00
Colin Walters
88258edfb6 (math-solve-get-int): Convert return value from
`math-get-from-counter' to a string before calling `concat' on it.
2002-02-18 20:06:20 +00:00
Colin Walters
418685d8e3 (calc-split-manual): Look for calc.texi.
(calc-public-autoloads): Obsolete; remove.
(calc-private-autoloads): Ditto.
(calc-add-autoloads): Ditto.
2002-02-18 20:06:07 +00:00
Colin Walters
061b2cc1e5 (calc-with-default-simplification): Use &rest for body. 2002-02-18 20:05:49 +00:00
Andreas Schwab
cd01f5b91c (calcDigit-key): Use minibuffer-prompt-end instead of point-min. 2002-02-08 12:32:18 +00:00
Pavel Janík
f0529b5b1a Doc fix. 2001-12-20 19:01:00 +00:00
Pavel Janík
0ff9b955fe Doc fixes. 2001-12-20 18:59:32 +00:00
Colin Walters
906bd0efe9 (Commentary): Cleanup, and add logistic curve fitting suggestion from
Robert J. Chassell <bob@rattlesnake.com>.
2001-11-24 22:34:26 +00:00
Colin Walters
4fdb78a13a (calc-init-extensions): Update the rest of the autoload names to match
files renamed on initial calc import.
2001-11-24 20:51:34 +00:00
Colin Walters
c567a7dbfe Add header comment. 2001-11-24 01:44:15 +00:00
Pavel Janík
0508150294 Delete empty lines at the end of file. 2001-11-23 06:06:41 +00:00
Pavel Janík
471f8b9293 Delete empty line at the end of file. 2001-11-23 06:06:01 +00:00
Pavel Janík
a2cdc7f9d9 "This file is part of GNU Emacs." added. 2001-11-23 06:05:11 +00:00
Colin Walters
7743d0332f Remove. 2001-11-22 20:35:42 +00:00
Colin Walters
afb55b714b (report-calc-bug): Use `reporter-prompt-for-summary-p'. 2001-11-22 20:34:30 +00:00
Colin Walters
8f148852e1 (report-calc-bug): Use reporter.el. 2001-11-22 07:59:01 +00:00
Colin Walters
b23d58ff83 (calc-info): Don't perform voodoo, just (info "Calc"). 2001-11-22 06:03:24 +00:00
Colin Walters
e790567163 (calc-slow-wrapper): Move (point) call outside of (function ...)
wrapper.
2001-11-21 06:24:04 +00:00
Colin Walters
7054901c2b (toplevel): Add comment and version header.
(calc-init-base): Bump version to 2.02f, update date.
2001-11-19 20:00:21 +00:00
Colin Walters
3132f345bc Change all toplevel setq' forms to defvar' forms, and move them
before their first use.  Use `when', `unless'.  Remove trailing
periods from error forms.  Add description and headers suggested by
Emacs Lisp coding conventions.
2001-11-19 07:44:56 +00:00
Colin Walters
f269b73e3e (calc-record-compilation-date): Remove.
(calc-bug-address): Update.
(calc-settings-file): Use `user-init-file'.

Change all toplevel `setq' forms to `defvar' forms, and move them
before their first use.  Use `when', `unless'.  Remove trailing
periods from error forms.  Add description and headers suggested by
Emacs Lisp coding conventions.
2001-11-19 07:43:05 +00:00
Colin Walters
8cd8ee52f7 (calcFunc-usimplify): Add missing quote to defalias argument.
Change all toplevel `setq' forms to `defvar' forms, and move them
before their first use.  Use `when', `unless'.  Remove trailing
periods from error forms.  Add description and headers suggested by
Emacs Lisp coding conventions.
2001-11-19 07:42:20 +00:00
Colin Walters
cb19607288 (calc-settings-file-name, calc-save-modes): Handle null
`calc-settings-file'.

Change all toplevel `setq' forms to `defvar' forms, and move them
before their first use.  Use `when', `unless'.  Remove trailing
periods from error forms.  Add description and headers suggested by
Emacs Lisp coding conventions.
2001-11-19 07:37:04 +00:00
Colin Walters
dac12d8087 (math-fixnump, math-fixnatnump, calcFunc-trunc)
(calcFunc-floor): Ditto.

Change all toplevel `setq' forms to `defvar' forms, and move them
before their first use.  Use `when', `unless'.  Remove trailing
periods from error forms.  Add description and headers suggested by
Emacs Lisp coding conventions.
2001-11-19 07:36:42 +00:00
Colin Walters
3e3b3c7e38 (calc-wrapper, calc-slow-wrapper)
(math-showing-full-precision, math-with-extra-prec, math-working)
(calc-with-default-simplification)
(calc-with-trail-buffer): Use backtick.
(Math-zerop, Math-integer-negp, Math-integer-posp, Math-negp)
(Math-looks-negp, Math-posp, Math-integerp, Math-natnump)
(Math-ratp, Math-realp, Math-anglep, Math-numberp, Math-scalarp)
(Math-vectorp, Math-messy-integerp, Math-objectp, Math-objvecp)
(Math-integer-neg, Math-equal, Math-lessp, Math-primp)
(Math-num-integerp, Math-bignum-test, Math-equal-int)
(Math-natnum-lessp, math-format-radix-digit): Change to `defsubst'.
(calc-record-compilation-date-macro): Deleted.  Callers updated.
(math-format-radix-digit): Move to calc-bin.el.

Change all toplevel `setq' forms to `defvar' forms, and move them
before their first use.  Use `when', `unless'.  Remove trailing
periods from error forms.  Add description and headers suggested by
Emacs Lisp coding conventions.
2001-11-19 07:35:49 +00:00
Colin Walters
1e253dcb11 (calc-keypad-mode): New.
(calc-do-keypad): Use it.
(calc-keypad-map): Move into `calc-keypad-mode'.

Change all toplevel `setq' forms to `defvar' forms, and move them
before their first use.  Use `when', `unless'.  Remove trailing
periods from error forms.  Add description and headers suggested by
Emacs Lisp coding conventions.
2001-11-19 07:34:59 +00:00
Colin Walters
12f1951a27 (calc-over-notation): Use `completing-read'.
Change all toplevel `setq' forms to `defvar' forms, and move them
before their first use.  Use `when', `unless'.  Remove trailing
periods from error forms.  Add description and headers suggested by
Emacs Lisp coding conventions.
2001-11-19 07:34:00 +00:00
Colin Walters
bac0fac8ac Update maintainer. 2001-11-14 09:12:48 +00:00
Colin Walters
bf77c646a5 Style cleanup; don't put closing parens on their
own line, add "foo.el ends here" to each file, and update
copyright date.
2001-11-14 09:09:09 +00:00
Colin Walters
c9aef71977 (calcFunc-unsimplify): Use defalias' instead of fset' and
`symbol-function'.

Style cleanup; don't put closing parens on their
own line, add "foo.el ends here" to each file, and update
copyright date.
2001-11-14 09:08:03 +00:00
Colin Walters
60e4c5a74f (math-fixnump, math-fixnatnump, calcFunc-trunc, calcFunc-floor,
calc-report-bug): Use `defalias' instead of `fset' and
`symbol-function'.

Style cleanup; don't put closing parens on their
own line, add "foo.el ends here" to each file, and update
copyright date.
2001-11-14 09:06:05 +00:00
Colin Walters
491c306232 (calcFunc-sqrt, calcFunc-hypot): Use defalias' instead of fset' and
`symbol-function'.

Style cleanup; don't put closing parens on their
own line, add "foo.el ends here" to each file, and update
copyright date.
2001-11-14 09:05:36 +00:00
Colin Walters
cce7e5a603 (calcFunc-evalv): Use defalias' instead of fset' and
`symbol-function'.

Style cleanup; don't put closing parens on their
own line, add "foo.el ends here" to each file, and update
copyright date.
2001-11-14 09:03:32 +00:00
Colin Walters
7d70a3ba4e (calcFunc-clip): Use defalias' instead of fset' and
`symbol-function'.

Style cleanup; don't put closing parens on their
own line, add "foo.el ends here" to each file, and update
copyright date.
2001-11-14 09:01:51 +00:00
Colin Walters
898ea5c0b2 (calcFunc-abs, calcFunc-float, calcFunc-ceil, calcFunc-round): Use
`defalias' instead of `fset' and `symbol-function'.

Style cleanup; don't put closing parens on their
own line, add "foo.el ends here" to each file, and update
copyright date.
2001-11-14 09:01:07 +00:00
Colin Walters
d389648023 (calcFunc-esimplify, calcFunc-simplify, calcFunc-subst): Use
`defalias' instead of `fset' and `symbol-function'.

Style cleanup; don't put closing parens on their own line, add "foo.el
ends here" to each file, and update copyright date.
2001-11-14 09:00:01 +00:00
Colin Walters
07ff2bc860 Style cleanup; don't put closing parens on their own line, add "foo.el
ends here" to each file, and update copyright date.
2001-11-14 08:59:18 +00:00
Eli Zaretskii
31b85a14f9 Use frame-width' instead of screen-width',
`frame-height' instead of `screen-height', and,
`executing-kbd-macro' instead of `executing-macro'.
(calc-unread-command): Use `unread-command-events'.
2001-11-13 07:34:05 +00:00
Eli Zaretskii
8f66f4797a Use frame-width' instead of screen-width',
`frame-height' instead of `screen-height', and,
`executing-kbd-macro' instead of `executing-macro'.
2001-11-13 07:30:58 +00:00
Eli Zaretskii
26f6427dc8 (calc-settings-file-name): Don't hardcode
"~/.emacs"; use `read-file-name'.
2001-11-13 07:29:33 +00:00
Eli Zaretskii
af32d76e49 (calc-do-embedded): Call `y-or-n-p' with
correct number of arguments.
2001-11-13 07:28:01 +00:00
Eli Zaretskii
4db5660258 (calc-do-alg-entry): Use
`blink-paren-function' instead of `blink-paren-hook'.
2001-11-13 07:27:27 +00:00
Eli Zaretskii
273bd54120 (calc-init-extensions): Update autoload names
to match files renamed on initial calc import.
2001-11-12 11:43:16 +00:00
Eli Zaretskii
1d937026aa (toplevel): Bind mouse buttons.
(calc-do-keypad): Don't attempt to use nonexistent global
mouse-map, use calc-keypad-map.
(calc-keypad-x-left-click): Renamed to calc-keypad-left-click.
(calc-keypad-left-click): Don't use mouse-map; update to new event
interface.
(calc-keypad-x-middle-click, calc-keypad-x-right-click): Ditto.
(calc-keypad-press): Use `unread-command-events' instead of
`unread-command-char'.
2001-11-12 11:39:45 +00:00
Eli Zaretskii
91e51f9a78 (toplevel): Require calc-macs.
(calc-minibuffer-size): New.
(calcDigit-nondigit): Use it instead of `buffer-size'.
(calcDigit-backspace): Likewise.
(calcDigit-nondigit): Use `minibuffer-contents' instead of `buffer-string'.
(calc-minibuffer-contains): Use `minibuffer-prompt-end' instead of `point-min'.
(calcDigit-key): Use `calc-minibuffer-contains' instead of a `save-excursion'.
2001-11-11 10:33:50 +00:00
Eli Zaretskii
cb765059d7 (calc-record-compilation-date-macro): Return a
simple `setq' form.
2001-11-11 10:27:32 +00:00
Eli Zaretskii
f20be8fee3 (toplevel): Require calc-macs during compilation.
(calc-do-quick-calc): Use `frame-width' instead of `screen-width'.
(calcAlg-edit): Use `minibuffer-contents' instead of `buffer-string'.
(calcAlg-enter): Likewise.
(calcAlg-enter): Use `minibuffer-prompt-end' instead of `point-min'.
2001-11-11 10:26:44 +00:00
Eli Zaretskii
8391faa18f (toplevel): Require calc.
(calc-fancy-prefix-map): New.
(calc-fancy-prefix): Use it.
(calc-fancy-prefix-other-key): New.
2001-11-11 10:25:50 +00:00
Eli Zaretskii
c6d132d4a2 Removed. The functionality is now part of the standard Emacs. 2001-11-09 14:07:25 +00:00
Eli Zaretskii
136211a997 Initial import of Calc 2.02f. 2001-11-06 18:59:06 +00:00