aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorJuanma Barranquero2009-10-02 03:48:36 +0000
committerJuanma Barranquero2009-10-02 03:48:36 +0000
commit32226619c5e563c384372b566000e5d37d783a61 (patch)
tree216af4221d2ba868b45162679ce3a0462985c422 /lisp/progmodes/python.el
parent12a3c28c787e23801f40ea557a5c00b538968a52 (diff)
downloademacs-32226619c5e563c384372b566000e5d37d783a61.tar.gz
emacs-32226619c5e563c384372b566000e5d37d783a61.zip
Use `called-interactively-p' instead of `interactive-p'.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el5
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."
1785 (with-output-to-temp-buffer (help-buffer) 1785 (with-output-to-temp-buffer (help-buffer)
1786 (with-current-buffer standard-output 1786 (with-current-buffer standard-output
1787 ;; Fixme: Is this actually useful? 1787 ;; Fixme: Is this actually useful?
1788 (help-setup-xref (list 'python-describe-symbol symbol) (interactive-p)) 1788 (help-setup-xref (list 'python-describe-symbol symbol)
1789 (called-interactively-p 'interactive))
1789 (set (make-local-variable 'comint-redirect-subvert-readonly) t) 1790 (set (make-local-variable 'comint-redirect-subvert-readonly) t)
1790 (help-print-return-message)))) 1791 (help-print-return-message))))
1791 (comint-redirect-send-command-to-process (format "emacs.ehelp(%S, %s)" 1792 (comint-redirect-send-command-to-process (format "emacs.ehelp(%S, %s)"
@@ -2797,7 +2798,7 @@ filter."
2797 (python-toggle-shells python-default-interpreter)) 2798 (python-toggle-shells python-default-interpreter))
2798 (let ((args python-which-args)) 2799 (let ((args python-which-args))
2799 (when (and argprompt 2800 (when (and argprompt
2800 (interactive-p) 2801 (called-interactively-p 'interactive)
2801 (fboundp 'split-string)) 2802 (fboundp 'split-string))
2802 ;; TBD: Perhaps force "-i" in the final list? 2803 ;; TBD: Perhaps force "-i" in the final list?
2803 (setq args (split-string 2804 (setq args (split-string