Function: dabbrev--select-buffers

dabbrev--select-buffers is a byte-compiled function defined in dabbrev.el.gz.

Signature

(dabbrev--select-buffers)

Documentation

Return a list of other buffers to search for a possible abbrev.

The current buffer is not included in the list.

This function makes a list of all the buffers returned by buffer-list, then discards buffers whose names match dabbrev-ignored-buffer-names or dabbrev-ignored-buffer-regexps, and major modes that match dabbrev-ignored-buffer-modes. It also discards buffers for which dabbrev-friend-buffer-function, if it is bound, returns nil when called with the buffer as argument. It returns the list of the buffers that are not discarded.

Source Code

;; Defined in /usr/src/emacs/lisp/dabbrev.el.gz
(defun dabbrev--select-buffers ()
  "Return a list of other buffers to search for a possible abbrev.
The current buffer is not included in the list.

This function makes a list of all the buffers returned by
`buffer-list', then discards buffers whose names match
`dabbrev-ignored-buffer-names' or
`dabbrev-ignored-buffer-regexps', and major modes that match
`dabbrev-ignored-buffer-modes'.  It also discards buffers for
which `dabbrev-friend-buffer-function', if it is bound, returns
nil when called with the buffer as argument.  It returns the list
of the buffers that are not discarded."
  (dabbrev-filter-elements
   buffer (dabbrev--filter-buffer-modes)
   (and (not (eq (current-buffer) buffer))
	(not (dabbrev--ignore-buffer-p buffer))
	(boundp 'dabbrev-friend-buffer-function)
	(funcall dabbrev-friend-buffer-function buffer))))