]> code.delx.au - gnu-emacs/blobdiff - lisp/echistory.el
(select-safe-coding-system): Fix
[gnu-emacs] / lisp / echistory.el
index f74a002b5e5e7454295efb03c7b0cd47be812ef4..a01cad89f40a8ca35216f0ea22442d9dbe3a58eb 100644 (file)
@@ -22,6 +22,8 @@
 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 ;; Boston, MA 02111-1307, USA.
 
+;;; Commentary:
+
 ;;; Code:
 
 (require 'electric)                    ; command loop
@@ -70,7 +72,7 @@ With prefix arg NOCONFIRM, execute current line as-is without editing."
   (define-key electric-history-map "\e<" 'beginning-of-buffer)
   (define-key electric-history-map "\n" 'next-line)
   (define-key electric-history-map "\r" 'next-line)
-  (define-key electric-history-map "\177" 'previous-line)  
+  (define-key electric-history-map "\177" 'previous-line)
   (define-key electric-history-map "\C-n" 'next-line)
   (define-key electric-history-map "\C-p" 'previous-line)
   (define-key electric-history-map "\ev" 'scroll-down)
@@ -113,9 +115,10 @@ The Command History listing is recomputed each time this mode is invoked."
                  (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 +129,7 @@ The Command History listing is recomputed each time this mode is invoked."
                      (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)
@@ -149,4 +152,5 @@ The Command History listing is recomputed each time this mode is invoked."
 
 (provide 'echistory)
 
+;;; arch-tag: 1e5018fe-190f-44a7-9109-a895dcac4c50
 ;;; echistory.el ends here