Function: artist-get-last-non-nil-op

artist-get-last-non-nil-op is a byte-compiled function defined in artist.el.gz.

Signature

(artist-get-last-non-nil-op OP-LIST &optional LAST-NON-NIL)

Documentation

Find the last non-nil draw operation in OP-LIST.

Optional LAST-NON-NIL will be returned if OP-LIST is nil.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/artist.el.gz
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; mouse wheel cyclic operation selection

(defun artist-get-last-non-nil-op (op-list &optional last-non-nil)
  "Find the last non-nil draw operation in OP-LIST.
Optional LAST-NON-NIL will be returned if OP-LIST is nil."
  (if op-list
      (artist-get-last-non-nil-op (cdr op-list)
				  (or (car (car op-list)) last-non-nil))
    last-non-nil))