(save-window-excursion
(list-command-history)
(set-buffer "*Command History*")
- (Command-history-setup 'electric-command-history
- "Electric History"
- electric-history-map))
+ (Command-history-setup)
+ (setq major-mode 'electric-command-history)
+ (setq mode-name "Electric History")
+ (use-local-map electric-history-map))
(Electric-pop-up-window "*Command History*")
(run-hooks 'electric-command-history-hook)
(if (eobp)
(Electric-command-loop 'electric-history-quit
"->" t))))))
(set-buffer "*Command History*")
- (Command-history-setup)
+ (command-history-mode)
(bury-buffer (current-buffer)))
(if (consp todo)
(progn (set-buffer old-buffer)