From: Mario Lang <mlang@delysid.org>
Subject: Re: enhancement to M-x telnet
Date: Fri, 16 Apr 2004 11:01:44 +0200 [thread overview]
Message-ID: <87d66870uf.fsf@lexx.delysid.org> (raw)
In-Reply-To: <m3d66989mk.fsf@kfs-l.imdomain.dk> (Kim F. Storm's message of "15 Apr 2004 18:54:27 +0200")
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
Have you thought about the implication of IPv6 an this implementation?
I know that Emacs's process.c can actually handle IPv6 connections
already. What if a user wants to enter an IPv6 address.
Your current code will do something very wrong in this case I think.
> An alternative interface would be to specify the port number as a numeric
> prefix arg, but that seems rather obscure IMO.
What about something like
(interactive (list (read-string "Host: ")
(if current-prefix-arg
(read-string "Port: ")
"23")))
--
CYa,
Mario | Debian Developer <URL:http://debian.org/>
| Get my public key via finger mlang@db.debian.org
| 1024D/7FC1A0854909BCCDBE6C102DDFFC022A6B113E44
next prev parent reply other threads:[~2004-04-16 9:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-15 16:54 enhancement to M-x telnet Kim F. Storm
2004-04-15 15:45 ` Andreas Schwab
2004-04-16 10:43 ` Kim F. Storm
2004-04-16 9:01 ` Mario Lang [this message]
2004-04-16 13:35 ` Kim F. Storm
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d66870uf.fsf@lexx.delysid.org \
--to=mlang@delysid.org \
/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.savannah.gnu.org/cgit/emacs.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).