Fix a few latent bugs in my emacs running functions.