Function: ibuffer-awhen

ibuffer-awhen is a macro defined in ibuf-macs.el.gz.

This macro is obsolete since 29.1; use when-let instead.

Signature

(ibuffer-awhen TEST &rest BODY)

Documentation

Evaluate BODY if TEST returns non-nil.

During evaluation of body, bind it to the value returned by TEST.

Source Code

;; Defined in /usr/src/emacs/lisp/ibuf-macs.el.gz
(defmacro ibuffer-awhen (test &rest body)
  "Evaluate BODY if TEST returns non-nil.
During evaluation of body, bind `it' to the value returned by TEST."
  (declare (indent 1) (obsolete when-let "29.1"))
  `(when-let ((it ,test))
     ,@body))