;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
-;; along with GNU Emacs; see the file COPYING. If not, write to
-;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+;; along with GNU Emacs; see the file COPYING. If not, write to the
+;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+;; Boston, MA 02111-1307, USA.
;;; Code:
(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)
(progn (message "")
(throw 'electric-history-quit nil))))
+(provide 'echistory)
+
;;; echistory.el ends here