From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: sfcontext for completion widgets
Date: Thu, 28 Jan 1999 18:06:20 +0100 (MET) [thread overview]
Message-ID: <199901281706.SAA06951@beta.informatik.hu-berlin.de> (raw)
Thanks to Bart's last question I realised that I forgot to define a
shell function context for completion widgets.
Bye
Sven
--- os/zsh.h Thu Jan 28 15:49:19 1999
+++ Src/zsh.h Thu Jan 28 18:03:03 1999
@@ -780,6 +780,7 @@
#define SFC_HOOK 2 /* one of the special functions */
#define SFC_WIDGET 3 /* user defined widget */
#define SFC_COMPLETE 4 /* called from completion code */
+#define SFC_CWIDGET 5 /* new style completion widget */
/* node in list of function call wrappers */
--- os/Zle/zle_tricky.c Thu Jan 28 15:49:26 1999
+++ Src/Zle/zle_tricky.c Thu Jan 28 18:04:57 1999
@@ -3199,7 +3199,7 @@
if ((list = getshfunc(fn)) != &dummy_list) {
LinkList args = newlinklist();
char **p, *tmp;
- int aadd = 0, usea = 1, icf = incompfunc;
+ int aadd = 0, usea = 1, icf = incompfunc, osc = sfcontext;
addlinknode(args, fn);
@@ -3276,9 +3276,11 @@
incompfunc = 1;
startparamscope();
makecompparamsptr();
+ sfcontext = SFC_CWIDGET;
NEWHEAPS(compheap) {
doshfunc(fn, list, args, 0, 1);
} OLDHEAPS;
+ sfcontext = osc;
endparamscope();
lastcmd = 0;
incompfunc = icf;
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
reply other threads:[~1999-01-28 17:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199901281706.SAA06951@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).