diff options
| author | Juanma Barranquero <lekktu@gmail.com> | 2009-10-02 03:48:36 +0000 |
|---|---|---|
| committer | Juanma Barranquero <lekktu@gmail.com> | 2009-10-02 03:48:36 +0000 |
| commit | 32226619c5e563c384372b566000e5d37d783a61 (patch) | |
| tree | 216af4221d2ba868b45162679ce3a0462985c422 /lisp/progmodes/python.el | |
| parent | 12a3c28c787e23801f40ea557a5c00b538968a52 (diff) | |
| download | emacs-32226619c5e563c384372b566000e5d37d783a61.tar.gz | |
Use `called-interactively-p' instead of `interactive-p'.
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 4582163e17b..eb33c760b64 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -1785,7 +1785,8 @@ will." (with-output-to-temp-buffer (help-buffer) (with-current-buffer standard-output ;; Fixme: Is this actually useful? - (help-setup-xref (list 'python-describe-symbol symbol) (interactive-p)) + (help-setup-xref (list 'python-describe-symbol symbol) + (called-interactively-p 'interactive)) (set (make-local-variable 'comint-redirect-subvert-readonly) t) (help-print-return-message)))) (comint-redirect-send-command-to-process (format "emacs.ehelp(%S, %s)" @@ -2797,7 +2798,7 @@ filter." (python-toggle-shells python-default-interpreter)) (let ((args python-which-args)) (when (and argprompt - (interactive-p) + (called-interactively-p 'interactive) (fboundp 'split-string)) ;; TBD: Perhaps force "-i" in the final list? (setq args (split-string |
