changeset 27064:9a83b898793c

(electric-command-history): Call Command-history-setup and command-history-mode using their new conventions.
author Richard M. Stallman <rms@gnu.org>
date Fri, 31 Dec 1999 23:41:11 +0000
parents e5d4464b5b3d
children bd4ad2d321a7
files lisp/echistory.el
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/echistory.el	Fri Dec 31 23:40:48 1999 +0000
+++ b/lisp/echistory.el	Fri Dec 31 23:41:11 1999 +0000
@@ -113,9 +113,10 @@
 		  (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)
@@ -126,7 +127,7 @@
 		      (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)