emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#15137: closed (python mode patch)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#15137: closed (python mode patch)
Date: Mon, 02 Sep 2013 14:17:02 +0000

Your message dated Mon, 02 Sep 2013 11:16:29 -0300
with message-id <address@hidden>
and subject line python mode patch
has caused the debbugs.gnu.org bug report #15137,
regarding python mode patch
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
15137: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15137
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: python mode patch Date: Mon, 19 Aug 2013 16:25:36 -0500
Hello,

I'm submitting a patch that has been tremendously helpful to me.
Please consider this for addition into the next release of the world's
most excellent editor.

2013-08-19  Dan Elliott  <address@hidden>

        * progmodes/python.el (python-shell-send-region): added fix
suggested by Barry Warsaw for python-mode.el to fix unexpected
indentation error w\
hen sending region to interpreter



=== modified file 'lisp/progmodes/python.el'
*** lisp/progmodes/python.el    2013-08-16 05:15:51 +0000
--- lisp/progmodes/python.el    2013-08-19 21:14:34 +0000
*************** Returns the output.  See `python-shell-s
*** 2128,2134 ****
        ;; When sending a region, add blank lines for non sent code so
        ;; backtraces remain correct.
        (make-string (1- line-num) ?\n))
!     (buffer-substring start end))
     nil t))

  (defun python-shell-send-buffer (&optional arg)
--- 2128,2137 ----
        ;; When sending a region, add blank lines for non sent code so
        ;; backtraces remain correct.
        (make-string (1- line-num) ?\n))
!     ;; wrap with a conditional to avoid errors about python
unexpected indentation
!     "if True:\n"
!     (buffer-substring start end)
!     "\n")
     nil t))

  (defun python-shell-send-buffer (&optional arg)

Thank you for all of your hard work.

- dan



--- End Message ---
--- Begin Message --- Subject: python mode patch Date: Mon, 02 Sep 2013 11:16:29 -0300 User-agent: mu4e 0.9.9.5; emacs 24.3.1
Solved this in revno 114108.


Regards,
Fabián.


--- End Message ---

reply via email to

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