Variable: dabbrev-friend-buffer-function

dabbrev-friend-buffer-function is a customizable variable defined in dabbrev.el.gz.

Value

dabbrev--same-major-mode-p

Documentation

A function to decide whether dabbrev should search OTHER-BUFFER.

The function should take one argument, OTHER-BUFFER, and return non-nil if that buffer should be searched. Have a look at dabbrev--same-major-mode-p for an example.

The value of dabbrev-friend-buffer-function has an effect only if the value of dabbrev-select-buffers-function uses it. The function dabbrev--select-buffers is one function you can use here.

A mode setting this variable should make it buffer local.

Source Code

;; Defined in /usr/src/emacs/lisp/dabbrev.el.gz
(defcustom dabbrev-friend-buffer-function 'dabbrev--same-major-mode-p
  "A function to decide whether dabbrev should search OTHER-BUFFER.
The function should take one argument, OTHER-BUFFER, and return
non-nil if that buffer should be searched.  Have a look at
`dabbrev--same-major-mode-p' for an example.

The value of `dabbrev-friend-buffer-function' has an effect only if
the value of `dabbrev-select-buffers-function' uses it.  The function
`dabbrev--select-buffers' is one function you can use here.

A mode setting this variable should make it buffer local."
  :type 'function
  :group 'dabbrev)