Function: toolbarx-test-string-or-nil

toolbarx-test-string-or-nil is a byte-compiled function defined in toolbar-x.el.

Signature

(toolbarx-test-string-or-nil OBJ)

Documentation

Return a cons cell (GOOD-OBJ . VAL).

GOOD-OBJ is non-nil if OBJ yields a valid help object VAL (see documentation of function toolbarx-process-symbol).

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/toolbar-x.el
(defun toolbarx-test-string-or-nil (obj)
  "Return a cons cell (GOOD-OBJ . VAL).
GOOD-OBJ is non-nil if OBJ yields a valid help object VAL (see
documentation of function `toolbarx-process-symbol')."
  (let ((toolbarx-test-string-or-nil-simple
         (lambda (obj)
           (let* ((val (toolbarx-option-value obj))
                  (good-obj (or (stringp val)
                                (not val))))
             (cons good-obj val)))))
    (toolbarx-eval-function-or-symbol obj toolbarx-test-string-or-nil-simple)))