Function: pcmpl-x-ack-short-options

pcmpl-x-ack-short-options is a byte-compiled function defined in pcmpl-x.el.gz.

Signature

(pcmpl-x-ack-short-options)

Documentation

Short options for the ack command.

Source Code

;; Defined in /usr/src/emacs/lisp/pcmpl-x.el.gz
(defun pcmpl-x-ack-short-options ()
  "Short options for the `ack' command."
  (with-temp-buffer
    (let (options)
      (when (zerop (pcmpl-x-ack-run t "--help"))
        (goto-char (point-min))
        (while (re-search-forward "^  -\\([^-]\\)" nil t)
          (push (match-string 1) options))
        (mapconcat #'identity (nreverse options))))))