From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#7494: 24.0.50; Why is `prefix-region' in a library by itself? Date: Fri, 26 Nov 2010 14:48:50 -0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1290813318 4168 80.91.229.12 (26 Nov 2010 23:15:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 26 Nov 2010 23:15:18 +0000 (UTC) To: 7494@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 27 00:15:12 2010 Return-path: Envelope-to: geb-bug-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 1PM7VW-0006JW-U8 for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Nov 2010 00:15:11 +0100 Original-Received: from localhost ([127.0.0.1]:41806 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PM7VW-0006hS-8l for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Nov 2010 18:15:10 -0500 Original-Received: from [140.186.70.92] (port=55927 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PM7VP-0006g1-1K for bug-gnu-emacs@gnu.org; Fri, 26 Nov 2010 18:15:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PM7VO-0004sE-5l for bug-gnu-emacs@gnu.org; Fri, 26 Nov 2010 18:15:03 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PM7VO-0004s0-3a for bug-gnu-emacs@gnu.org; Fri, 26 Nov 2010 18:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PM71O-0001Li-8L; Fri, 26 Nov 2010 17:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Nov 2010 22:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7494 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.12908114195155 (code B ref -1); Fri, 26 Nov 2010 22:44:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Nov 2010 22:43:39 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PM711-0001L4-0O for submit@debbugs.gnu.org; Fri, 26 Nov 2010 17:43:39 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PM70y-0001Kt-3e for submit@debbugs.gnu.org; Fri, 26 Nov 2010 17:43:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PM76E-00019B-Br for submit@debbugs.gnu.org; Fri, 26 Nov 2010 17:49:03 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:59853) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PM76E-000196-A9 for submit@debbugs.gnu.org; Fri, 26 Nov 2010 17:49:02 -0500 Original-Received: from [140.186.70.92] (port=50709 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PM76D-00081t-Gt for bug-gnu-emacs@gnu.org; Fri, 26 Nov 2010 17:49:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PM76C-00018a-HN for bug-gnu-emacs@gnu.org; Fri, 26 Nov 2010 17:49:01 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:59050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PM76C-00018M-A0 for bug-gnu-emacs@gnu.org; Fri, 26 Nov 2010 17:49:00 -0500 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oAQMmwEG007248 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 26 Nov 2010 22:48:59 GMT Original-Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oAQ2gLaN012200 for ; Fri, 26 Nov 2010 22:48:57 GMT Original-Received: from abhmt003.oracle.com by acsmt355.oracle.com with ESMTP id 808940571290811723; Fri, 26 Nov 2010 14:48:43 -0800 Original-Received: from dradamslap1 (/10.159.220.70) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 26 Nov 2010 14:48:43 -0800 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcuNvBeamj0K/RlRRmu8L4SMkBuY7w== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 26 Nov 2010 17:44:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:41906 Archived-At: (defun prefix-region (prefix) "Insert PREFIX at the beginning of each line between mark and point." (interactive "sPrefix string: ") (let ((end (region-end))) (save-excursion (goto-char (region-beginning)) (beginning-of-line) (save-restriction (narrow-to-region (point) end) (while (not (eobp)) (insert prefix) (forward-line 1)))))) (provide 'prefix-region) What's that about?