From b8776afc9fe7897f732f0e9d54268060364481e4 Mon Sep 17 00:00:00 2001 From: Daniel Mendler Date: Sun, 28 Nov 2021 23:16:39 +0100 Subject: Add cape-dabbrev-check-other-buffers --- cape.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cape.el b/cape.el index d27c823..6251e11 100644 --- a/cape.el +++ b/cape.el @@ -50,6 +50,10 @@ "Minimum length of dabbrev expansions." :type 'integer) +(defcustom cape-dabbrev-check-other-buffers t + "Buffers to check for dabbrev." + :type 'boolean) + (defcustom cape-file-directory-must-exist t "The parent directory must exist for file completion." :type 'integer) @@ -493,8 +497,8 @@ If INTERACTIVE is nil the function acts like a capf." (defun cape--dabbrev-reset () "Reset dabbrev state." - (let ((dabbrev-check-all-buffers nil) - (dabbrev-check-other-buffers nil)) + (let ((dabbrev-check-all-buffers cape-dabbrev-check-other-buffers) + (dabbrev-check-other-buffers cape-dabbrev-check-other-buffers)) (dabbrev--reset-global-variables))) (defun cape--dabbrev-list (word) -- cgit v1.0