# HG changeset patch # User Jay Belanger # Date 1206563129 0 # Node ID ed8741f16e51415412d23705306a32497679c234 # Parent c843f7e323631ea89996279499c7eab14d463f51 (calc-read-var-name-history): New variable. (calc-read-var-name): Use `calc-read-var-name-history'. diff -r c843f7e32363 -r ed8741f16e51 lisp/calc/calc-store.el --- a/lisp/calc/calc-store.el Wed Mar 26 20:16:28 2008 +0000 +++ b/lisp/calc/calc-store.el Wed Mar 26 20:25:29 2008 +0000 @@ -185,6 +185,9 @@ (defvar calc-store-opers) +(defvar calc-read-var-name-history nil + "History for reading variable names.") + (defun calc-read-var-name (prompt &optional calc-store-opers) (setq calc-given-value nil calc-aborted-prefix nil) @@ -196,7 +199,9 @@ (minibuffer-completion-predicate (lambda (x) (boundp (intern (concat "var-" x))))) (minibuffer-completion-confirm t)) - (read-from-minibuffer prompt nil calc-var-name-map nil))))) + (read-from-minibuffer + prompt nil calc-var-name-map nil + 'calc-read-var-name-history))))) (setq calc-aborted-prefix "") (and (not (equal var "var-")) (if (string-match "\\`\\([-a-zA-Z0-9]+\\) *:?=" var)