mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-15 17:00:26 +00:00
(yow): Use an arg to distinguish interactive calls, not interactive-p.
This commit is contained in:
parent
f1842270a5
commit
b85b15f3fe
@ -49,13 +49,13 @@
|
||||
(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)))))
|
||||
|
Loading…
Reference in New Issue
Block a user