aboutsummaryrefslogtreecommitdiffstats
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
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'.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/progmodes/python.el8
2 files changed, 9 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 875ab5d3188..fd442e149bf 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12012-08-14 Fabián Ezequiel Gallina <fgallina@cuca>
2
3 * progmodes/python.el (python-shell-send-string):
4 (python-shell-send-setup-code): Do not use `format' with
5 `message'.
6
12012-08-14 Dmitry Gutov <dgutov@yandex.ru> 72012-08-14 Dmitry Gutov <dgutov@yandex.ru>
2 8
3 * progmodes/ruby-mode.el: Improve percent literals (bug#6286). 9 * progmodes/ruby-mode.el: Improve percent literals (bug#6286).
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