From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Tennis Smith" Newsgroups: gmane.emacs.help Subject: Re: telnet in buffer using elisp -- is this the best way? Date: Sat, 10 Jul 2004 18:34:31 -0700 Organization: self Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <1089509546.369071@sj-nntpcache-5> References: <1089484878.512760@sj-nntpcache-5> <7i8ydrzej1.fsf@neoscale.com> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1089509882 2514 80.91.224.253 (11 Jul 2004 01:38:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 11 Jul 2004 01:38:02 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 11 03:37:54 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BjTHt-0003jo-00 for ; Sun, 11 Jul 2004 03:37:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BjTK9-00080A-5i for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Jul 2004 21:40:13 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help X-Newsreader: Microsoft Outlook Express 5.50.4922.1500 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 Cache-Post-Path: sj-nntpcache-5!unknown@128.107.175.238 X-Cache: nntpcache 2.4.0b2 (see http://www.nntpcache.org/) Original-X-Complaints-To: abuse@supernews.com Original-Lines: 38 Original-Xref: shelby.stanford.edu gnu.emacs.help:124230 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19563 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19563 Hi Kin, Thanks for the response. I like the approach. Couple additional questions below. -Tennis > > (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 >