Function: kmacro-menu-flag-for-deletion

kmacro-menu-flag-for-deletion is an interactive and byte-compiled function defined in kmacro.el.gz.

Signature

(kmacro-menu-flag-for-deletion)

Documentation

Flag macros in the region or on the current line.

If there's an active region, flag macros in the region; otherwise flag the macro on the current line. If there is no active region, move point to the next line when done.

Flagged macros can be deleted via kmacro-menu-do-flagged-delete.

View in manual

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/kmacro.el.gz
(defun kmacro-menu-flag-for-deletion ()
  "Flag macros in the region or on the current line.

If there's an active region, flag macros in the region; otherwise flag
the macro on the current line.  If there is no active region, move point
to the next line when done.

Flagged macros can be deleted via `kmacro-menu-do-flagged-delete'."
  (declare (modes kmacro-menu-mode))
  (interactive nil kmacro-menu-mode)
  (kmacro-menu--query-revert)
  (kmacro-menu--do-region
   (lambda (id)
     (setf (alist-get (kmacro-menu--id-position id)
                      kmacro-menu--deletion-flags)
           t)
     (kmacro-menu--propertize-keys 'kmacro-menu-flagged)
     (tabulated-list-put-tag #("D" 0 1 (face kmacro-menu-mark))))))