# HG changeset patch # User Colin Walters # Date 1033359817 0 # Node ID c7b1f2c10ed47141a602a902cc0372eb79f08005 # Parent 6dd3bdf36ac0d8125dd941d51ca95983efebd187 (calc-flush-caches): Add optional arg `inhibit-msg'. diff -r 6dd3bdf36ac0 -r c7b1f2c10ed4 lisp/calc/calc-stuff.el --- a/lisp/calc/calc-stuff.el Mon Sep 30 04:23:09 2002 +0000 +++ b/lisp/calc/calc-stuff.el Mon Sep 30 04:23:37 2002 +0000 @@ -165,8 +165,8 @@ (message "Calc %s" calc-version)) -(defun calc-flush-caches () - (interactive) +(defun calc-flush-caches (&optional inhibit-msg) + (interactive "P") (calc-wrapper (setq math-lud-cache nil math-log2-cache nil @@ -184,7 +184,8 @@ math-format-date-cache nil math-holidays-cache-tag t) (mapcar (function (lambda (x) (set x -100))) math-cache-list) - (message "All internal calculator caches have been reset"))) + (unless inhibit-msg + (message "All internal calculator caches have been reset")))) ;;; Conversions.