From f713bf4b090214856eb3b0d1596dfa30271b3a2d Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 3 Apr 2003 10:24:40 +0000 Subject: 18432: Minor miscellany of comments and rationalisations. --- Completion/Unix/Command/_mh | 3 +-- Completion/Unix/Command/_perforce | 12 ++++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) (limited to 'Completion') diff --git a/Completion/Unix/Command/_mh b/Completion/Unix/Command/_mh index d25870281..bf30b000d 100644 --- a/Completion/Unix/Command/_mh +++ b/Completion/Unix/Command/_mh @@ -1,7 +1,6 @@ #compdef ali dist flist flists folder folders forw comp inc mark refile repl scan show next prev packf rmf rmm pick whom mhn mhpath mhlist mhstore mhshow mhparam mhmail # Completion for all possible MH commands. - local mymhdir=${$(_call_program mhpath mhpath + 2>/dev/null):-~/Mail} local mhlib=/usr/lib/mh @@ -84,7 +83,7 @@ else compadd "$expl[@]" $(mark $foldnam 2>/dev/null | awk -F: '{ print $1 }') && ret=0 compadd "$expl[@]" reply next cur prev first last all unseen && ret=0 - _files "$expl[@]" -W folddir -g '<->' && ret=0 + _path_files "$expl[@]" -W folddir -g '<->' && ret=0 done (( ret )) || return 0 done diff --git a/Completion/Unix/Command/_perforce b/Completion/Unix/Command/_perforce index b14ab25fb..34db61478 100644 --- a/Completion/Unix/Command/_perforce +++ b/Completion/Unix/Command/_perforce @@ -187,6 +187,18 @@ # command are appended to the remaining words of the style before calling # the command. # +# Programmes taking p4-style arguments +# ==================================== +# +# It is possible to use the _perforce completion with other commands +# which behave like a subcommand of p4 by setting the service type +# to p4-. For example, +# compdef _perforce p4cvsmap=p4-files +# says that the command `p4cvsmap' takes arguments like `p4 files'. +# Often the options will be different; if this is a problem, you +# will need to write your own completer which loads _perforce and +# calls its functions directly. +# # TODO # ==== # -- cgit 1.4.1