Mercurial > emacs
diff lisp/net/rcirc.el @ 105372:bd2966850aac
Use `called-interactively-p' instead of `interactive-p'.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Fri, 02 Oct 2009 03:48:36 +0000 |
parents | 521d6c4a95a9 |
children | 01e892771abe |
line wrap: on
line diff
--- a/lisp/net/rcirc.el Fri Oct 02 00:02:02 2009 +0000 +++ b/lisp/net/rcirc.el Fri Oct 02 03:48:36 2009 +0000 @@ -2014,7 +2014,7 @@ "Display list of names in CHANNEL or in current channel if CHANNEL is nil. If called interactively, prompt for a channel when prefix arg is supplied." (interactive "P") - (if (interactive-p) + (if (called-interactively-p 'interactive) (if channel (setq channel (read-string "List names in channel: " target)))) (let ((channel (if (> (length channel) 0) @@ -2026,7 +2026,7 @@ "List TOPIC for the TARGET channel. With a prefix arg, prompt for new topic." (interactive "P") - (if (and (interactive-p) topic) + (if (and (called-interactively-p 'interactive) topic) (setq topic (read-string "New Topic: " rcirc-topic))) (rcirc-send-string process (concat "TOPIC " target (when (> (length topic) 0)