tags:

views:

227

answers:

1

I'm using pdb to debug Python programs and am unhappy with it's behaviour.

I have the screen divided into multiple emacs windows, and when I execute pdb, it (randomly?) replaces one of the windows with the output of the *gud* debugger.

Also, when a breakpoint is encountered, even if the debugging buffer is already visible in a window, it usually puts this buffer into another window, and replaces another of my windows with the contents of the source file. (incidentally I like that it jumps to the correct line in the source file)

How can I disable gud/pdb from managing my windows for me? Is it possible in emacs to prevent all programattic manipulation of windows & screen layout?

Edit: I found the answer that partially solves this in another post: toggle dedicated windows

+3  A: 

Look into sticky windows.

Charlie Martin
setting set-window-dedicated-p has the disadvantage that C-f find-file called from a window unintuitively opens the file in another windoow. I was able to override this behaviour by adding (set-window-dedicated-p (get-buffer-window (current-buffer)) nil)to a custom version of find-file
EoghanM