changeset 72039:51e3097b320a

(calc-get-operator-history): New variable. (calc-get-operator): Use calc-get-operator-history.
author Jay Belanger <jay.p.belanger@gmail.com>
date Thu, 20 Jul 2006 20:23:58 +0000
parents f9c303ee168d
children 327ca65acc1b
files lisp/calc/calc-map.el
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/calc/calc-map.el	Thu Jul 20 20:23:33 2006 +0000
+++ b/lisp/calc/calc-map.el	Thu Jul 20 20:23:58 2006 +0000
@@ -498,6 +498,9 @@
 
 
 ;;; Return a list of the form (nargs func name)
+(defvar calc-get-operator-history nil
+  "History for calc-get-operator.")
+
 (defun calc-get-operator (msg &optional nargs)
   (setq calc-aborted-prefix nil)
   (let ((inv nil) (hyp nil) (prefix nil) (forcenargs nil)
@@ -583,7 +586,8 @@
 			    (let* ((calc-dollar-values calc-arg-values)
 				   (calc-dollar-used 0)
 				   (calc-hashes-used 0)
-				   (func (calc-do-alg-entry "" "Function: ")))
+				   (func (calc-do-alg-entry "" "Function: " nil
+                                                      'calc-get-operator-history)))
 			      (setq record-entry t)
 			      (or (= (length func) 1)
 				  (error "Bad format"))