summaryrefslogtreecommitdiff
path: root/lisp/completion.el
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2009-10-02 03:48:36 +0000
committerJuanma Barranquero <lekktu@gmail.com>2009-10-02 03:48:36 +0000
commit32226619c5e563c384372b566000e5d37d783a61 (patch)
tree216af4221d2ba868b45162679ce3a0462985c422 /lisp/completion.el
parent12a3c28c787e23801f40ea557a5c00b538968a52 (diff)
downloademacs-32226619c5e563c384372b566000e5d37d783a61.tar.gz
Use `called-interactively-p' instead of `interactive-p'.
Diffstat (limited to 'lisp/completion.el')
-rw-r--r--lisp/completion.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/completion.el b/lisp/completion.el
index b29a325f732..a8080ac8f5a 100644
--- a/lisp/completion.el
+++ b/lisp/completion.el
@@ -1311,7 +1311,7 @@ The completion is altered appropriately if NUM-USES and/or LAST-USE-TIME
are specified."
(interactive (interactive-completion-string-reader "Completion to add"))
(check-completion-length string)
- (let* ((current-completion-source (if (interactive-p)
+ (let* ((current-completion-source (if (called-interactively-p 'interactive)
cmpl-source-interactive
current-completion-source))
(entry (add-completion-to-head string)))
@@ -1324,7 +1324,7 @@ are specified."
"Add STRING if it isn't already listed, and mark it permanent."
(interactive
(interactive-completion-string-reader "Completion to add permanently"))
- (let ((current-completion-source (if (interactive-p)
+ (let ((current-completion-source (if (called-interactively-p 'interactive)
cmpl-source-interactive
current-completion-source)))
(add-completion string nil t)))