bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Leo
Subject: bug#7494: 24.0.50; Why is `prefix-region' in a library by itself?
Date: Sat, 27 Nov 2010 02:10:20 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (Mac OS X 10.6.5)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]