Function: calc-auto-why

calc-auto-why is an autoloaded, interactive and byte-compiled function defined in calc-mode.el.gz.

Signature

(calc-auto-why N)

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/calc/calc-mode.el.gz
(defun calc-auto-why (n)
  (interactive "P")
  (calc-wrapper
   (if n
       (progn
	 (setq n (prefix-numeric-value n))
	 (if (<= n 0) (setq n nil)
	   (if (> n 1) (setq n t))))
     (setq n (and (not (eq calc-auto-why t)) (if calc-auto-why t 1))))
   (calc-change-mode 'calc-auto-why n nil)
   (cond ((null n)
	  (message (substitute-command-keys
                    "User must press \\`w' to explain unsimplified results")))
	 ((eq n t)
          (message (substitute-command-keys
                    "Automatically doing \\`w' to explain unsimplified results")))
	 (t
          (message (substitute-command-keys
                    "Automatically doing \\`w' only for unusual messages"))))))