unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* A question regarding cut and paste.
@ 2003-05-22 23:29 Robin Singh
  0 siblings, 0 replies; 3+ messages in thread
From: Robin Singh @ 2003-05-22 23:29 UTC (permalink / raw)


Hello All,
I am a naïve email user. In other windows editors, I can
1. Select text(t1) from somewhere and copy it .
2. Go somewhere else and  and select some other text(t2) and paste t1. So t2 
will be replaced by t1.

How do we do this in emacs ? Does anyone have macro to do this ? I know 
there’s search replace command but I don’t want to use that.

Thanks in advance,
Robin

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

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

* Re: A question regarding cut and paste.
       [not found] <mailman.6611.1053646406.21513.help-gnu-emacs@gnu.org>
@ 2003-05-23  1:49 ` Benjamin Rutt
  2003-05-23  6:15 ` Kai Großjohann
  1 sibling, 0 replies; 3+ messages in thread
From: Benjamin Rutt @ 2003-05-23  1:49 UTC (permalink / raw)


"Robin Singh" <nsnanda@hotmail.com> writes:

> Hello All,
> I am a naïve email user. In other windows editors, I can
> 1. Select text(t1) from somewhere and copy it .
> 2. Go somewhere else and  and select some other text(t2) and paste
>    t1. So t2 will be replaced by t1.
>
> How do we do this in emacs ? Does anyone have macro to do this ? I
> know there's search replace command but I don't want to use that.

For a partial solution, I think you want (delete-selection-mode 1) in
your ~/.emacs.  Then, just after you select text t2, you have to hit
the BACKSPACE or DELETE key, and then you can paste text t1 in its
place.
-- 
Benjamin

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

* Re: A question regarding cut and paste.
       [not found] <mailman.6611.1053646406.21513.help-gnu-emacs@gnu.org>
  2003-05-23  1:49 ` A question regarding cut and paste Benjamin Rutt
@ 2003-05-23  6:15 ` Kai Großjohann
  1 sibling, 0 replies; 3+ messages in thread
From: Kai Großjohann @ 2003-05-23  6:15 UTC (permalink / raw)


"Robin Singh" <nsnanda@hotmail.com> writes:

> Hello All,
> I am a naïve email user. In other windows editors, I can
> 1. Select text(t1) from somewhere and copy it .
> 2. Go somewhere else and  and select some other text(t2) and paste
>    t1. So t2 will be replaced by t1.

The Emacs way to do it is to use C-w to cut t2, then use C-y to
yank.  This will yank t2 which is not what you wanted.  But then you
can use M-y which will replace t2 with t1.  (Further M-y will
continue to replace the stuff you last yanked.)
-- 
This line is not blank.

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

end of thread, other threads:[~2003-05-23  6:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.6611.1053646406.21513.help-gnu-emacs@gnu.org>
2003-05-23  1:49 ` A question regarding cut and paste Benjamin Rutt
2003-05-23  6:15 ` Kai Großjohann
2003-05-22 23:29 Robin Singh

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).