]> git.eshelyaron.com Git - emacs.git/commitdiff
(yow): Use an arg to distinguish interactive calls, not interactive-p.
authorRichard M. Stallman <rms@gnu.org>
Sun, 23 Dec 2001 06:40:00 +0000 (06:40 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 23 Dec 2001 06:40:00 +0000 (06:40 +0000)
lisp/play/yow.el

index c23bd706abd1f140d10045badd5a959e26b1d55c..90708d4897defc3925fee701bc9854030317985d 100644 (file)
 (defconst yow-after-load-message "I have SEEN the CONSING!!")
 
 ;;;###autoload
-(defun yow (&optional insert)
+(defun yow (&optional insert display)
   "Return or display a random Zippy quotation.  With prefix arg, insert it."
-  (interactive "P")
+  (interactive "P\np")
   (let ((yow (cookie yow-file yow-load-message yow-after-load-message)))
     (cond (insert
           (insert yow))
-         ((not (interactive-p))
+         ((not display)
           yow)
          (t
           (message "%s" yow)))))