knupfer / org-panes

show org-mode in multiple panes
42 stars 4 forks source link

org-panes creates 5 windows instead of 3 #2

Closed brabalan closed 10 years ago

brabalan commented 10 years ago

Something must be interfering with org-pane because when I call it in a frame with a single window, I get this

screen shot 2014-08-27 at 09 02 05

brabalan commented 10 years ago

I tried debugging to see what is going on, and the problem is the call to clone-indirect-buffer in org-panes-establish-layout which splits the window horizontally. I looked at the documentation of that function and I have no idea why it does that.

knupfer commented 10 years ago

I think that I've found what's causing the issue. I used the display-flag from clone-indirect-buffer to clone it in the beforehand splitted, other window. But the display-flag calls pop-to-buffer which is a bit blurry and might behave different on different window sizes. I've made selecting and cloning more explicit, would you please report if it works now for you? Greets

brabalan commented 10 years ago

It's working great now, thanks.

knupfer commented 10 years ago

wonderful! if you've got further suggestions don't hestitate, I like to learn