about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 14:36:36 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 14:36:36 +0000
commit956ef612e2a797a3f0325cafb034b654b9e8922f (patch)
tree723d823c481356dad3a12f48aa62fee2362755a7
parent610a6eb841d997c633fd6ffb52faa006396a5ceb (diff)
downloadzsh-956ef612e2a797a3f0325cafb034b654b9e8922f.tar.gz
zsh-956ef612e2a797a3f0325cafb034b654b9e8922f.tar.xz
zsh-956ef612e2a797a3f0325cafb034b654b9e8922f.zip
cleanup after function move
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Type/_dict_words17
-rwxr-xr-xConfig/installfns.sh4
-rw-r--r--Functions/Compctl/.distfiles4
-rw-r--r--Src/zsh.mdd2
5 files changed, 29 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 199be0528..d35f5c34d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2001-04-02  Sven Wischnowsky  <wischnow@zsh.org>
 
+	* Config/installfns.sh, Src/zsh.mdd: more cleanup after
+	function moving
+
 	* unposted, kind of: moving functions and scripts around, renaming
 	them, accidentally deleted them and re-installing them, etc.
 
diff --git a/Completion/Unix/Type/_dict_words b/Completion/Unix/Type/_dict_words
new file mode 100644
index 000000000..44448e8f8
--- /dev/null
+++ b/Completion/Unix/Type/_dict_words
@@ -0,0 +1,17 @@
+#autoload
+
+local dict dictresult dictwords j expl
+
+[[ -z $words[CURRENT] ]] && return 1
+
+dictresults=(${${(f)${"$(dict -m $words[CURRENT])":gs/    
+  / /}}:#[0-9]*matches found})
+
+for j in ${dictresults}
+do
+  dict=${j%%:*}
+  dictwords=(${(z)j#*:})
+
+  _wanted $dict expl "words from $dict" \
+       compadd -M 'm:{a-zA-Z}={A-Za-z} r:|=*' -a "$@" - dictwords
+done
diff --git a/Config/installfns.sh b/Config/installfns.sh
index 90258c7dd..63b981a44 100755
--- a/Config/installfns.sh
+++ b/Config/installfns.sh
@@ -15,6 +15,10 @@ for file in $allfuncs; do
   if test -f $sdir_top/$file; then
     if test x$FUNCTIONS_SUBDIRS != x -a x$FUNCTIONS_SUBDIRS != xno; then
       case "$file" in
+      Completion/comp*)
+        subdir="`echo $file | sed -e 's%/[^/]*/[^/]*$%%'`"
+        instdir="$fndir/Completion"
+        ;;
       Completion/*)
         subdir="`echo $file | sed -e 's%/[^/]*/[^/]*$%%'`"
         instdir="$fndir/$subdir"
diff --git a/Functions/Compctl/.distfiles b/Functions/Compctl/.distfiles
new file mode 100644
index 000000000..d4eea91f5
--- /dev/null
+++ b/Functions/Compctl/.distfiles
@@ -0,0 +1,4 @@
+DISTFILES_SRC='
+.distfiles
+cdmatch    cdmatch2   multicomp
+'
diff --git a/Src/zsh.mdd b/Src/zsh.mdd
index 555b2afe1..e2b7b91b5 100644
--- a/Src/zsh.mdd
+++ b/Src/zsh.mdd
@@ -49,7 +49,7 @@ zshpaths.h: Makemod $(CONFIG_INCS)
 	    $(dir_top)/config.modules | sed -e '/^#/d' -e '/ link=no/d' \
 	    -e 's/^.* functions=//'`"; \
 	    fpath_tmp=`for f in $$fpath_tmp; do \
-	      echo $$f | sed -e 's%^Functions/%%' -e 's%/[^/]*$$%%'; \
+	      echo $$f | sed -e 's%^Functions/%%' -e 's%/[^/]*$$%%' -e 's%/\*%%'; \
 	    done | sort | uniq`; \
 	    fpath_tmp=`echo $$fpath_tmp | sed 's/ /\", \"/g'`; \
 	    echo "#define FPATH_SUBDIRS { \"$$fpath_tmp\" }" \