From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: Pipe bash file contents to shell Date: Thu, 30 Jun 2011 19:49:23 +0200 Message-ID: <4E0CB723.1020409@easy-emacs.de> References: <31963679.post@talk.nabble.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: dough.gmane.org 1309463978 17987 80.91.229.12 (30 Jun 2011 19:59:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 30 Jun 2011 19:59:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 30 21:59:35 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QcNOf-00039P-Nx for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Jun 2011 21:59:33 +0200 Original-Received: from localhost ([::1]:56040 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcNOe-000807-CS for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Jun 2011 15:59:32 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52005) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcLMs-0006UL-IW for help-gnu-emacs@gnu.org; Thu, 30 Jun 2011 13:49:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QcLMq-0008Cp-Fg for help-gnu-emacs@gnu.org; Thu, 30 Jun 2011 13:49:34 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.186]:62947) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcLMp-0008CR-UM for help-gnu-emacs@gnu.org; Thu, 30 Jun 2011 13:49:32 -0400 Original-Received: from [192.168.178.27] (brln-4dbc69f0.pool.mediaWays.net [77.188.105.240]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0MaG3Y-1Qrouo040u-00Joif; Thu, 30 Jun 2011 19:49:30 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.17) Gecko/20110414 SUSE/3.1.10 Thunderbird/3.1.10 In-Reply-To: <31963679.post@talk.nabble.com> X-Provags-ID: V02:K0:QJFtHzqAW4ApWpt+w5Upx/tC6T5N50FZsvhyxZLfAWl sOCQl2t+ETZc3PM9+wyhIRcXGuDNUHexwX90PBTkP8+I78Lygq 0QVfeKhEelacl4iJ91B9BJ0rFSbPmJFwSKXTdrTOuiNJZ2+ZBQ CjHA/6n3fKzx+akd0JTeBkcnzjlfi081VRIT/VJsKxY3UAzd8q aZrmCeBoiPFxygbm/qPzat9N4W3L6kE7Ti8o9Qtgq0= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.227.126.186 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81460 Archived-At: Am 30.06.2011 16:33, schrieb linuxfever: > > Hello all, > > I was wondering whether there is a way to pass contents of a bash script > file into a shell buffer in Emacs (23.2). For example, if my bash file > contains a single line "ls -al", I would like to highlight that line, and by > pressing a keybind, have the command executed and its output shown in the > shell buffer. > > Is it at all possible? Thanks for any suggestions! > > shell-command-on-region