doing (ed 'foo) had 2 problems. There was a bug in ed-select-buffer-cleverly, which was fixed, but now the initial redisplay does not take place (i.e. typing <form> causes different things (the right things) to be displayed. Also, the type ahead losing on the completing reader is very annoying.