emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r109606: * progmodes/python.el (pytho


From: Fabián Ezequiel Gallina
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r109606: * progmodes/python.el (python-shell-send-string):
Date: Tue, 14 Aug 2012 10:39:27 -0300
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 109606
committer: Fabián Ezequiel Gallina <address@hidden>
branch nick: trunk
timestamp: Tue 2012-08-14 10:39:27 -0300
message:
  * progmodes/python.el (python-shell-send-string):
  (python-shell-send-setup-code): Do not use `format' with
  `message'.
modified:
  lisp/ChangeLog
  lisp/progmodes/python.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2012-08-14 12:38:11 +0000
+++ b/lisp/ChangeLog    2012-08-14 13:39:27 +0000
@@ -1,3 +1,9 @@
+2012-08-14  Fabián Ezequiel Gallina  <address@hidden>
+
+       * progmodes/python.el (python-shell-send-string):
+       (python-shell-send-setup-code): Do not use `format' with
+       `message'.
+
 2012-08-14  Dmitry Gutov  <address@hidden>
 
        * progmodes/ruby-mode.el: Improve percent literals (bug#6286).

=== modified file 'lisp/progmodes/python.el'
--- a/lisp/progmodes/python.el  2012-08-14 04:18:41 +0000
+++ b/lisp/progmodes/python.el  2012-08-14 13:39:27 +0000
@@ -1822,8 +1822,7 @@
   (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 @@
   "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)))))
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]