Make ProofGeneral.rcp work with Emacs >= 24.2.

See http://proofgeneral.inf.ed.ac.uk/trac/ticket/458 .
Merge pull request #1297 from 23Skidoo/patch-2

Make ProofGeneral.rcp work with Emacs >= 24.2.