Function: ibuffer-mark-on-buffer

ibuffer-mark-on-buffer is a byte-compiled function defined in ibuf-ext.el.gz.

Signature

(ibuffer-mark-on-buffer FUNC &optional IBUFFER-MARK-ON-BUFFER-MARK GROUP)

Source Code

;; Defined in /usr/src/emacs/lisp/ibuf-ext.el.gz
(defun ibuffer-mark-on-buffer (func &optional ibuffer-mark-on-buffer-mark group)
  (let ((count
	 (ibuffer-map-lines
          (lambda (buf _mark)
            (when (funcall func buf)
              (ibuffer-set-mark-1 (or ibuffer-mark-on-buffer-mark
                                      ibuffer-marked-char))
              t))
	  nil
	  group)))
    (ibuffer-redisplay t)
    (unless (eq ibuffer-mark-on-buffer-mark ?\s)
      (message "Marked %s buffers" count))))