Simple & slow ppm generation in emacs