From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19820 invoked from network); 14 Sep 1999 08:34:59 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 14 Sep 1999 08:34:59 -0000 Received: (qmail 25294 invoked by alias); 14 Sep 1999 08:34:48 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7821 Received: (qmail 25282 invoked from network); 14 Sep 1999 08:34:42 -0000 Date: Tue, 14 Sep 1999 10:34:41 +0200 (MET DST) Message-Id: <199909140834.KAA26818@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: Tanaka Akira's message of 14 Sep 1999 03:20:15 +0900 Subject: Re: PATCH: _hosts, _hostports, _telnet and _socket Tanaka Akira wrote: > Hm. As Adam Spiers mentioned, relations between host-port aren't > special. And I found that `telnet' has `-l' option that specifies > `user'. I think the argument of `-l' should be considered when > completion. So, I prefer more general way to specify such relations. > > I made `_combination' and `_ports' and modified `_socket' and > `_telnet' to use them. > > # Is there a better name for `_combination'? At least it is generic enough to go into Base, I think. > Now `_telnet' can handle following 7 situations. > > ... This is nice, but a more powerful `_ports' would still be useful for all the other commands that use port numbers (_rpm, _mount, _nslookup, _ssh, _yp). Sometimes looking at the command name to decide which ports to suggest is enough, but sometimes we might want to look at other context information (this port forwarding thing in _ssh, for example). I don't have any ideas about all this, yet, I just thought I should mention it. And while I'm at it: we still need descriptions for the new parameters used and the `_combination' and `_regex_arguments' functions in the docs. (Btw, did I already ask if someone knows of other parameters used by the completion system that aren't documented in the config section of compsys.yo, yet?) Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de