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

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Fri, 26 Nov 2010 22:44:02 UTC

Severity: normal

Found in version 24.0.50

Done: "Drew Adams" <drew.adams <at> oracle.com>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 7494 <at> debbugs.gnu.org (full text, mbox):

From: Leo <sdl.web <at> gmail.com>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: 7494 <at> debbugs.gnu.org
Subject: Re: bug#7494: 24.0.50; Why is `prefix-region' in a library by itself?
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




This bug report was last modified 14 years and 238 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.