From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: enhancement to M-x telnet Date: 16 Apr 2004 12:43:02 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1082105512 24184 80.91.224.253 (16 Apr 2004 08:51:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Apr 2004 08:51:52 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Apr 16 10:51:47 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BEP4d-0005b7-00 for ; Fri, 16 Apr 2004 10:51:47 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BEP4c-0002Ay-00 for ; Fri, 16 Apr 2004 10:51:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BEOzc-0001NK-P7 for emacs-devel@quimby.gnus.org; Fri, 16 Apr 2004 04:46:36 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BEOxD-0000bu-FD for emacs-devel@gnu.org; Fri, 16 Apr 2004 04:44:07 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BEOwf-0000L8-4F for emacs-devel@gnu.org; Fri, 16 Apr 2004 04:44:05 -0400 Original-Received: from [212.88.64.25] (helo=mail-relay.sonofon.dk) by monty-python.gnu.org with smtp (Exim 4.30) id 1BEOwe-0000Kq-9w for emacs-devel@gnu.org; Fri, 16 Apr 2004 04:43:32 -0400 Original-Received: (qmail 32602 invoked from network); 16 Apr 2004 08:43:21 -0000 Original-Received: from unknown (HELO kfs-l.imdomain.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 16 Apr 2004 08:43:21 -0000 Original-To: Andreas Schwab In-Reply-To: Original-Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:21736 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:21736 Andreas Schwab writes: > storm@cua.dk (Kim F. Storm) writes: > > > I frequently use telnet to check connections to other hosts, and as such I need > > to specify an alternative port number to connect to. > > > > The following patch allows you to append the port number to the hostname, > > e.g. > > M-x telnet RET gnu.org:80 RET > > > > An alternative interface would be to specify the port number as a numeric > > prefix arg, but that seems rather obscure IMO. > > How about letting it read the port interactively when called with a prefix > arg? Or maybe C-u to read interactively, other numeric prefixes specify > the port directly. This would allow implementing completion on port > names. Yes, that's also a viable approach... (even without port name completion). WDOT? -- Kim F. Storm http://www.cua.dk