summaryrefslogtreecommitdiff
path: root/lisp/calc/calc-misc.el
diff options
context:
space:
mode:
authorColin Walters <walters@gnu.org>2001-11-22 06:03:24 +0000
committerColin Walters <walters@gnu.org>2001-11-22 06:03:24 +0000
commitb23d58ff83e31c08d1f0295caf999d04e74f8690 (patch)
tree36bd04825849dbc9975f61f9a50b0bfd127369f1 /lisp/calc/calc-misc.el
parentecafbba26bcac902cdd75895030e7b1c7e5e71b7 (diff)
downloademacs-b23d58ff83e31c08d1f0295caf999d04e74f8690.tar.gz
(calc-info): Don't perform voodoo, just (info "Calc").
Diffstat (limited to 'lisp/calc/calc-misc.el')
-rw-r--r--lisp/calc/calc-misc.el19
1 files changed, 1 insertions, 18 deletions
diff --git a/lisp/calc/calc-misc.el b/lisp/calc/calc-misc.el
index 226ba02de2a..08ca3fe3190 100644
--- a/lisp/calc/calc-misc.el
+++ b/lisp/calc/calc-misc.el
@@ -223,25 +223,8 @@ Calc user interface as before (either M-# C or M-# K; initially M-# C)."
(defun calc-info ()
"Run the Emacs Info system on the Calculator documentation."
(interactive)
- (require 'info)
(select-window (get-largest-window))
- (or (file-name-absolute-p calc-info-filename)
- (let ((p load-path)
- name)
- (if (boundp 'Info-directory)
- (setq p (cons Info-directory p)))
- (while (and p (not (file-exists-p
- (setq name (expand-file-name calc-info-filename
- (car p))))))
- (setq p (cdr p)))
- (if p (setq calc-info-filename name))))
- (condition-case err
- (info)
- (error nil))
- (or (and (boundp 'Info-current-file)
- (stringp Info-current-file)
- (string-match "calc" Info-current-file))
- (Info-find-node calc-info-filename "Top")))
+ (info "Calc"))
(defun calc-tutorial ()
"Run the Emacs Info system on the Calculator Tutorial."