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: Sat, 21 Oct 2023 03:08:02 -0700

Antero Mejr <antero@mailbox.org> writes:

> Thanks, that is better. However the -C file completion doesn't work for
> me unless I reorder the pcomplete-opt flags like this:
>
> ;;;###autoload
> (defun pcomplete/doas ()
>   "Completion for the `doas' command."
>   (pcomplete-opt
>    "C(pcomplete-entries nil #'file-regular-p)Lnsu(pcmpl-unix-user-names)")
>   (funcall pcomplete-command-completion-function)
>   (funcall (or (pcomplete-find-completion-function (pcomplete-arg 1))
>                pcomplete-default-completion-function)))
>
> The above also lets pcomplete-opt handle the '-' prefix. WDYT?

Could you send an updated patch based on the above?

Thanks in advance.





reply via email to

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