earl@mips.com (Earl Killian) (06/06/89)
In GNU Emacs 18.52.10 of Wed Oct 19 1988 on wright (berkeley-unix) When I first use electric-command-history it usually says "No command history." I traced it down, and it appears that list-command-history thinks it is in the *Command History* buffer when it is not. Thus the (goto (point-min)) line doesn't do what you'd expect. I fixed this by moving the (set-buffer "*Command History*) in electric-command-history before the call to list-command-history. If list-command-history is expected to work when not called from electric-command-history, then a different fix is appropriate.