unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Feature request: yank-with-replace
@ 2002-11-08 21:02 Luke Hutchison
  2002-11-09  4:11 ` Miles Bader
  2002-11-10 18:07 ` Richard Stallman
  0 siblings, 2 replies; 3+ messages in thread
From: Luke Hutchison @ 2002-11-08 21:02 UTC (permalink / raw)


I have a request for a small feature that I think would be very useful. 
(I hope this is the right list for it!)

It would be very nice to replace values as a region is being yanked: for
example, you have some code that performs operations on the
x-coordinates of something, and you want to duplicate the code for the
y-coordinates, so you select it, kill it, yank it and then go back and
change all the 'x's to 'y's.  This can leave you with inconsistent code,
if you don't catch them all (ever hear the expression, "Cut'n'paste gets
you every time"?)...

I propose adding yank-with-replace, which asks you for a search and
replace string before the kill buffer is yanked-from, to take care of
situations like this.  yank-with-replace-query-regexp would probably be
useful too, which would yank and then run a query-regexp on the region
that you just yanked.

I can't seem to find this feature in emacs, and don't have any emacs
development background, but I imagine that adding this would be trivial
for an emacs programmer.

Does it seem that this feature would be useful?

Thanks,
Luke Hutchison.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-11-10 18:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-08 21:02 Feature request: yank-with-replace Luke Hutchison
2002-11-09  4:11 ` Miles Bader
2002-11-10 18:07 ` Richard Stallman

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).