diff options
| author | Jay Belanger | 2008-03-05 04:25:10 +0000 |
|---|---|---|
| committer | Jay Belanger | 2008-03-05 04:25:10 +0000 |
| commit | c571ad7c4394cab5ae7d0f6e2c1bacb4d5826409 (patch) | |
| tree | 4a0184cf767e0749049f7f529c4d1fa896a7e1d6 | |
| parent | d0363d443c7cf37b1666fe48d3496814bd3e41ca (diff) | |
| download | emacs-c571ad7c4394cab5ae7d0f6e2c1bacb4d5826409.tar.gz emacs-c571ad7c4394cab5ae7d0f6e2c1bacb4d5826409.zip | |
(calc-extended-command-history): New variable.
(calc-exectute-extended-command): Use `calc-extended-command-history'.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/calc/calc-ext.el | 7 |
2 files changed, 13 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c376e601a44..59cb05477ad 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2008-03-05 Jay Belanger <jay.p.belanger@gmail.com> | ||
| 2 | |||
| 3 | * calc/calc-ext.el (calc-extended-command-history): | ||
| 4 | New variable. | ||
| 5 | (calc-exectute-extended-command): Use | ||
| 6 | `calc-extended-command-history'. | ||
| 7 | |||
| 1 | 2008-03-05 Dan Nicolaescu <dann@ics.uci.edu> | 8 | 2008-03-05 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 9 | ||
| 3 | * bindings.el (mode-line-remote): Add mouse-face. Improve tooltip. | 10 | * bindings.el (mode-line-remote): Add mouse-face. Improve tooltip. |
diff --git a/lisp/calc/calc-ext.el b/lisp/calc/calc-ext.el index 5e5ae8166db..b47279003c6 100644 --- a/lisp/calc/calc-ext.el +++ b/lisp/calc/calc-ext.el | |||
| @@ -1650,10 +1650,15 @@ calc-kill calc-kill-region calc-yank)))) | |||
| 1650 | (calc-handle-whys))) | 1650 | (calc-handle-whys))) |
| 1651 | 1651 | ||
| 1652 | 1652 | ||
| 1653 | (defvar calc-extended-command-history nil | ||
| 1654 | "The history list for calc-execute-extended-command.") | ||
| 1655 | |||
| 1653 | (defun calc-execute-extended-command (n) | 1656 | (defun calc-execute-extended-command (n) |
| 1654 | (interactive "P") | 1657 | (interactive "P") |
| 1655 | (let* ((prompt (concat (calc-num-prefix-name n) "M-x ")) | 1658 | (let* ((prompt (concat (calc-num-prefix-name n) "M-x ")) |
| 1656 | (cmd (intern (completing-read prompt obarray 'commandp t "calc-")))) | 1659 | (cmd (intern |
| 1660 | (completing-read prompt obarray 'commandp t "calc-" | ||
| 1661 | 'calc-extended-command-history)))) | ||
| 1657 | (setq prefix-arg n) | 1662 | (setq prefix-arg n) |
| 1658 | (command-execute cmd))) | 1663 | (command-execute cmd))) |
| 1659 | 1664 | ||