From 925411b4cec8a3de935431c24bef817d5f3a5f4a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabi=C3=A1n=20Ezequiel=20Gallina?= Date: Tue, 14 Aug 2012 10:39:27 -0300 Subject: [PATCH] * progmodes/python.el (python-shell-send-string): (python-shell-send-setup-code): Do not use `format' with `message'. --- lisp/ChangeLog | 6 ++++++ lisp/progmodes/python.el | 8 +++----- 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 @@ +2012-08-14 Fabián Ezequiel Gallina + + * progmodes/python.el (python-shell-send-string): + (python-shell-send-setup-code): Do not use `format' with + `message'. + 2012-08-14 Dmitry Gutov * 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." (interactive "sPython command: ") (let ((process (or process (python-shell-get-or-create-process))) (lines (split-string string "\n" t))) - (when msg - (message (format "Sent: %s..." (nth 0 lines)))) + (and msg (message "Sent: %s..." (nth 0 lines))) (if (> (length lines) 1) (let* ((temp-file-name (make-temp-file "py")) (file-name (or (buffer-file-name) temp-file-name))) @@ -1953,11 +1952,10 @@ FILE-NAME." "Send all setup code for shell. This function takes the list of setup code to send from the `python-shell-setup-codes' list." - (let ((msg "Sent %s") - (process (get-buffer-process (current-buffer)))) + (let ((process (get-buffer-process (current-buffer)))) (dolist (code python-shell-setup-codes) (when code - (message (format msg code)) + (message "Sent %s" code) (python-shell-send-string (symbol-value code) process))))) -- 2.39.2