From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steve Revilak Newsgroups: gmane.emacs.help Subject: Re: external script inserting text at point Date: Sun, 29 Nov 2009 19:33:17 -0500 Message-ID: <20091130003317.GA1078@srevilak.net> References: <20091129234945.232DA166B07@mxperim4.sea5.speakeasy.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J/dobhs11T7y2rNN" X-Trace: ger.gmane.org 1259555895 1475 80.91.229.12 (30 Nov 2009 04:38:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Nov 2009 04:38:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 30 05:38:08 2009 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 1NEy1X-0002et-9g for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Nov 2009 05:38:07 +0100 Original-Received: from localhost ([127.0.0.1]:42578 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NEy1W-0005xi-Rm for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Nov 2009 23:38:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NEuCs-0007yz-6G for help-gnu-emacs@gnu.org; Sun, 29 Nov 2009 19:33:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NEuCn-0007yL-4C for help-gnu-emacs@gnu.org; Sun, 29 Nov 2009 19:33:33 -0500 Original-Received: from [199.232.76.173] (port=38870 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NEuCn-0007yD-0a for help-gnu-emacs@gnu.org; Sun, 29 Nov 2009 19:33:29 -0500 Original-Received: from mail7.sea5.speakeasy.net ([69.17.117.9]:56686) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NEuCm-0002st-K0 for help-gnu-emacs@gnu.org; Sun, 29 Nov 2009 19:33:28 -0500 Original-Received: (qmail 16551 invoked from network); 30 Nov 2009 00:33:24 -0000 Original-Received: from pool-72-93-82-91.bstnma.fios.verizon.net (HELO srevilak.net) (srevilak@[72.93.82.91]) (envelope-sender ) by mail7.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 30 Nov 2009 00:33:24 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.19 (2009-01-05) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Sun, 29 Nov 2009 23:36:06 -0500 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:70244 Archived-At: --J/dobhs11T7y2rNN Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable LanX> I'm trying to trigger insertion of text-snippets into the current LanX> buffer/point from external scripts. If you don't mind shell typing commands into the mini-buffer, then shell-command (typically bound to M-!) will do what you want. To give an example, the text on the line below Sun Nov 29 19:28:15 EST 2009 Came from=20 ESC 1 M-! date RETURN (The prefix argument inserts command output at point, as opposed to inserting the command output into a separate buffer.) Steve --J/dobhs11T7y2rNN Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (Darwin) iEYEARECAAYFAksTEs0ACgkQX7YJI4BuyDQUBACg19TRFiB8mWFb+JOPEiEXVp6c OLwAoNr6syAFk0ATVcP/MGlU14MON86S =YC3t -----END PGP SIGNATURE----- --J/dobhs11T7y2rNN--