summaryrefslogtreecommitdiff
path: root/lisp/calc/calc-ext.el
diff options
context:
space:
mode:
authorJay Belanger <jay.p.belanger@gmail.com>2004-11-29 05:54:53 +0000
committerJay Belanger <jay.p.belanger@gmail.com>2004-11-29 05:54:53 +0000
commit6697b53cd34f8ba4b5586dc544aaa03fd301bbe3 (patch)
tree7e2cdf9d3ddd23bb7637dab64abeb08633794936 /lisp/calc/calc-ext.el
parent5edd7c333a9f6ecfd34753f5d8e8203cf6463367 (diff)
downloademacs-6697b53cd34f8ba4b5586dc544aaa03fd301bbe3.tar.gz
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.
Diffstat (limited to 'lisp/calc/calc-ext.el')
-rw-r--r--lisp/calc/calc-ext.el22
1 files changed, 2 insertions, 20 deletions
diff --git a/lisp/calc/calc-ext.el b/lisp/calc/calc-ext.el
index 13cda7daf81..86d99ddac15 100644
--- a/lisp/calc/calc-ext.el
+++ b/lisp/calc/calc-ext.el
@@ -26,26 +26,7 @@
;;; Code:
-(provide 'calc-ext)
(require 'calc)
-
-(setq calc-extensions-loaded t)
-
-;;; This function is the autoload "hook" to cause this file to be loaded.
-;;;###autoload
-(defun calc-extensions ()
- "This function is part of the autoload linkage for parts of Calc."
- t)
-
-;;; Auto-load calc.el part, in case this part was loaded first.
-(if (fboundp 'calc-dispatch)
- (and (eq (car-safe (symbol-function 'calc-dispatch)) 'autoload)
- (load (nth 1 (symbol-function 'calc-dispatch))))
- (if (fboundp 'calc)
- (and (eq (car-safe (symbol-function 'calc)) 'autoload)
- (load (nth 1 (symbol-function 'calc))))
- (error "Main part of Calc must be present in order to load this file")))
-
(require 'calc-macs)
(defvar math-simplifying nil)
@@ -1674,7 +1655,7 @@ calc-kill calc-kill-region calc-yank))))
(defun calc-load-everything ()
(interactive)
- (calc-need-macros) ; calc-macs.el
+ (require 'calc-macs) ; calc-macs.el
(calc-record-list nil) ; calc-misc.el
(math-read-exprs "0") ; calc-aent.el
@@ -3371,5 +3352,6 @@ A key may contain additional specs for Inverse, Hyperbolic, and Inv+Hyp.")
(run-hooks 'calc-ext-load-hook)
+(provide 'calc-ext)
;;; arch-tag: 1814ba7f-a390-49dc-9e25-a5adc205e97e
;;; calc-ext.el ends here