bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#66551: [PATCH] Add completion for Unix 'doas' command.


From: Stefan Kangas
Subject: bug#66551: [PATCH] Add completion for Unix 'doas' command.
Date: Sun, 15 Oct 2023 00:58:04 -0700

Antero Mejr via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <bug-gnu-emacs@gnu.org> writes:

> The attached patch adds a pcomplete procedure for doas, so shell/eshell
> will do command completion correctly.

Thanks, this is a useful addition.

> +;;;###autoload
> +(defun pcomplete/doas ()
> +  "Completion for the `doas' command."
> +  (pcomplete-opt "su")

Are there any other options that are worth adding?

    https://man.openbsd.org/doas

> +  (funcall pcomplete-command-completion-function)
> +  (funcall (or (pcomplete-find-completion-function (pcomplete-arg 1))
> +            pcomplete-default-completion-function)))
> +
>  (provide 'pcmpl-unix)
>
>  ;;; pcmpl-unix.el ends here
> --
> 2.41.0





reply via email to

[Prev in Thread] Current Thread [Next in Thread]