all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Leo <sdl.web@gmail.com>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: 7494@debbugs.gnu.org
Subject: bug#7494: 24.0.50; Why is `prefix-region' in a library by itself?
Date: Sat, 27 Nov 2010 02:10:20 +0000	[thread overview]
Message-ID: <m1bp5bh5yr.fsf@cam.ac.uk> (raw)
In-Reply-To: <B9B3896D04D94CB8AD934CBD9E465068@us.oracle.com> (Drew Adams's message of "Fri, 26 Nov 2010 14:48:50 -0800")

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	other threads:[~2010-11-27  2:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-26 22:48 bug#7494: 24.0.50; Why is `prefix-region' in a library by itself? Drew Adams
2010-11-27  2:10 ` Leo [this message]
2010-11-27  2:18   ` Drew Adams
2010-11-27  2:39 ` Stefan Monnier
2010-11-27  3:00   ` Drew Adams
2010-11-27  8:09     ` Eli Zaretskii
2010-11-27 14:20       ` Stefan Monnier
2010-11-27 15:35         ` Eli Zaretskii
2010-11-27 16:11       ` Drew Adams
2010-11-27 18:30         ` Stefan Monnier
2010-11-27  6:50   ` Thierry Volpiatto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1bp5bh5yr.fsf@cam.ac.uk \
    --to=sdl.web@gmail.com \
    --cc=7494@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.