"Basil L. Contovounesios" writes: > Since eshell-buffer-name is a variable, eval-when-compile is not the > right thing to do here. Instead, there should be a > (defvar eshell-buffer-name) inside project-eshell declaring the symbol > as special. Right? You are absolutely correct, and TIL - thanks :) Below is another patch doing this. Works fine in emacs -Q Theo