branch: externals/beframe
commit 40ddc320eb743afc41af629ed95f98293805448f
Author: Protesilaos Stavrou <i...@protesilaos.com>
Commit: Protesilaos Stavrou <i...@protesilaos.com>
    Add bespoke minibuffer history
---
 framed-buffers.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/framed-buffers.el b/framed-buffers.el
index d9973b8b47..a1b17bdfd4 100644
--- a/framed-buffers.el
+++ b/framed-buffers.el
@@ -87,6 +87,9 @@ it must satisfy `framep'."
     (unless (string-prefix-p " " b)
       (seq-contains-p (framed-buffers--buffer-names frame) b 
#'string-match-p))))
 
+(defvar framed-buffers-history nil
+  "Minibuffer history of frame specific buffers.")
+
 ;;;###autoload
 (defun framed-buffers-read-buffer (prompt &optional def require-match 
_predicate)
   "The `read-buffer-function' that limits buffers to frames.
@@ -98,7 +101,7 @@ per-frame filter."
                    #'framed-buffers--read-buffer-p
                    require-match
                    nil
-                   'buffer-name-history
+                   'framed-buffers-history
                    def))
 
 (defun framed-buffers--buffer-prompt (&optional frame)

Reply via email to