Code works in Emacs 24.3 only now