GNU bug report logs - #15137
python mode patch

Previous Next

Package: emacs;

Reported by: Daniel Elliott <danelliottster <at> gmail.com>

Date: Mon, 19 Aug 2013 21:53:02 UTC

Severity: minor

Tags: patch

Merged with 15400

Done: fgallina <at> gnu.org

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Daniel Elliott <danelliottster <at> gmail.com>
Subject: bug#15137: closed (python mode patch)
Date: Mon, 02 Sep 2013 14:17:03 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#15137: python mode patch

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 15137 <at> debbugs.gnu.org.

-- 
15137: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15137
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: fgallina <at> gnu.org
To: 15137-done <at> debbugs.gnu.org
Subject: python mode patch
Date: Mon, 02 Sep 2013 11:16:29 -0300
Solved this in revno 114108.


Regards,
Fabián.

[Message part 3 (message/rfc822, inline)]
From: Daniel Elliott <danelliottster <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
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  <danelliottster <at> gmail.com>

        * 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



This bug report was last modified 11 years and 250 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.