unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Tennis Smith" <tennis_smith@yahoo-remove-to-reply.com>
Subject: Re: telnet in buffer using elisp -- is this the best way?
Date: Sat, 10 Jul 2004 18:34:31 -0700	[thread overview]
Message-ID: <1089509546.369071@sj-nntpcache-5> (raw)
In-Reply-To: 7i8ydrzej1.fsf@neoscale.com

Hi Kin,

Thanks for the response. I like the approach. Couple additional questions
below.

-Tennis

<snip>
>
> (mapc
>  (lambda (x)
>    (fset (car x)
> (list 'lambda () (nth 1 x) '(interactive)
>        (nth 1 x) `(telnet ,(nth 1 x)) `(rename-buffer ,(nth 2 x)))))
>  '((5gw-con "10.10.10.58 2008" "ef-gw-5-con")
>    (5gw-con2 "10.10.10.58 2009" "ef-gw-5-con2")
>    (7gw "10.10.10.40" "ef-gw-7")))

How can I stuff the 10.10.10.58 addr in to variable so I only have to change
it in one place?
>
> You should M-: (info " (elisp) Top") if you want to find out how
> the above works.

Hmmm... I got "no match" on my machine for this. I typed:

alt-x
followed by:

: (info " (elisp) Top")

Maybe I'm misunderstanding what you're saying....
>
> -kin
>
<snip>

  reply	other threads:[~2004-07-11  1:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-10 18:44 telnet in buffer using elisp -- is this the best way? Tennis Smith
2004-07-10 21:51 ` Kai Grossjohann
2004-07-10 22:24 ` Kin Cho
2004-07-11  1:34   ` Tennis Smith [this message]
2004-07-11  8:25     ` Kai Grossjohann
2004-07-13  7:59 ` Tim X

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=1089509546.369071@sj-nntpcache-5 \
    --to=tennis_smith@yahoo-remove-to-reply.com \
    /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.
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).