diff options
| author | Colin Walters | 2002-09-30 04:23:37 +0000 |
|---|---|---|
| committer | Colin Walters | 2002-09-30 04:23:37 +0000 |
| commit | 9b08ce78d24d2fac7092afe3ace0f4bbac5d1544 (patch) | |
| tree | 3e4f2e59c9053f14bd58e89cec11a6314734ff77 | |
| parent | b615eae0bd917db5ca4f22e1b240c7ece1c1b845 (diff) | |
| download | emacs-9b08ce78d24d2fac7092afe3ace0f4bbac5d1544.tar.gz emacs-9b08ce78d24d2fac7092afe3ace0f4bbac5d1544.zip | |
(calc-flush-caches): Add optional arg `inhibit-msg'.
| -rw-r--r-- | lisp/calc/calc-stuff.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/calc/calc-stuff.el b/lisp/calc/calc-stuff.el index fb3891f5c45..bea5c847c1d 100644 --- a/lisp/calc/calc-stuff.el +++ b/lisp/calc/calc-stuff.el | |||
| @@ -165,8 +165,8 @@ With a prefix, push that prefix as a number onto the stack." | |||
| 165 | (message "Calc %s" calc-version)) | 165 | (message "Calc %s" calc-version)) |
| 166 | 166 | ||
| 167 | 167 | ||
| 168 | (defun calc-flush-caches () | 168 | (defun calc-flush-caches (&optional inhibit-msg) |
| 169 | (interactive) | 169 | (interactive "P") |
| 170 | (calc-wrapper | 170 | (calc-wrapper |
| 171 | (setq math-lud-cache nil | 171 | (setq math-lud-cache nil |
| 172 | math-log2-cache nil | 172 | math-log2-cache nil |
| @@ -184,7 +184,8 @@ With a prefix, push that prefix as a number onto the stack." | |||
| 184 | math-format-date-cache nil | 184 | math-format-date-cache nil |
| 185 | math-holidays-cache-tag t) | 185 | math-holidays-cache-tag t) |
| 186 | (mapcar (function (lambda (x) (set x -100))) math-cache-list) | 186 | (mapcar (function (lambda (x) (set x -100))) math-cache-list) |
| 187 | (message "All internal calculator caches have been reset"))) | 187 | (unless inhibit-msg |
| 188 | (message "All internal calculator caches have been reset")))) | ||
| 188 | 189 | ||
| 189 | 190 | ||
| 190 | ;;; Conversions. | 191 | ;;; Conversions. |