changeset 24820:788dc6ff04da

Add iswitchb-minibuffer-setup to minibuffer-setup-hook in iswitchb-default-keybindings.
author Stephen Eglen <stephen@gnu.org>
date Sat, 05 Jun 1999 11:48:02 +0000
parents 649cfea33b84
children 7f6aadd2625b
files lisp/iswitchb.el
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/iswitchb.el	Sat Jun 05 01:18:14 1999 +0000
+++ b/lisp/iswitchb.el	Sat Jun 05 11:48:02 1999 +0000
@@ -966,8 +966,10 @@
 ;;;###autoload
 (defun iswitchb-default-keybindings ()
   "Set up default keybindings for `iswitchb-buffer'.
-Call this function to override the normal bindings."
+Call this function to override the normal bindings.  This function also
+adds a hook to the minibuffer."
   (interactive)
+  (add-hook 'minibuffer-setup-hook 'iswitchb-minibuffer-setup)
   (global-set-key (read-kbd-macro "C-x b")  'iswitchb-buffer)
   (global-set-key (read-kbd-macro "C-x 4 b")  'iswitchb-buffer-other-window)
   (global-set-key (read-kbd-macro "C-x 4 C-o")  'iswitchb-display-buffer)
@@ -1244,9 +1246,6 @@
 			      iswitchb-temp-buflist))))
     (iswitchb-to-end summaries)))
 
-;;; HOOKS
-(add-hook 'minibuffer-setup-hook 'iswitchb-minibuffer-setup)
-
 (provide 'iswitchb)
 
 ;;; iswitchb.el ends here