Function: pcmpl-x-ack-long-options
pcmpl-x-ack-long-options is a byte-compiled function defined in
pcmpl-x.el.gz.
Signature
(pcmpl-x-ack-long-options &optional ARG)
Documentation
Long options for the ack command.
Source Code
;; Defined in /usr/src/emacs/lisp/pcmpl-x.el.gz
(defun pcmpl-x-ack-long-options (&optional arg)
"Long options for the `ack' command."
(with-temp-buffer
(let (options)
(when (zerop (pcmpl-x-ack-run t (or arg "--help")))
(goto-char (point-min))
(while (re-search-forward
"\\(?: ?\\|, \\)\\(--\\(\\[no\\]\\)?\\([[:alnum:]-]+=?\\)\\)"
nil t)
(if (not (match-string 2))
(push (match-string 1) options)
(push (concat "--" (match-string 3)) options)
(push (concat "--no" (match-string 3)) options)))
(nreverse options)))))