Subject: bug#7494: 24.0.50; Why is `prefix-region' in a library by itself?

From: Leo <[email-masked]>
Date: Sat, 27 Nov 2010 02:10:20 +0000

On 2010-11-26 22:48 +0000, Drew Adams wrote:
> (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?

There seems to be a few of those files. Maybe move them to the online
packages.

Leo