This change is to make the behavior more consistent and easier to predict (e.g. when MacVim is used with PeepOpen). If opening new files causes a new window to appear on screen, then the pwd is set to the directory of the first file being opened. If a window is already visible and new files are set to open in the "current" window, then the pwd will not change when opening files.
Put keyboard input on Vim's input buffer as soon as it arrives instead of first putting it on the backend's input buffer. This should fix problems with MacVim spuriously locking up when opening files as has been reported by users of the PeepOpen utility.
Problem: X11 clipboard doesn't work in Athena/Motif GUI. First selection after a shell command doesn't work. Solution: When using the GUI use XtLastTimestampProcessed() instead of changing a property. (partly by Toni Ronkko) When executing a shell command disown the selection.