From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: Re: 3.1.6-dev-22
Date: Thu, 13 Apr 2000 10:07:14 +0200 (MET DST) [thread overview]
Message-ID: <200004130807.KAA12383@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Bart Schaefer"'s message of Wed, 12 Apr 2000 16:21:49 +0000
Bart Schaefer wrote:
> On Apr 12, 11:10am, Sven Wischnowsky wrote:
> } Subject: PATCH: Re: 3.1.6-dev-22
> }
> }
> } Peter Stephenson wrote:
> }
> } > Sven Wischnowsky wrote:
> } > > So, I would like to make the question: should we remove it?
> } >
> } > If even the completion system as it is doesn't need it, I think it's a good
> } > bet that commenting out at this stage won't cause any problems.
> }
> } Here is the patch. Lotsa `#if's.
>
> I slightly disapprove of using `#if 0' when it's scattered around like
> that. Suppose we ever want to re-enable it: How does someone other than
> Sven know which `#if 0' to remove and which ones to leave behind?
>
> Not a big deal right now because there aren't any other #if in that file,
> but ... perhaps put a comment on each #if line?
No problem either.
Bye
Sven
Index: Src/Zle/compcore.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/compcore.c,v
retrieving revision 1.7
diff -u -r1.7 compcore.c
--- Src/Zle/compcore.c 2000/04/12 13:08:08 1.7
+++ Src/Zle/compcore.c 2000/04/13 08:06:30
@@ -63,6 +63,7 @@
mod_export int insmnum, insspace;
#if 0
+/* group-numbers in compstate[insert] */
int insgnum, insgroup; /* mod_export */
#endif
@@ -754,11 +755,13 @@
useline = 2, usemenu = 0;
else if (idigit(*compinsert)) {
#if 0
+ /* group-numbers in compstate[insert] */
char *m;
#endif
useline = 1; usemenu = 3;
insmnum = atoi(compinsert);
#if 0
+ /* group-numbers in compstate[insert] */
if ((m = strchr(compinsert, ':'))) {
insgroup = 1;
insgnum = atoi(m + 1);
@@ -778,6 +781,7 @@
if (useline && (p = strchr(compinsert, ':'))) {
insmnum = atoi(++p);
#if 0
+ /* group-numbers in compstate[insert] */
if ((p = strchr(p, ':'))) {
insgroup = 1;
insgnum = atoi(p + 1);
@@ -851,6 +855,7 @@
isuf = NULL;
insmnum = 1;
#if 0
+ /* group-numbers in compstate[insert] */
insgnum = 1;
insgroup = 0;
#endif
Index: Src/Zle/compctl.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/compctl.c,v
retrieving revision 1.2
diff -u -r1.2 compctl.c
--- Src/Zle/compctl.c 2000/04/12 09:12:16 1.2
+++ Src/Zle/compctl.c 2000/04/13 08:06:30
@@ -1814,6 +1814,7 @@
isuf = NULL;
insmnum = 1;
#if 0
+ /* group-numbers in compstate[insert] */
insgnum = 1;
insgroup = 0;
#endif
Index: Src/Zle/compresult.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/compresult.c,v
retrieving revision 1.6
diff -u -r1.6 compresult.c
--- Src/Zle/compresult.c 2000/04/13 08:05:57 1.6
+++ Src/Zle/compresult.c 2000/04/13 08:06:31
@@ -1077,6 +1077,7 @@
minfo.cur = NULL;
}
#if 0
+ /* group-numbers in compstate[insert] */
if (insgroup) {
insgnum = comp_mod(insgnum, lastpermgnum);
for (minfo.group = amatches;
@@ -1101,6 +1102,7 @@
return;
}
#if 0
+ /* group-numbers in compstate[insert] */
}
#endif
mc = (minfo.group)->matches + insmnum;
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~2000-04-13 8:07 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-04-13 8:07 Sven Wischnowsky [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-04-12 9:10 Sven Wischnowsky
2000-04-12 16:21 ` Bart Schaefer
2000-04-11 15:04 Sven Wischnowsky
2000-04-11 12:37 Sven Wischnowsky
2000-04-11 8:28 Sven Wischnowsky
2000-04-11 12:32 ` Adam Spiers
2000-04-11 15:48 ` Bart Schaefer
2000-04-11 20:19 ` Peter Stephenson
2000-04-11 7:54 Sven Wischnowsky
2000-04-11 8:14 ` Andrej Borsenkow
2000-04-11 14:58 ` Bart Schaefer
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=200004130807.KAA12383@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).