Make ProofGeneral.rcp work with Emacs >= 24.2.

See http://proofgeneral.inf.ed.ac.uk/trac/ticket/458 .