Function: dired-mark-executables

dired-mark-executables is an interactive and byte-compiled function defined in dired.el.gz.

Signature

(dired-mark-executables UNFLAG-P)

Documentation

Mark all executable files.

With prefix argument, unmark or unflag all those files. If the region is active in Transient Mark mode, mark files only in the active region if dired-mark-region is non-nil.

View in manual

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/dired.el.gz
(defun dired-mark-executables (unflag-p)
  "Mark all executable files.
With prefix argument, unmark or unflag all those files.
If the region is active in Transient Mark mode, mark files
only in the active region if `dired-mark-region' is non-nil."
  (interactive "P")
  (let ((dired-marker-char (if unflag-p ?\s dired-marker-char)))
    (dired-mark-if (looking-at-p dired-re-exe) "executable file")))