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

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

bug#30822: 25.3; python-shell-send-defun sends only one line


From: Nitish
Subject: bug#30822: 25.3; python-shell-send-defun sends only one line
Date: Thu, 05 Apr 2018 23:22:19 -0400

As Noam Postavsky mentioned, there was an unconditional (forward-line 1) 
expression.

The issue manifests itself in a different way too. In the example that David 
Liu gave, add a decorator to the function on the first line. Then 
`python-shell-send-defun` enters an infinite loop.

The attached patch fixes both these issues. `(forward-line 1)` should be called 
only when `(forward-line -1)` moves Point and `(looking-at..` returns false.

Attachment: 0001-30822-Fixed-infinite-loop-and-also-removed-an-extra-.patch
Description: Text Data


reply via email to

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