From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: _rcs (was Re: still confused about completion and matching)
Date: Mon, 6 Nov 2000 17:15:09 +0000 [thread overview]
Message-ID: <1001106171510.ZM12421@candle.brasslantern.com> (raw)
In-Reply-To: <200011061534.KAA29444@soup.ads.apexinc.com>
On Nov 6, 10:34am, E. Jay Berkenbilt wrote:
} Subject: Re: still confused about completion and matching
}
} It seems that the changes have still not been committed to the
} repository. Is this because we're still waiting for reactions from
} people who are not using the new patches or because we forgot or for
} some other reason?
I rather suspect it's just because Sven is busy.
} I still haven't had time to write my smbclient completion function.
} I've also added rewriting _rcs to use _arguments to my "eventually"
} list unless someone else gets to it first. As brought up by another
} user (Vincent Lefevre) the current behavior doesn't handle the more
} subtle aspects of rcs's behavior very well.
Hrm, I was just looking at the current _rcs. It begins:
local nm=$compstate[nmatches] cmd="${words[1]:t}" ret=1
if [[ $compstate[nmatches] -eq nm && -d RCS && $cmd != ci ]]; then
[[ $compstate[nmatches] -eq nm ]] can't possibly be false. There used to
be a call to _files *before* that test, but it got moved to the end by
users/3472.
I played for a few minutes with ${${((s:/:)words[(r)-x*]:s/-x//}:-,v} but
concluded I wasn't going to get it right in the time I have to spare. So
consider that a hint towards your rewrite.
Index: Completion/User/_rcs
===================================================================
@@ -1,8 +1,8 @@
#compdef co ci rcs
-local nm=$compstate[nmatches] cmd="${words[1]:t}" ret=1
+local cmd="${words[1]:t}" ret=1
-if [[ $compstate[nmatches] -eq nm && -d RCS && $cmd != ci ]]; then
+if [[ -d RCS && $cmd != ci ]]; then
local rep expl
rep=(RCS/*,v(:t:s/\,v//))
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
prev parent reply other threads:[~2000-11-06 17:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-25 7:50 still confused about completion and matching Sven Wischnowsky
2000-11-06 15:34 ` E. Jay Berkenbilt
2000-11-06 17:15 ` Bart Schaefer [this message]
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=1001106171510.ZM12421@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--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).