about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:13:23 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:13:23 +0000
commit8352dd4b620b086c7205ada7a68cdadf6b28219e (patch)
tree2829a37a7e6cece8f9e590c5709a0633056c5f00
parentf9fe751bfc868fbac37544479a0be78f9862e7b4 (diff)
downloadzsh-8352dd4b620b086c7205ada7a68cdadf6b28219e.tar.gz
zsh-8352dd4b620b086c7205ada7a68cdadf6b28219e.tar.xz
zsh-8352dd4b620b086c7205ada7a68cdadf6b28219e.zip
moved to Completion/X/Utility/_xt_arguments
-rw-r--r--Completion/X/_xt_arguments71
1 files changed, 0 insertions, 71 deletions
diff --git a/Completion/X/_xt_arguments b/Completion/X/_xt_arguments
deleted file mode 100644
index e8dafc60c..000000000
--- a/Completion/X/_xt_arguments
+++ /dev/null
@@ -1,71 +0,0 @@
-#autoload
-
-# How to convert XrmOptionDescRec:
-
-# XrmOptionDescRec optionDescList[] = {
-#   ...
-#   {option, specifier, argKind, value},
-#   ...
-# };
-
-#  argKind		argument for _xt_arguments
-#  XrmoptionNoArg	option
-#  XrmoptionIsArg	option
-#  XrmoptionStickyArg	option-:message:action
-#  XrmoptionSepArg	option:message:action
-#  XrmoptionResArg	option:message:_x_resource
-#  XrmoptionSkipArg	option:message:action
-#  XrmoptionSkipLine	option:*::message:action
-#  XrmoptionSkipNArgs	option:message[1]:action[1]:...:message[value]:action[value]
-
-# cf. XrmParseCommand(3X11), X11R6.4/xc/lib/Xt/Initialize.c, X(5)
-
-local ret long xargs opts rawret nm="$compstate[nmatches]"
-
-xargs=(
-  -+{rv,synchronous}
-  -{reverse,iconic}
-  '-background:background color:_x_color'
-  '-bd:border color:_x_color'
-  '-bg:background color:_x_color'
-  '-bordercolor:border color:_x_color'
-  '-borderwidth:border width:_x_borderwidth'
-  '-bw:border width:_x_borderwidth'
-  '-display:display:_x_display'
-  '-fg:foreground color:_x_color'
-  '-font:font:_x_font'
-  '-fn:font:_x_font'
-  '-foreground:foreground color:_x_color'
-  '-geometry:geometry:_x_geometry'
-  '-name:name:_x_name'
-  '-selectionTimeout:selection timeout (milliseconds):_x_selection_timeout'
-  '-title:title:_x_title'
-  '-xnllanguage:locale:_x_locale'
-  '*-xrm:resource:_x_resource'
-  '-xtsessionID:session ID:_xt_session_id'
-)
-
-long=$argv[(I)--]
-if (( long )); then
-  argv[long]=( "$xargs[@]" -- )
-else
-  set -- "$@" "$xargs[@]"
-fi
-
-opts=()
-while [[ $1 = -(O*|[CR]) ]]; do
-  opts=($opts $1)
-  [[ $1 = -R ]] && rawret=yes
-  shift
-done
-
-_arguments -R "$opts[@]" "$@"
-
-ret=$?
-
-if [[ "$ret" = 300 ]]; then
-  compstate[restore]=''
-  [[ -z $rawret ]] && ret=$(( nm == $compstate[nmatches] ))
-fi
-
-return ret