From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Cave Subject: Re: small function suggestion (org-examplize-region) Date: Wed, 18 Mar 2009 05:35:40 +0000 (UTC) Message-ID: References: <87hc1sc9iw.fsf@gmail.com> <8287.1237340098@gamaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LjoRc-0003uY-PO for emacs-orgmode@gnu.org; Wed, 18 Mar 2009 01:36:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LjoRY-0003tm-VF for emacs-orgmode@gnu.org; Wed, 18 Mar 2009 01:36:00 -0400 Received: from [199.232.76.173] (port=47754 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LjoRY-0003tj-Ny for emacs-orgmode@gnu.org; Wed, 18 Mar 2009 01:35:56 -0400 Received: from main.gmane.org ([80.91.229.2]:44095 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LjoRY-0004K8-9V for emacs-orgmode@gnu.org; Wed, 18 Mar 2009 01:35:56 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LjoRT-0005CK-G3 for emacs-orgmode@gnu.org; Wed, 18 Mar 2009 05:35:52 +0000 Received: from 65.204.206.129 ([65.204.206.129]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Mar 2009 05:35:51 +0000 Received: from charles_cave by 65.204.206.129 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Mar 2009 05:35:51 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Nick Dokos hp.com> writes: > My emacs (GNU Emacs 23.0.91.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9) > of 2009-03-06 on alphaville.usa.hp.com) doesn't seem to have prefix-region - > where does it come from? I forgot that this function is in my .emacs file. I always thought it was built in to GNU Emacs. Here it is.... (defun prefix-region (prefix) "Add a prefix string to each line between mark and point." (interactive "sPrefix string: ") (if prefix (let ((count (count-lines (mark) (point)))) (goto-char (min (mark) (point))) (while (> count 0) (setq count (1- count)) (beginning-of-line 1) (insert prefix) (end-of-line 1) (forward-char 1)))))