py-shell-manage-windows works poorly under horizontal window splitting
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Fix Released
|
High
|
Andreas Roehler |
Bug Description
in py-shell-manage windows, the following bit of code executes if there's an exception:
((and (boundp 'err-p) err-p)
(message "hello")
;; (goto-char (point-max))
(and (window-
This works as expected if windows are split vertically - if the window is already split, the window size is not full-height, and the split window function is not called. However, if the windows are split horizontally, this will continually call the py-split-
a proposed fix would be to check the current value of py-split-
Changed in python-mode: | |
importance: | Undecided → High |
assignee: | nobody → Andreas Roehler (a-roehler) |
milestone: | none → 6.1.4 |
Changed in python-mode: | |
status: | New → In Progress |
Changed in python-mode: | |
status: | In Progress → Fix Committed |
Changed in python-mode: | |
status: | Fix Committed → Fix Released |
Am 29.01.2014 02:01, schrieb J D: window- configuration) to-exception err-p py-exception- buffer) full-height- p) windows- on-execute- function) ) windows- on-
> Public bug reported:
>
> in py-shell-manage windows, the following bit of code executes if
> there's an exception:
>
> ((and (boundp 'err-p) err-p)
> (message "hello")
> (py-restore-
> (py-jump-
> ;; (goto-char (point-max))
> (and (window-
> (funcall py-split-
>
> This works as expected if windows are split vertically - if the window
> is already split, the window size is not full-height, and the split
> window function is not called. However, if the windows are split
> horizontally, this will continually call the py-split-
> execute-function command every time the file is run, instead of re-using
> the same window for exceptions.
(one-window-p t) at this plase should do the trick.
Will check a fix.
Furthermore, it doesn't respect the py- on-execute- p setting.
> split-windows-
This is an error-display, so this setting will be ignored anyway here.
> function, and use either window width or window height as
> a proposed fix would be to check the current value of py-split-windows-
> on-execute-
> appropriate.
>
> ** Affects: python-mode
> Importance: Undecided
> Status: New
>