Function: tempel-abort

tempel-abort is an interactive and natively compiled function defined in tempel.el.

Signature

(tempel-abort &optional ALL)

Documentation

Abort current template.

If prefix argument ALL is given, abort all templates.

Key Bindings

tempel-map M-ESC ESC

Source Code

;; Defined in /nix/store/b3ibjbs2i12kyhwapibfx6i39f025i85-emacs-packages-deps/share/emacs/site-lisp/elpa/tempel-20260705.1258/tempel.el
(defun tempel-abort (&optional all)
  "Abort current template.
If prefix argument ALL is given, abort all templates."
  (declare (completion tempel--active-p))
  (interactive "P")
  (tempel--for all
    (lambda (st)
      (let ((beg (overlay-start (caar st)))
            (end (overlay-end (caar st))))
        (tempel--disable)
        (delete-region beg end)))))