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

Lines Matching +defs:function +defs:list

1 ;;; buff-menu.el --- buffer menu main function and support functions -*- coding:utf-8 -*-
29 ;; buffers from a list summarizing their state. A good way to browse
31 ;; them by filename. The single entry point is `list-buffers',
36 ;; Buffer-menu-view: New function
37 ;; Buffer-menu-view-other-window: New function
52 ;;But it does strange things when you switch back to the buffer list buffer
65 ;; so that from now on even list-buffers is enough to get a buffer menu.
93 (defcustom Buffer-menu-use-frame-buffer-list t
94 "If non-nil, the Buffer Menu uses the selected frame's buffer list.
96 If the value is nil, the Buffer Menu uses the global buffer list.
166 "Major mode for editing a list of buffers.
194 \\[Buffer-menu-revert] -- update the list of buffers.
201 (set (make-local-variable 'revert-buffer-function)
202 'Buffer-menu-revert-function)
203 (set (make-local-variable 'buffer-stale-function)
209 ;; This function exists so we can make the doc string of Buffer-menu-mode
212 "Update the list of buffers."
216 (defun Buffer-menu-revert-function (ignore1 ignore2)
217 (or (eq buffer-undo-list t)
218 (setq buffer-undo-list nil))
227 (buffer-undo-list t))
231 ;; by `list-buffers-noselect'.
233 (list-buffers-noselect Buffer-menu-files-only))
290 (switch-to-buffer (list-buffers-noselect arg))
295 "Display a list of buffers in another window.
296 With the buffer list buffer, you can save, delete or select the buffers.
300 For more information, see the function `buffer-menu'."
303 (switch-to-buffer-other-window (list-buffers-noselect arg))
581 (define-key ctl-x-map "\C-b" 'list-buffers)
583 (defun list-buffers (&optional files-only)
584 "Display a list of names of existing buffers.
585 The list is displayed in a buffer named `*Buffer List*'.
589 For more information, see the function `buffer-menu'."
591 (display-buffer (list-buffers-noselect files-only)))
639 (push (list buf m1 m2) l)))
661 (interactive (list last-input-event))
694 (defun list-buffers-noselect (&optional files-only buffer-list)
695 "Create and return a buffer with a list of names of existing buffers.
700 If BUFFER-LIST is non-nil, it should be a list of buffers;
701 it means list those buffers and no others.
703 For more information, see the function `buffer-menu'."
714 list desired-point)
723 (list 'space :align-to pos)
746 (dolist (buffer (or buffer-list
747 (buffer-list
748 (when Buffer-menu-use-frame-buffer-list
753 (unless (and (not buffer-list)
779 ;; list-buffers-directory and, for Info buffers,
781 (cond ((and (boundp 'list-buffers-directory)
782 list-buffers-directory)
783 (setq file list-buffers-directory))
802 (push (list buffer bits name (buffer-size) mode file)
803 list))))))
804 ;; Preserve the original buffer-list ordering, just in case.
805 (setq list (nreverse list))
809 (sort list
817 list))