summary refs log tree commit diff
path: root/Functions/Misc
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-07-11 19:12:22 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-07-11 19:12:22 +0000
commitffabab4e74ae5b7e61550c528b8d19f6af6217e3 (patch)
tree666ce4565e2740f1f4bc4e1c07a2b188004f38f6 /Functions/Misc
parent1b1712d065fae345cc5658318757348e9fb298d0 (diff)
downloadzsh-ffabab4e74ae5b7e61550c528b8d19f6af6217e3.tar.gz
zsh-ffabab4e74ae5b7e61550c528b8d19f6af6217e3.tar.xz
zsh-ffabab4e74ae5b7e61550c528b8d19f6af6217e3.zip
25276: use autoload -z for zsh-autoload functions
Diffstat (limited to 'Functions/Misc')
-rw-r--r--Functions/Misc/sticky-note2
-rw-r--r--Functions/Misc/tetris2
-rw-r--r--Functions/Misc/xtermctl2
-rw-r--r--Functions/Misc/zed4
4 files changed, 5 insertions, 5 deletions
diff --git a/Functions/Misc/sticky-note b/Functions/Misc/sticky-note
index 53c786c60..6286d61a4 100644
--- a/Functions/Misc/sticky-note
+++ b/Functions/Misc/sticky-note
@@ -4,7 +4,7 @@
 # $HOME/.zsticky).  The number of notes stored is STICKYSIZE (1000).
 #
 # Load this file as a function:
-#    autoload -U sticky-note
+#    autoload -Uz sticky-note
 #
 # It may then be bound as a widget:
 #    zle -N sticky-note
diff --git a/Functions/Misc/tetris b/Functions/Misc/tetris
index a9d367964..697f2c74d 100644
--- a/Functions/Misc/tetris
+++ b/Functions/Misc/tetris
@@ -1,7 +1,7 @@
 # Someone once accused zsh of not being as complete as Emacs, because it
 # lacks Tetris and an adventure game.
 #
-# autoload -U tetris
+# autoload -Uz tetris
 # zle -N tetris
 # bindkey '...' tetris
 
diff --git a/Functions/Misc/xtermctl b/Functions/Misc/xtermctl
index c771fc39a..040838190 100644
--- a/Functions/Misc/xtermctl
+++ b/Functions/Misc/xtermctl
@@ -1,7 +1,7 @@
 # Put standard xterm/dtterm window control codes in shell parameters for
 # easy use.  Note that some terminals do not support all combinations.
 
-# autoload -U xtermctl ; xtermctl
+# autoload -Uz xtermctl ; xtermctl
 # xtermctl --explain
 
 # Run once to set up; implements two functions:
diff --git a/Functions/Misc/zed b/Functions/Misc/zed
index 9086a1c4c..b43b44b6b 100644
--- a/Functions/Misc/zed
+++ b/Functions/Misc/zed
@@ -56,7 +56,7 @@ if (( bind )) || ! bindkey -M zed >&/dev/null; then
 
   # Make zed-set-file-name available.
   # Assume it's in fpath; there's no error at this point if it isn't
-  autoload -U zed-set-file-name
+  autoload -Uz zed-set-file-name
   zle -N zed-set-file-name
 fi
 if (( bind )) || ! bindkey -M zed-vicmd >&/dev/null; then
@@ -74,7 +74,7 @@ if ((fun)) then
   var="$(functions $1)"
   # If function is undefined but autoloadable, load it
   if [[ $var = *\#\ undefined* ]] then
-      var="$(autoload +X $1; functions $1)"
+      ar="$(autoload +X $1; functions $1)"
   elif [[ -z $var ]] then
     var="$1() {
 }"