branch: elpa/dslide commit f24e5b8538da41a592e494dcffba71e63b71335a Author: Psionik K <73710933+psioni...@users.noreply.github.com> Commit: Psionik K <73710933+psioni...@users.noreply.github.com>
Rename argument, display-action -> display It's a boolean, not a means of override Signed-off-by: Psionik K <73710933+psioni...@users.noreply.github.com> --- macro-slides.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/macro-slides.el b/macro-slides.el index c7a02ec0c0..0f35e69e23 100644 --- a/macro-slides.el +++ b/macro-slides.el @@ -2267,13 +2267,14 @@ hooks must occur in the deck's :slide-buffer." ms--animation-timer nil ms--contents-hl-line-overlay nil)) -(defun ms--ensure-slide-buffer (&optional display-action) - "Run in commands that must run in the slide buffer." +(defun ms--ensure-slide-buffer (&optional display) + "Run in commands that must run in the slide buffer. +Unless optional DISPLAY is non-nil, the buffer is only set." (unless (ms-live-p) (error "Live deck not found")) - (if display-action + (if display (display-buffer (oref ms--deck slide-buffer) - display-action) + ms--display-actions) (set-buffer (oref ms--deck slide-buffer)))) (defun ms--keyword-value (key)