Andy Piper <andy(a)xemacs.org> writes:
bury-buffer appears to do the right thing. do you have a simpler test
case?
Sure. Execute this in *scratch*.
(global-set-key "\e\C-J" '(lambda ()
(interactive)
(setq bashrc (get-buffer ".bashrc"))
(bury-buffer bashrc)
(delete-windows-on bashrc t)))
(This is essentially the end of gnus-group-suspend, with name changes.)
C-x C-f .bashrc RET M-C-j
Tab shows only .bashrc, though *scratch* is now displayed.