Oops, I messed up when replying, so the messages didn't go to the list. Here they are :
Me :
Yup, that's a problem. I don't know about other shells so I just made
it for sh/bash. I don't think there is a way to change the environment
of a process without giving it some kind of command. Ideal would be to
switch between different commands according to the shell type, or fail
without doing anything if the shell is unknown. I'm a newbie to emacs
and lisp, so I just made the code using what I could find. Hopefully
someone will turn this snippet into something worthy to be merged into
main emacs (even if it doesn't work for every shell known to man)
Stefan Monnier :
The problem is not too serious w.r.t shell-compatibility (you can make
it configurable). It's more serious when you take into account the fact
that some other process (not a shell) might be running at that moment.
Have you try M-x term instead of M-x shell? It's a different tradeoff,
but it should be able to accomodate window-size changes.
Me:
Well, that's the reason why the patch is to shell, not comint. Isn't shell the specialized mode for dealing with shells only ?