Function: embark--quit-p

embark--quit-p is a byte-compiled function defined in embark.el.

Signature

(embark--quit-p ACTION)

Documentation

Determine whether to quit the minibuffer after ACTION.

This function consults embark-quit-after-action to decide whether or not the user wishes to quit the minibuffer after performing the ACTION, assuming this is done from a minibuffer.

Source Code

;; Defined in ~/.emacs.d/elpa/embark-20260610.302/embark.el
(defun embark--quit-p (action)
  "Determine whether to quit the minibuffer after ACTION.
This function consults `embark-quit-after-action' to decide
whether or not the user wishes to quit the minibuffer after
performing the ACTION, assuming this is done from a minibuffer."
  (let* ((cfg embark-quit-after-action)
         (quit (if (consp cfg) (alist-get action cfg (alist-get t cfg)) cfg)))
    (when embark--toggle-quit (setq quit (not quit)))
    (setq embark--toggle-quit nil)
    quit))