summaryrefslogtreecommitdiff
path: root/lisp/dabbrev.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2001-04-26 07:38:12 +0000
committerEli Zaretskii <eliz@gnu.org>2001-04-26 07:38:12 +0000
commit3387347b3dc0961ef2ab4eb60fabe53b854c2245 (patch)
tree93f7dae1aa0638bdc54fd9fa69bde144df93e07d /lisp/dabbrev.el
parentb401e595d5b751302992b6b4ecee772aff8cf70f (diff)
downloademacs-3387347b3dc0961ef2ab4eb60fabe53b854c2245.tar.gz
(dabbrev--select-buffers): Add a doc string.
Diffstat (limited to 'lisp/dabbrev.el')
-rw-r--r--lisp/dabbrev.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/dabbrev.el b/lisp/dabbrev.el
index a5a37c3d20f..62c3befa908 100644
--- a/lisp/dabbrev.el
+++ b/lisp/dabbrev.el
@@ -651,6 +651,11 @@ See also `dabbrev-abbrev-char-regexp' and \\[dabbrev-completion]."
;;; Find all buffers that are considered "friends" according to the
;;; function pointed out by dabbrev-friend-buffer-function.
(defun dabbrev--select-buffers ()
+ "Return a list of all buffers that should be searched for a possible abbrev.
+
+This function makes a list of all the buffers returned by `buffer-list', and
+then filters out every buffer for which `dabbrev-friend-buffer-function',
+if it is bound, returns nil. The resulting partial list is returned."
(save-excursion
(and (window-minibuffer-p (selected-window))
(set-buffer (dabbrev--minibuffer-origin)))