delete-window will give an error if the window is the sole window in its
frame. In my emacs confige i use popup-like 'capture' frames for
denting, twisting, etc.
On cancelling or posting, the delete-window would fail, so a test for a
parent window prevents this.
- twister-create-post:
Creates an empty window in which post can be written, \C-c\C-c
posts the buffer.
- twister-close-post:
Hides and kill the twister post buffer, typically used in an advice.
This method encapsulates the connection and closes it too, so there
won't be processes left behind.
Performance wise, this is probably not the smartest thing to do, but
that is of no concern at this time.