From 1dac237aac6c5d3f3ba98c36e85664fb0584faa5 Mon Sep 17 00:00:00 2001 From: MitchMarq42 Date: Fri, 11 Aug 2023 19:39:03 -0800 Subject: [PATCH] add depth to `notibox-show` --- notibox.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/notibox.el b/notibox.el index f678797..1de2037 100644 --- a/notibox.el +++ b/notibox.el @@ -88,11 +88,11 @@ If STACKDEPTH is non-nil and nonzero, return a position that far down." ;; (notibox--prepare-buffer "test" "this better work gadangit") (defvar notibox-current-posframes nil) -(defun notibox--show (&optional timeout) - "Show the notibox currently prepared, with optional TIMEOUT." +(cl-defun notibox--show (&key timeout &key depth) + "Show the notibox currently prepared, with optional TIMEOUT, at DEPTH." (add-to-list 'notibox-current-posframes (posframe-show (get-buffer-create "*notibox*") - :position (notibox--get-position) + :position (notibox--get-position depth) :left-fringe 0 :right-fringe 0 :max-width notibox-width