1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 05:16:05 +01:00

c.f. users/15202: use "autoload -Uz" consistently

This commit is contained in:
Peter Stephenson 2010-07-28 13:33:52 +00:00
parent 278a892888
commit 10c2f225fd
16 changed files with 37 additions and 22 deletions

View file

@ -1,3 +1,18 @@
2010-07-28 Peter Stephenson <pws@csr.com>
* as described in users/15202: Functions/Misc/run-help,
Functions/Newuser/zsh-newuser-install,
Functions/Prompts/promptinit, Functions/TCP/tcp_open,
Functions/Zftp/zfinit, Functions/Zle/down-case-word-match,
Functions/Zle/forward-word-match,
Functions/Zle/history-pattern-search,
Functions/Zle/insert-composed-char, Functions/Zle/kill-word-match,
Functions/Zle/match-words-by-style,
Functions/Zle/select-word-style,
Functions/Zle/transpose-words-match,
Functions/Zle/up-case-word-match, Functions/Zle/zed-set-file-name:
Use "autoload -Uz" consistently throughout distributed functions.
2010-07-26 Peter Stephenson <pws@csr.com>
* 28102: Src/Zle/computil.c: use lstat() when checking
@ -13423,5 +13438,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.5036 $
* $Revision: 1.5037 $
*****************************************************

View file

@ -5,7 +5,7 @@
# Install this function by placing it in your FPATH and then
# adding to your .zshrc the lines:
# unalias run-help
# autoload run-help
# autoload -Uz run-help
#
emulate -RL zsh

View file

@ -1081,7 +1081,7 @@ ${install_state[options]:+ ($install_state[options].)}
if [[ $1 != -f ]]; then
print -r "The function will not be run in future, but you can run
it yourself as follows:
autoload $myname
autoload -Uz $myname
$myname -f
The code added to $zdmsg/.zshrc is marked by the lines

View file

@ -22,7 +22,7 @@ promptinit () {
name="$match[1]"
if [[ -r "$theme" ]]; then
prompt_themes=($prompt_themes $name)
autoload -U prompt_${name}_setup
autoload -Uz prompt_${name}_setup
else
print "Couldn't read file $theme containing theme $name."
fi

View file

@ -57,9 +57,9 @@ setopt extendedglob cbases
zmodload -i zsh/net/tcp || return 1
zmodload -i zsh/zutil
autoload -U tcp_alias tcp_close tcp_command tcp_expect tcp_fd_handler
autoload -U tcp_log tcp_output tcp_proxy tcp_read tcp_rename tcp_send
autoload -U tcp_sess tcp_spam tcp_talk tcp_wait tcp_point tcp_shoot
autoload -Uz tcp_alias tcp_close tcp_command tcp_expect tcp_fd_handler
autoload -Uz tcp_log tcp_output tcp_proxy tcp_read tcp_rename tcp_send
autoload -Uz tcp_sess tcp_spam tcp_talk tcp_wait tcp_point tcp_shoot
# TCP_SECONDS_START is only set if we override TCP_SECONDS locally,
# so provide a global value for convenience. Should probably always be 0.

View file

@ -25,10 +25,10 @@ alias zfls='noglob zfls'
alias zfdir='noglob zfdir'
alias zfuget='noglob zfuget'
autoload -U zfanon zfautocheck zfcd zfcd_match zfcget zfclose zfcput
autoload -U zfdir zffcache zfgcp zfget zfget_match zfgoto zfhere zfinit zfls
autoload -U zfmark zfopen zfparams zfpcp zfput zfrglob zfrtime zfsession
autoload -U zfstat zftp_chpwd zftp_progress zftransfer zftype zfuget zfuput
autoload -Uz zfanon zfautocheck zfcd zfcd_match zfcget zfclose zfcput
autoload -Uz zfdir zffcache zfgcp zfget zfget_match zfgoto zfhere zfinit zfls
autoload -Uz zfmark zfopen zfparams zfpcp zfput zfrglob zfrtime zfsession
autoload -Uz zfstat zftp_chpwd zftp_progress zftransfer zftype zfuget zfuput
#
# zftp completions: only use these if new-style completion is not

View file

@ -1,7 +1,7 @@
emulate -L zsh
setopt extendedglob
autoload match-words-by-style
autoload -Uz match-words-by-style
local curcontext=":zle:$WIDGET" word
local -a matched_words

View file

@ -1,7 +1,7 @@
emulate -L zsh
setopt extendedglob
autoload match-words-by-style
autoload -Uz match-words-by-style
local curcontext=":zle:$WIDGET" word
local -a matched_words

View file

@ -13,7 +13,7 @@ emulate -L zsh
setopt extendedglob
# Load required features.
autoload -U read-from-minibuffer
autoload -Uz read-from-minibuffer
zmodload -i zsh/parameter
local REPLY dir new

View file

@ -142,7 +142,7 @@ fi
if (( ${+zsh_accented_chars} == 0 )); then
# Save quite a lot of memory by running and then erasing
# the function that defines the characters.
autoload -U define-composed-chars
autoload -Uz define-composed-chars
define-composed-chars
unfunction define-composed-chars
fi

View file

@ -1,7 +1,7 @@
emulate -L zsh
setopt extendedglob
autoload match-words-by-style
autoload -Uz match-words-by-style
local curcontext=":zle:$WIDGET" word done
local -a matched_words

View file

@ -73,7 +73,7 @@ local nwords MATCH MBEGIN MEND subwordrange
local curcontext=${curcontext:-:zle:match-words-by-style}
autoload -U match-word-context
autoload -Uz match-word-context
match-word-context
while getopts "w:s:c:C:r:" opt; do

View file

@ -8,13 +8,13 @@ word_functions=(backward-kill-word backward-word
forward-word kill-word
transpose-words up-case-word)
[[ -z $1 ]] && autoload read-from-minibuffer
[[ -z $1 ]] && autoload -Uz read-from-minibuffer
local REPLY detail f wordstyle
if ! zle -l $word_functions[1]; then
for f in $word_functions; do
autoload -U $f-match
autoload -Uz $f-match
zle -N $f $f-match
done
fi

View file

@ -11,7 +11,7 @@
# on X would be turned into `barXfoo' with the cursor still on the X,
# regardless of what the character X is.
autoload -z match-words-by-style
autoload -Uz match-words-by-style
local curcontext=":zle:$WIDGET" skip
local -a matched_words

View file

@ -1,7 +1,7 @@
emulate -L zsh
setopt extendedglob
autoload match-words-by-style
autoload -Uz match-words-by-style
local curcontext=":zle:$WIDGET" word
local -a matched_words

View file

@ -1,6 +1,6 @@
emulate -L zsh
autoload -U read-from-minibuffer
autoload -Uz read-from-minibuffer
zle -K zed-normal-keymap