diff options
| author | Jay Belanger | 2004-11-29 05:54:53 +0000 |
|---|---|---|
| committer | Jay Belanger | 2004-11-29 05:54:53 +0000 |
| commit | 6697b53cd34f8ba4b5586dc544aaa03fd301bbe3 (patch) | |
| tree | 7e2cdf9d3ddd23bb7637dab64abeb08633794936 | |
| parent | 5edd7c333a9f6ecfd34753f5d8e8203cf6463367 (diff) | |
| download | emacs-6697b53cd34f8ba4b5586dc544aaa03fd301bbe3.tar.gz emacs-6697b53cd34f8ba4b5586dc544aaa03fd301bbe3.zip | |
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.
| -rw-r--r-- | lisp/calc/calc-ext.el | 22 |
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 @@ | |||
| 26 | 26 | ||
| 27 | ;;; Code: | 27 | ;;; Code: |
| 28 | 28 | ||
| 29 | (provide 'calc-ext) | ||
| 30 | (require 'calc) | 29 | (require 'calc) |
| 31 | |||
| 32 | (setq calc-extensions-loaded t) | ||
| 33 | |||
| 34 | ;;; This function is the autoload "hook" to cause this file to be loaded. | ||
| 35 | ;;;###autoload | ||
| 36 | (defun calc-extensions () | ||
| 37 | "This function is part of the autoload linkage for parts of Calc." | ||
| 38 | t) | ||
| 39 | |||
| 40 | ;;; Auto-load calc.el part, in case this part was loaded first. | ||
| 41 | (if (fboundp 'calc-dispatch) | ||
| 42 | (and (eq (car-safe (symbol-function 'calc-dispatch)) 'autoload) | ||
| 43 | (load (nth 1 (symbol-function 'calc-dispatch)))) | ||
| 44 | (if (fboundp 'calc) | ||
| 45 | (and (eq (car-safe (symbol-function 'calc)) 'autoload) | ||
| 46 | (load (nth 1 (symbol-function 'calc)))) | ||
| 47 | (error "Main part of Calc must be present in order to load this file"))) | ||
| 48 | |||
| 49 | (require 'calc-macs) | 30 | (require 'calc-macs) |
| 50 | 31 | ||
| 51 | (defvar math-simplifying nil) | 32 | (defvar math-simplifying nil) |
| @@ -1674,7 +1655,7 @@ calc-kill calc-kill-region calc-yank)))) | |||
| 1674 | 1655 | ||
| 1675 | (defun calc-load-everything () | 1656 | (defun calc-load-everything () |
| 1676 | (interactive) | 1657 | (interactive) |
| 1677 | (calc-need-macros) ; calc-macs.el | 1658 | (require 'calc-macs) ; calc-macs.el |
| 1678 | (calc-record-list nil) ; calc-misc.el | 1659 | (calc-record-list nil) ; calc-misc.el |
| 1679 | (math-read-exprs "0") ; calc-aent.el | 1660 | (math-read-exprs "0") ; calc-aent.el |
| 1680 | 1661 | ||
| @@ -3371,5 +3352,6 @@ A key may contain additional specs for Inverse, Hyperbolic, and Inv+Hyp.") | |||
| 3371 | 3352 | ||
| 3372 | (run-hooks 'calc-ext-load-hook) | 3353 | (run-hooks 'calc-ext-load-hook) |
| 3373 | 3354 | ||
| 3355 | (provide 'calc-ext) | ||
| 3374 | ;;; arch-tag: 1814ba7f-a390-49dc-9e25-a5adc205e97e | 3356 | ;;; arch-tag: 1814ba7f-a390-49dc-9e25-a5adc205e97e |
| 3375 | ;;; calc-ext.el ends here | 3357 | ;;; calc-ext.el ends here |