Function: pcmpl-x-tlmgr-action-options

pcmpl-x-tlmgr-action-options is a byte-compiled function defined in pcmpl-x.el.gz.

Signature

(pcmpl-x-tlmgr-action-options ACTION)

Documentation

Get the list of long options for ACTION.

Source Code

;; Defined in /usr/src/emacs/lisp/pcmpl-x.el.gz
(defun pcmpl-x-tlmgr-action-options (action)
  "Get the list of long options for ACTION."
  (if (not (hash-table-contains-p action pcmpl-x-tlmgr-options-cache))
      (with-temp-buffer
        (when (zerop
               (call-process pcmpl-x-tlmgr-program nil t nil action "-h"))
          (goto-char (point-min))
          (puthash action
                   (cons "--help"
                         (cl-loop while (re-search-forward
                                         "^[ \t]+\\(--[[:alnum:]-]+=?\\)"
                                         nil t)
                                  collect (match-string 1)))
                   pcmpl-x-tlmgr-options-cache)
          (pcmpl-x-tlmgr-action-options action)))
    (gethash action pcmpl-x-tlmgr-options-cache)))