• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/emacs-93/emacs/lisp/

Lines Matching +defs:orig +defs:buffers

1 ;;; iswitchb.el --- switch between buffers using substrings
35 ;; As you type in a substring, the list of buffers currently matching
37 ;; that the most recent buffers visited come at the start of the list.
44 ;; common to all of the matching buffers as you type.
54 ;; If I have two buffers called "123456" and "123", with "123456" the
56 ;; the list of all the buffers
63 ;; The list in {} are the matching buffers, most recent first (buffers
73 ;; At this point, I still have two matching buffers.
87 ;; There are no matching buffers. If I press RET or TAB, I can be
96 ;; To see a full list of all matching buffers in a separate buffer,
114 ;; buffers:
118 ;; Then these will be the matching buffers, depending on how you type
121 ;; iswitchb-case user input | matching buffers
140 ;; Seeing all the matching buffers
142 ;; If you have many matching buffers, they may not all fit onto one
150 ;; Changing the list of buffers
152 ;; By default, the list of current buffers is most recent first,
153 ;; oldest last, with the exception that the buffers visible in the
159 ;; then all buffers matching "Summary" are moved to the end of the
161 ;; out of the way.) It also moves buffers matching "output\*$" to the
164 ;; matching buffers (either deleting or rearranging elements.)
203 ;; matching buffers matching your current prompt, you can then press
204 ;; e.g. C-o to restrict matching to those buffers and clearing the prompt:
273 "Switch between buffers using substrings."
290 For example, traditional behavior is not to list buffers whose names begin
300 buffers, the first N/2 and the last N/2 matching buffers are
302 multitude of buffers open."
306 (defcustom iswitchb-use-virtual-buffers nil
307 "*If non-nil, refer to past buffers when none match.
318 (defvar iswitchb-virtual-buffers nil)
330 ; "Ignore all c mode buffers -- example function for iswitchb."
388 "Hook to run when list of matching buffers is created."
393 "*Argument to pass to `walk-windows' when finding visible buffers.
426 See also `iswitchb-use-virtual-buffers'."
453 "Stores the current list of buffers that will be searched through.
454 The list is ordered, so that the most recent buffers come first,
455 although by default, the buffers visible in the current frame are put
469 "Stores the string that is common to all matching buffers.")
472 "Non-nil means we need to regenerate the list of matching buffers.")
478 "List of buffers currently matching `iswitchb-text'.")
509 "History of buffers selected using `iswitchb-buffer'.")
516 (defvar iswitchb-buffer-ignore-orig nil
530 "List of the buffers visible in the current frame.")
570 As you type in a string, all of the buffers matching the string are
585 matches all buffers. If there is only one match, select that buffer.
586 If there is no common suffix, show a list of all matching buffers
590 \\[iswitchb-completion-help] Show list of matching buffers in separate window.
593 ;;\\[iswitchb-toggle-ignore] Toggle ignoring certain buffers (see \
668 iswitchb-virtual-buffers nil))
672 (if (and iswitchb-virtual-buffers
674 (let ((virt (car iswitchb-virtual-buffers)))
677 iswitchb-virtual-buffers nil)))
762 "Toggle ignoring buffers specified with `iswitchb-buffer-ignore'."
766 (setq iswitchb-buffer-ignore-orig iswitchb-buffer-ignore)
769 (setq iswitchb-buffer-ignore iswitchb-buffer-ignore-orig))
803 (if (and (null next) iswitchb-virtual-buffers)
806 (cdr (cadr iswitchb-virtual-buffers))))
814 (if (and (null prev) iswitchb-virtual-buffers)
817 (cdr (car (last iswitchb-virtual-buffers)))))
839 "Set `iswitchb-buflist' to the current list of buffers.
840 Currently visible buffers are put at the end of the list.
846 (let* ((iswitchb-current-buffers (iswitchb-get-buffers-in-frames))
855 (memq b-name iswitchb-current-buffers)))
860 (nconc iswitchb-temp-buflist iswitchb-current-buffers))
878 (defun iswitchb-get-buffers-in-frames (&optional current)
879 "Return the list of buffers that are visible in the current frame.
891 "Used by `iswitchb-get-buffers-in-frames' to walk through all windows."
903 "Set `iswitchb-matches' to the list of buffers matching prompt."
907 (iswitchb-get-matched-buffers iswitchb-text iswitchb-regexp
909 iswitchb-virtual-buffers nil)))
911 (defun iswitchb-get-matched-buffers (regexp
913 "Return buffers matching REGEXP.
915 BUFFER-LIST can be list of buffers or list of strings."
1130 (let ((blist (iswitchb-get-buffers-in-frames 'current)))
1227 "Find matching buffers and display a list in the minibuffer.
1292 ;; If no buffers matched, and virtual buffers are being used, then
1295 (when (and iswitchb-use-virtual-buffers (null comps)
1297 (setq iswitchb-virtual-buffers nil)
1305 (not (assoc name iswitchb-virtual-buffers))
1308 (setq iswitchb-virtual-buffers
1310 iswitchb-virtual-buffers)))
1312 (setq iswitchb-virtual-buffers (nreverse iswitchb-virtual-buffers)
1313 comps (mapcar 'car iswitchb-virtual-buffers))
1454 This mode enables switching between buffers using substrings. See