From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.help Subject: Wrap predefined text around region Date: Thu, 02 Dec 2010 16:05:18 -0600 Organization: Still searching... Message-ID: <87fwufhlup.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291327567 1803 80.91.229.12 (2 Dec 2010 22:06:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 2 Dec 2010 22:06:07 +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 Dec 02 23:06:03 2010 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.69) (envelope-from ) id 1POHHu-0006ko-FT for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Dec 2010 23:06:02 +0100 Original-Received: from localhost ([127.0.0.1]:42461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POHHu-0003Vq-2C for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Dec 2010 17:06:02 -0500 Original-Received: from [140.186.70.92] (port=54499 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POHHU-0003Vf-FX for help-gnu-emacs@gnu.org; Thu, 02 Dec 2010 17:05:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1POHHT-00053y-5G for help-gnu-emacs@gnu.org; Thu, 02 Dec 2010 17:05:36 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:44364) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1POHHS-00053P-VX for help-gnu-emacs@gnu.org; Thu, 02 Dec 2010 17:05:35 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1POHHQ-0006Uu-Rf for help-gnu-emacs@gnu.org; Thu, 02 Dec 2010 23:05:32 +0100 Original-Received: from c-98-215-178-110.hsd1.in.comcast.net ([98.215.178.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Dec 2010 23:05:32 +0100 Original-Received: from reader by c-98-215-178-110.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Dec 2010 23:05:32 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 27 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-98-215-178-110.hsd1.in.comcast.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) Cancel-Lock: sha1:USV0mnZ5TXKz9Gow2Padbh4ehcU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:75484 Archived-At: Can anyone show an example of how to do something like this: I want to wrap this: # [HP 101202_15:55:07 # ] Around the selected text... that is, select some text and press a key combo ... voila... its now surrounded by: # [HP 101202_15:55:07 # ] Over the yrs I've acquired a fairly lengthy .emacs mostly by theft from more skilled people. Coding something like that is clear out of my skill set. I use lots of `skeleton' things for inserting various predefined texts but don't know how to make that happen to selected region. Usually given an example, I've been able to hack it up to my needs.