Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!mips.com!earl From: earl@mips.com (Earl Killian) Newsgroups: gnu.emacs.bug Subject: electric-command-history Message-ID: <8906052245.AA03327@wright.mips.com> Date: 5 Jun 89 22:45:13 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 10 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.