From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.help Subject: Re: Bash Script Editing Mode? Date: Thu, 07 Aug 2008 22:53:58 +0200 Message-ID: <489B60E6.8020402@gmail.com> References: <361d08d2-b456-49c9-a578-53d1aaaf0b0f@a8g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1218142481 12361 80.91.229.12 (7 Aug 2008 20:54:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Aug 2008 20:54:41 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: formido Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 07 22:55:32 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KRCW6-0004Jr-NU for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Aug 2008 22:55:26 +0200 Original-Received: from localhost ([127.0.0.1]:45992 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRCVB-0005eN-A1 for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Aug 2008 16:54:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KRCUs-0005bz-Hy for help-gnu-emacs@gnu.org; Thu, 07 Aug 2008 16:54:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KRCUr-0005ab-30 for help-gnu-emacs@gnu.org; Thu, 07 Aug 2008 16:54:10 -0400 Original-Received: from [199.232.76.173] (port=34357 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRCUr-0005aS-0I for help-gnu-emacs@gnu.org; Thu, 07 Aug 2008 16:54:09 -0400 Original-Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]:60909) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KRCUq-0007uQ-CZ for help-gnu-emacs@gnu.org; Thu, 07 Aug 2008 16:54:08 -0400 Original-Received: from c83-254-151-176.bredband.comhem.se ([83.254.151.176]:59481 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KRCUo-0003pr-8Z; Thu, 07 Aug 2008 22:54:06 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: <361d08d2-b456-49c9-a578-53d1aaaf0b0f@a8g2000prf.googlegroups.com> X-Antivirus: avast! (VPS 080807-0, 2008-08-07), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.176 X-Scan-Result: No virus found in message 1KRCUo-0003pr-8Z. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1KRCUo-0003pr-8Z 8ac1ffdde81443147b013cf1698f8aac X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:56257 Archived-At: formido wrote: > There's a shell mode, but it has a prompt and doesn't help you > incrementally create a shell script as efficiently as it could, unless > I'm missing something. Is there any shell script mode that works more > like the elisp, python, or erlang repls, where you can execute your > choice of several lines at once and you can go back and edit and > execute the lines in situ? If I write a bash function, editing and > reloading the function is a painful process. I'm looking for something > a little bit like the Mac's BBEdit shell worksheets (only better). > > I considered altering the usual shell mode, but it would take more > than slight edits, so I'm hoping something's already out there. For > example, one should be able to go back to a function, tweak it, and > reload with a minimum of keyboard fuss. You can search for available commands from the help menu. Major modes are commands so you can use the menu entry Help Search Documentation Find Commands by Name I guessed that such a major mode would match ^sh.*-mode$ and found some that might help you (I am not sure).