From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: howto edit a script file and test the function at the same time? Date: Thu, 28 Sep 2006 08:40:30 -0600 Organization: IHS Message-ID: References: <1159321854.965884.91620@d34g2000cwd.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1159454671 4092 80.91.229.2 (28 Sep 2006 14:44:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 28 Sep 2006 14:44:31 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 28 16:44:29 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GSx6e-0004RY-0a for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Sep 2006 16:43:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GSx6d-0001dS-KK for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Sep 2006 10:43:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GSx5p-0001FI-T7 for help-gnu-emacs@gnu.org; Thu, 28 Sep 2006 10:42:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GSx5n-0001Du-Bs for help-gnu-emacs@gnu.org; Thu, 28 Sep 2006 10:42:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GSx5n-0001Dg-6q for help-gnu-emacs@gnu.org; Thu, 28 Sep 2006 10:42:27 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GSxAt-0004xA-A6 for help-gnu-emacs@gnu.org; Thu, 28 Sep 2006 10:47:43 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GSx4x-0003yC-ND for help-gnu-emacs@gnu.org; Thu, 28 Sep 2006 16:41:35 +0200 Original-Received: from 207.167.42.206 ([207.167.42.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Sep 2006 16:41:35 +0200 Original-Received: from ihs_4664 by 207.167.42.206 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Sep 2006 16:41:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 28 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.206 User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) In-Reply-To: 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: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:37697 Archived-At: Kevin Rodgers wrote: > emacs wrote: >> I should like to have clues how to implement a "function" there when I >> open a script file, >> a screen with two windows opens up, editing windows above and output >> windows below. >> I also bind a key say "F9", when I press on that key, it perform the >> execution by the script parser, >> all outputs is visable in the window belows. >> >> This script parser should also be a serial channel to a basic computer, >> so when I press a key, >> the string below the curser is transfer to the basic computer and the >> answer is return to the output window. >> >> Has anyone any ideers how this should be implemented or is it already >> implemented? > > (global-set-key [f9] 'executable-interpret) Better would be: (add-hook 'sh-mode-hook (lambda () (local-set-key [f9] 'executable-interpret))) -- Kevin