Fix misbehaviour when moving lines up, caused by changes to transpose-lines in Emacs 24.3.