aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1999-12-31 23:41:11 +0000
committerRichard M. Stallman1999-12-31 23:41:11 +0000
commite65f2cc09364b340d23e379ce5de14c2fce3891b (patch)
tree9086a376c1e3adc1ab7d3f26d8f5f0884dd8aff7
parent23e3e630bae537fec623fa1708a6d58025fcc7b7 (diff)
downloademacs-e65f2cc09364b340d23e379ce5de14c2fce3891b.tar.gz
emacs-e65f2cc09364b340d23e379ce5de14c2fce3891b.zip
(electric-command-history): Call Command-history-setup
and command-history-mode using their new conventions.
-rw-r--r--lisp/echistory.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/echistory.el b/lisp/echistory.el
index f74a002b5e5..8e04d7eb01d 100644
--- a/lisp/echistory.el
+++ b/lisp/echistory.el
@@ -113,9 +113,10 @@ The Command History listing is recomputed each time this mode is invoked."
113 (save-window-excursion 113 (save-window-excursion
114 (list-command-history) 114 (list-command-history)
115 (set-buffer "*Command History*") 115 (set-buffer "*Command History*")
116 (Command-history-setup 'electric-command-history 116 (Command-history-setup)
117 "Electric History" 117 (setq major-mode 'electric-command-history)
118 electric-history-map)) 118 (setq mode-name "Electric History")
119 (use-local-map electric-history-map))
119 (Electric-pop-up-window "*Command History*") 120 (Electric-pop-up-window "*Command History*")
120 (run-hooks 'electric-command-history-hook) 121 (run-hooks 'electric-command-history-hook)
121 (if (eobp) 122 (if (eobp)
@@ -126,7 +127,7 @@ The Command History listing is recomputed each time this mode is invoked."
126 (Electric-command-loop 'electric-history-quit 127 (Electric-command-loop 'electric-history-quit
127 "->" t)))))) 128 "->" t))))))
128 (set-buffer "*Command History*") 129 (set-buffer "*Command History*")
129 (Command-history-setup) 130 (command-history-mode)
130 (bury-buffer (current-buffer))) 131 (bury-buffer (current-buffer)))
131 (if (consp todo) 132 (if (consp todo)
132 (progn (set-buffer old-buffer) 133 (progn (set-buffer old-buffer)