aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Belanger2004-11-30 17:00:26 +0000
committerJay Belanger2004-11-30 17:00:26 +0000
commit41cf648ddca265063bb26eeb764216ec10cea76a (patch)
treea9ffa7c350c17256fa44e7c9126596b605624a62
parent47233535150413aa7f8e9ff3664de8be3b1bf557 (diff)
downloademacs-41cf648ddca265063bb26eeb764216ec10cea76a.tar.gz
emacs-41cf648ddca265063bb26eeb764216ec10cea76a.zip
Add a provide statement.
(calc-Need-calc-alg, math-need-std-simps): Remove them. (math-defsimplify): Move from calc-ext.el.
-rw-r--r--lisp/calc/calc-alg.el22
1 files changed, 16 insertions, 6 deletions
diff --git a/lisp/calc/calc-alg.el b/lisp/calc/calc-alg.el
index cbf1dfbe79b..4901883d094 100644
--- a/lisp/calc/calc-alg.el
+++ b/lisp/calc/calc-alg.el
@@ -27,12 +27,10 @@
27;;; Code: 27;;; Code:
28 28
29;; This file is autoloaded from calc-ext.el. 29;; This file is autoloaded from calc-ext.el.
30(require 'calc-ext)
31 30
31(require 'calc-ext)
32(require 'calc-macs) 32(require 'calc-macs)
33 33
34(defun calc-Need-calc-alg () nil)
35
36;;; Algebra commands. 34;;; Algebra commands.
37 35
38(defun calc-alg-evaluate (arg) 36(defun calc-alg-evaluate (arg)
@@ -333,9 +331,19 @@
333 aa))) 331 aa)))
334 332
335 333
336;; Placeholder, to synchronize autoloading. 334(defmacro math-defsimplify (funcs &rest code)
337(defun math-need-std-simps () 335 (append '(progn)
338 nil) 336 (mapcar (function
337 (lambda (func)
338 (list 'put (list 'quote func) ''math-simplify
339 (list 'nconc
340 (list 'get (list 'quote func) ''math-simplify)
341 (list 'list
342 (list 'function
343 (append '(lambda (math-simplify-expr))
344 code)))))))
345 (if (symbolp funcs) (list funcs) funcs))))
346(put 'math-defsimplify 'lisp-indent-hook 1)
339 347
340;; The function created by math-defsimplify uses the variable 348;; The function created by math-defsimplify uses the variable
341;; math-simplify-expr, and so is used by functions in math-defsimplify 349;; math-simplify-expr, and so is used by functions in math-defsimplify
@@ -1692,5 +1700,7 @@
1692 (math-scale-int 1 (- (nth 2 f))))))) 1700 (math-scale-int 1 (- (nth 2 f)))))))
1693 f)) 1701 f))
1694 1702
1703(provide 'calc-alg)
1704
1695;;; arch-tag: 52e7dcdf-9688-464d-a02b-4bbe789348d0 1705;;; arch-tag: 52e7dcdf-9688-464d-a02b-4bbe789348d0
1696;;; calc-alg.el ends here 1706;;; calc-alg.el ends here