+2008-03-26 Jay Belanger <jay.p.belanger@gmail.com>
+
+ * calc/calc-store.el (calc-read-var-name-history):
+ New variable.
+ (calc-read-var-name): Use `calc-read-var-name-history'.
+
2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
* image-mode.el (image-mode-reapply-winprops): Simplify now that
(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)
(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)