diff options
| author | Peter Stephenson <pws@zsh.org> | 2017-01-11 11:26:13 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@zsh.org> | 2017-01-11 11:26:13 +0000 |
| commit | f26d1ba6b01a358c83f28219c7a01e546e84d2ee (patch) | |
| tree | 3e8cce9450fcb337c5a36d593efde62e1941c7fb /Src/zsh.h | |
| parent | 40305: fix some problems redisplaying command line after interrupt. (diff) | |
| download | zsh-f26d1ba6b01a358c83f28219c7a01e546e84d2ee.tar zsh-f26d1ba6b01a358c83f28219c7a01e546e84d2ee.tar.gz zsh-f26d1ba6b01a358c83f28219c7a01e546e84d2ee.tar.bz2 zsh-f26d1ba6b01a358c83f28219c7a01e546e84d2ee.tar.lz zsh-f26d1ba6b01a358c83f28219c7a01e546e84d2ee.tar.xz zsh-f26d1ba6b01a358c83f28219c7a01e546e84d2ee.tar.zst zsh-f26d1ba6b01a358c83f28219c7a01e546e84d2ee.zip | |
Add features associated with autoloading a function using an absolute
path.
-d defaults to normal fpath
-r remembers the path without actually loading. May be combined with -d.
-R does the same but it's an error if not found
-X can now take a directory path: this is used to output not yet loaded
functions that have an associated path.
Diffstat (limited to 'Src/zsh.h')
| -rw-r--r-- | Src/zsh.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1233,7 +1233,9 @@ struct cmdnam { struct shfunc { struct hashnode node; - char *filename; /* Name of file located in */ + char *filename; /* Name of file located in. + For not yet autoloaded file, name + of explicit directory, if not NULL. */ zlong lineno; /* line number in above file */ Eprog funcdef; /* function definition */ Eprog redir; /* redirections to apply */ @@ -1811,6 +1813,7 @@ struct tieddata { #define PM_UNALIASED (1<<13) /* do not expand aliases when autoloading */ #define PM_HIDE (1<<14) /* Special behaviour hidden by local */ +#define PM_CUR_FPATH (1<<14) /* (function): can use $fpath with filename */ #define PM_HIDEVAL (1<<15) /* Value not shown in `typeset' commands */ #define PM_TIED (1<<16) /* array tied to colon-path or v.v. */ #define PM_TAGGED_LOCAL (1<<16) /* (function): non-recursive PM_TAGGED */ |
