Possible values:
`samewindow' Show new buffer in same window
`otherwindow' Show new buffer in another window (same frame)
+`display' Display buffer in another window without switching to it
`otherframe' Show new buffer in another frame
`maybe-frame' If a buffer is visible in another frame, prompt to ask if you
you want to see the buffer in the same window of the current
(defvar iswitchb-method nil
"*Stores the method for viewing the selected buffer.
-Its value is one of `samewindow', `otherwindow', `otherframe',
+Its value is one of `samewindow', `otherwindow', `display', `otherframe',
`maybe-frame' or `always-frame'. See `iswitchb-default-method' for
details of values.")
(defun iswitchb-get-matched-buffers (regexp &optional string-format buffer-list)
"Return matched buffers.
-If STRING-FORMAT is non-nil, consider EGEXP as string.
+If STRING-FORMAT is non-nil, consider REGEXP as string.
BUFFER-LIST can be list of buffers or list of strings."
(let* ((case-fold-search iswitchb-case)
;; need reverse since we are building up list backwards
((eq iswitchb-method 'otherwindow)
(switch-to-buffer-other-window buffer))
+ ((eq iswitchb-method 'display)
+ (display-buffer buffer))
+
((eq iswitchb-method 'otherframe)
(progn
(switch-to-buffer-other-frame buffer)
(interactive)
(global-set-key "\18b" 'iswitchb-buffer)
(global-set-key "\184b" 'iswitchb-buffer-other-window)
+ (global-set-key "\184\ f" 'iswitchb-display-buffer)
(global-set-key "\185b" 'iswitchb-buffer-other-frame))
+;;;###autoload
+(defun iswitchb-display-buffer ()
+ "Display a buffer in another window but don't select it.
+The buffer name is selected interactively by typing a substring.
+For details of keybindings, do `\\[describe-function] iswitchb'."
+ (interactive)
+ (setq iswitchb-method 'display)
+ (iswitchb-entry))
+
+
+
;;;###autoload
(defun iswitchb-buffer-other-frame ()
"Switch to another buffer and show it in another frame.
(member (symbol-name this-command)
'("iswitchb-buffer"
"iswitchb-buffer-other-frame"
+ "iswitchb-display-buffer"
"iswitchb-buffer-other-window"))))
(defun iswitchb-summaries-to-end ()