Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Re: _urls, _netscape, a seg fault and new completion thoughts
- X-seq: zsh-workers 8256
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: Re: _urls, _netscape, a seg fault and new completion thoughts
- Date: Thu, 14 Oct 1999 16:39:39 +0200 (MET DST)
- In-reply-to: Tanaka Akira's message of 14 Oct 1999 23:28:28 +0900
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Tanaka Akira wrote:
> Maybe, a patch for _main_complete was forgotten in 8227.
Urgh, the ones for `_main_complete' and `compinit'.
I can only hope that this now applies cleanly.
Sorry!
Bye
Sven
--- Completion/Core/_main_complete.old Thu Oct 14 16:35:27 1999
+++ Completion/Core/_main_complete Thu Oct 14 16:35:44 1999
@@ -51,6 +51,13 @@
fi
done
+# Now call the post-functions.
+
+for post in "$comppostfuncs[@]"; do
+ "$post"
+done
+comppostfuncs=()
+
[[ "$compconfig[last_prompt]" = always ]] && compstate[last_prompt]=yes
_lastcomp=( "${(@kv)compstate}" )
--- Completion/Core/compinit.old Thu Oct 14 16:37:27 1999
+++ Completion/Core/compinit Wed Oct 13 10:12:17 1999
@@ -112,6 +112,11 @@
compconfig[correct_prompt]='correct to:'
(( ${+compconfig[completer]} )) || compconfig[completer]=_complete
+# This can hold names of functions that are to be called after all
+# matches have been generated.
+
+comppostfuncs=()
+
# This function is used to register or delete completion functions. For
# registering completion functions, it is invoked with the name of the
# function as it's first argument (after the options). The other
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author