When I had Alex, the very sick shelter cat, here with me in February, he did a lot of the mournful wailing/howling and the staring out into space deal. The thing is, he had done that wailing in the shelter, but the way he behaved when he was here, it was so distressing. Granted, he was a very sick kitty (brain tumor, blind, deaf, partially paralyzed). It was just heartbreaking to watch his deterioration in the two short weeks he was here with me.
I hope they can figure out what is causing Ripley's discomfort. Poor old guy! Big hugs to you and to Ripley.