summaryrefslogtreecommitdiff
path: root/lisp/calc/calc-help.el
diff options
context:
space:
mode:
authorKaroly Lorentey <lorentey@elte.hu>2004-12-08 22:20:27 +0000
committerKaroly Lorentey <lorentey@elte.hu>2004-12-08 22:20:27 +0000
commitfad2f6858075f49c4c8fd16f0535c287e3f14ac3 (patch)
tree843a2ffe6caea6201877e3d2f1b6b954f47344b5 /lisp/calc/calc-help.el
parent856dd47583918edd7987c13334703d3e7492d8f4 (diff)
parentb11e88237593ff7556d8535305e8f342e6b61d66 (diff)
downloademacs-fad2f6858075f49c4c8fd16f0535c287e3f14ac3.tar.gz
emacs-fad2f6858075f49c4c8fd16f0535c287e3f14ac3.tar.bz2
emacs-fad2f6858075f49c4c8fd16f0535c287e3f14ac3.zip
Merged in changes from CVS trunk.
Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-714 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-271
Diffstat (limited to 'lisp/calc/calc-help.el')
-rw-r--r--lisp/calc/calc-help.el38
1 files changed, 20 insertions, 18 deletions
diff --git a/lisp/calc/calc-help.el b/lisp/calc/calc-help.el
index 99df2292f25..087c42d295c 100644
--- a/lisp/calc/calc-help.el
+++ b/lisp/calc/calc-help.el
@@ -4,8 +4,7 @@
;; Free Software Foundation, Inc.
;; Author: David Gillespie <daveg@synaptics.com>
-;; Maintainers: D. Goel <deego@gnufans.org>
-;; Colin Walters <walters@debian.org>
+;; Maintainer: Jay Belanger <belanger@truman.edu>
;; This file is part of GNU Emacs.
@@ -29,13 +28,10 @@
;;; Code:
;; This file is autoloaded from calc-ext.el.
-(require 'calc-ext)
+(require 'calc-ext)
(require 'calc-macs)
-(defun calc-Need-calc-help () nil)
-
-
(defun calc-help-prefix (arg)
"This key is the prefix for Calc help functions. See calc-help-for-help."
(interactive "P")
@@ -139,6 +135,8 @@ C-w Describe how there is no warranty for Calc."
(interactive "kDescribe key briefly: ")
(calc-describe-key key t))
+(defvar Info-history)
+
(defun calc-describe-key (key &optional briefly)
(interactive "kDescribe key: ")
(let ((defn (if (eq (key-binding key) 'calc-dispatch)
@@ -157,7 +155,8 @@ C-w Describe how there is no warranty for Calc."
(lookup-key calc-help-map key2))
(key-binding key))))
(inv nil)
- (hyp nil))
+ (hyp nil)
+ calc-summary-indentation)
(while (or (equal key "I") (equal key "H"))
(if (equal key "I")
(setq inv (not inv))
@@ -187,11 +186,12 @@ C-w Describe how there is no warranty for Calc."
(copy-to-buffer "*Calc Summary*"
(point) (point-max))
(if Info-history
- (Info-last))))
- (setq case-fold-search nil)
- (re-search-forward "^\\(.*\\)\\[\\.\\. a b")
- (setq calc-summary-indentation
- (- (match-end 1) (match-beginning 1)))))
+ (Info-last))))))
+ (goto-char (point-min))
+ (setq case-fold-search nil)
+ (re-search-forward "^\\(.*\\)\\[\\.\\. a b")
+ (setq calc-summary-indentation
+ (- (match-end 1) (match-beginning 1)))
(goto-char (point-min))
(setq target (if (and (string-match "[0-9]\\'" desc)
(not (string-match "[d#]" desc)))
@@ -400,6 +400,12 @@ C-w Describe how there is no warranty for Calc."
(delete-region (point-min) (point))
(goto-char (point-min))))
+(defvar calc-help-long-names '((?b . "binary/business")
+ (?g . "graphics")
+ (?j . "selection")
+ (?k . "combinatorics/statistics")
+ (?u . "units/statistics")))
+
(defun calc-full-help ()
(interactive)
(with-output-to-temp-buffer "*Help*"
@@ -456,12 +462,6 @@ C-w Describe how there is no warranty for Calc."
calc-z-prefix-help)))
(print-help-return-message)))
-(defvar calc-help-long-names '((?b . "binary/business")
- (?g . "graphics")
- (?j . "selection")
- (?k . "combinatorics/statistics")
- (?u . "units/statistics")))
-
(defun calc-h-prefix-help ()
(interactive)
(calc-do-prefix-help
@@ -674,5 +674,7 @@ C-w Describe how there is no warranty for Calc."
"} (matrix brackets); . (abbreviate); / (multi-lines)")
"vec/mat" ?v))
+(provide 'calc-help)
+
;; arch-tag: 2d347593-7591-449e-a64a-93dab5f2f686
;;; calc-help.el ends here