aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina2012-08-14 10:39:27 -0300
committerFabián Ezequiel Gallina2012-08-14 10:39:27 -0300
commit925411b4cec8a3de935431c24bef817d5f3a5f4a (patch)
tree1e6589b423a639671a56164afaaa52530811539c /lisp/progmodes/python.el
parentf063063a8a8bfc1ba343e7e9eb5d17f866f6fccd (diff)
downloademacs-925411b4cec8a3de935431c24bef817d5f3a5f4a.tar.gz
emacs-925411b4cec8a3de935431c24bef817d5f3a5f4a.zip
* progmodes/python.el (python-shell-send-string):
(python-shell-send-setup-code): Do not use `format' with `message'.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el8
1 files changed, 3 insertions, 5 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index ad2286d4b2b..90908c80f1b 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1822,8 +1822,7 @@ When MSG is non-nil messages the first line of STRING."
1822 (interactive "sPython command: ") 1822 (interactive "sPython command: ")
1823 (let ((process (or process (python-shell-get-or-create-process))) 1823 (let ((process (or process (python-shell-get-or-create-process)))
1824 (lines (split-string string "\n" t))) 1824 (lines (split-string string "\n" t)))
1825 (when msg 1825 (and msg (message "Sent: %s..." (nth 0 lines)))
1826 (message (format "Sent: %s..." (nth 0 lines))))
1827 (if (> (length lines) 1) 1826 (if (> (length lines) 1)
1828 (let* ((temp-file-name (make-temp-file "py")) 1827 (let* ((temp-file-name (make-temp-file "py"))
1829 (file-name (or (buffer-file-name) temp-file-name))) 1828 (file-name (or (buffer-file-name) temp-file-name)))
@@ -1953,11 +1952,10 @@ FILE-NAME."
1953 "Send all setup code for shell. 1952 "Send all setup code for shell.
1954This function takes the list of setup code to send from the 1953This function takes the list of setup code to send from the
1955`python-shell-setup-codes' list." 1954`python-shell-setup-codes' list."
1956 (let ((msg "Sent %s") 1955 (let ((process (get-buffer-process (current-buffer))))
1957 (process (get-buffer-process (current-buffer))))
1958 (dolist (code python-shell-setup-codes) 1956 (dolist (code python-shell-setup-codes)
1959 (when code 1957 (when code
1960 (message (format msg code)) 1958 (message "Sent %s" code)
1961 (python-shell-send-string 1959 (python-shell-send-string
1962 (symbol-value code) process))))) 1960 (symbol-value code) process)))))
1963 1961