* overwrite yank
@ 2007-09-24 15:56 Joe Bloggs
2007-09-25 20:52 ` Dieter Wilhelm
0 siblings, 1 reply; 9+ messages in thread
From: Joe Bloggs @ 2007-09-24 15:56 UTC (permalink / raw)
To: help-gnu-emacs
Hi, I'm sure this is really simple, but I can't find the answer anywhere.
How can I overwrite from the copy buffer?
I've tried yanking in overwrite-mode but that doesn't work, it just inserts as normal, whereas I want to overwrite.
Thanks.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: overwrite yank
2007-09-24 15:56 overwrite yank Joe Bloggs
@ 2007-09-25 20:52 ` Dieter Wilhelm
2007-09-25 21:19 ` Drew Adams
0 siblings, 1 reply; 9+ messages in thread
From: Dieter Wilhelm @ 2007-09-25 20:52 UTC (permalink / raw)
To: help-gnu-emacs
Joe Bloggs <joebloggs@nowhere.invalid> writes:
> Hi, I'm sure this is really simple, but I can't find the answer
> anywhere. How can I overwrite from the copy buffer? I've tried
> yanking in overwrite-mode but that doesn't work, it just inserts as
> normal, whereas I want to overwrite. Thanks.
Please try "delete-selection-mode" but from your description I'm not
quite sure that this is what you want.
--
Best wishes
H. Dieter Wilhelm
Darmstadt, Germany
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: overwrite yank
2007-09-25 20:52 ` Dieter Wilhelm
@ 2007-09-25 21:19 ` Drew Adams
2007-09-27 1:00 ` Dieter Wilhelm
0 siblings, 1 reply; 9+ messages in thread
From: Drew Adams @ 2007-09-25 21:19 UTC (permalink / raw)
To: help-gnu-emacs
> > Hi, I'm sure this is really simple, but I can't find the answer
> > anywhere. How can I overwrite from the copy buffer? I've tried
> > yanking in overwrite-mode but that doesn't work, it just inserts as
> > normal, whereas I want to overwrite. Thanks.
>
> Please try "delete-selection-mode" but from your description I'm not
> quite sure that this is what you want.
No, it won't do what he's asking. I don't know of anything, offhand, that
will. Perhaps someone here will provide some code to do it, as a fun
exercise.
Joe: Out of curiosity, just why do you want to do that?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: overwrite yank
2007-09-25 21:19 ` Drew Adams
@ 2007-09-27 1:00 ` Dieter Wilhelm
2007-09-27 15:20 ` Drew Adams
[not found] ` <mailman.1396.1190906508.18990.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 9+ messages in thread
From: Dieter Wilhelm @ 2007-09-27 1:00 UTC (permalink / raw)
To: Drew Adams; +Cc: help-gnu-emacs
"Drew Adams" <drew.adams@oracle.com> writes:
>> > Hi, I'm sure this is really simple, but I can't find the answer
>> > anywhere. How can I overwrite from the copy buffer? I've tried
>> > yanking in overwrite-mode but that doesn't work, it just inserts as
>> > normal, whereas I want to overwrite. Thanks.
>>
>> Please try "delete-selection-mode" but from your description I'm not
>> quite sure that this is what you want.
>
> No, it won't do what he's asking. I don't know of anything, offhand, that
> will. Perhaps someone here will provide some code to do it, as a fun
> exercise.
I thought it implicit that he wanted to overwrite some *selection*
with the stuff from the kill ring. So you think he wants for example
yanking a line of text and this same line does overwrite the line
where the cursor is (without a region)?
>
> Joe: Out of curiosity, just why do you want to do that?
Yes, why?
--
Best wishes
H. Dieter Wilhelm
Darmstadt, Germany
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: overwrite yank
2007-09-27 1:00 ` Dieter Wilhelm
@ 2007-09-27 15:20 ` Drew Adams
[not found] ` <mailman.1396.1190906508.18990.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 9+ messages in thread
From: Drew Adams @ 2007-09-27 15:20 UTC (permalink / raw)
To: Dieter Wilhelm; +Cc: help-gnu-emacs
> I thought it implicit that he wanted to overwrite some *selection*
> with the stuff from the kill ring. So you think he wants for example
> yanking a line of text and this same line does overwrite the line
> where the cursor is (without a region)?
Yes, that was my interpretation. But I've been wrong before. ;-)
That would seem to be useful: if you can type over existing text, why
couldn't you also yank over existing text?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: overwrite yank
[not found] ` <mailman.1396.1190906508.18990.help-gnu-emacs@gnu.org>
@ 2007-09-27 16:33 ` xraysmalevich
2007-09-28 15:38 ` Stefan Monnier
0 siblings, 1 reply; 9+ messages in thread
From: xraysmalevich @ 2007-09-27 16:33 UTC (permalink / raw)
To: help-gnu-emacs
On Sep 27, 11:20 am, "Drew Adams" <drew.ad...@oracle.com> wrote:
> > I thought it implicit that he wanted to overwrite some *selection*
> > with the stuff from the kill ring. So you think he wants for example
> > yanking a line of text and this same line does overwrite the line
> > where the cursor is (without a region)?
>
> Yes, that was my interpretation. But I've been wrong before. ;-)
>
> That would seem to be useful: if you can type over existing text, why
> couldn't you also yank over existing text?
I'd also like to see this function.
Why do I want to do it? Well, I just do. Trust me.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: overwrite yank
2007-09-27 16:33 ` xraysmalevich
@ 2007-09-28 15:38 ` Stefan Monnier
2007-09-28 18:55 ` Dieter Wilhelm
0 siblings, 1 reply; 9+ messages in thread
From: Stefan Monnier @ 2007-09-28 15:38 UTC (permalink / raw)
To: help-gnu-emacs
> Why do I want to do it? Well, I just do. Trust me.
Why do we want to know why you want it?
So as to know *how* to provide the feature.
Stefan
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: overwrite yank
2007-09-28 15:38 ` Stefan Monnier
@ 2007-09-28 18:55 ` Dieter Wilhelm
0 siblings, 0 replies; 9+ messages in thread
From: Dieter Wilhelm @ 2007-09-28 18:55 UTC (permalink / raw)
To: help-gnu-emacs
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> Why do I want to do it? Well, I just do. Trust me.
>
> Why do we want to know why you want it?
> So as to know *how* to provide the feature.
Yes, or maybe to suggest an alternative method.
--
Best wishes
H. Dieter Wilhelm
Darmstadt, Germany
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: overwrite yank
[not found] <mailman.1283.1190755244.18990.help-gnu-emacs@gnu.org>
@ 2007-10-11 21:45 ` Joe Bloggs
0 siblings, 0 replies; 9+ messages in thread
From: Joe Bloggs @ 2007-10-11 21:45 UTC (permalink / raw)
To: help-gnu-emacs
"Drew Adams" <drew.adams@oracle.com> writes:
>> > Hi, I'm sure this is really simple, but I can't find the answer
>> > anywhere. How can I overwrite from the copy buffer? I've tried
>> > yanking in overwrite-mode but that doesn't work, it just inserts as
>> > normal, whereas I want to overwrite. Thanks.
>>
>> Please try "delete-selection-mode" but from your description I'm not
>> quite sure that this is what you want.
>
> No, it won't do what he's asking. I don't know of anything, offhand, that
> will. Perhaps someone here will provide some code to do it, as a fun
> exercise.
>
> Joe: Out of curiosity, just why do you want to do that?
Hi, sorry I have been so slow to reply to this thread.
I can't remember exactly what it was I was doing, but I think it was some data manipulation. I needed to replace specific parts of several different lines with one specific part from some other line, all parts being the same length. The job was small enough not to warrant using sed, awk or perl, but a bit of a hassle to have to do lots of deletions or find-replaces. It seemed to me that this feature would/should have been implemented and I might need it again in the future.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2007-10-11 21:45 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-24 15:56 overwrite yank Joe Bloggs
2007-09-25 20:52 ` Dieter Wilhelm
2007-09-25 21:19 ` Drew Adams
2007-09-27 1:00 ` Dieter Wilhelm
2007-09-27 15:20 ` Drew Adams
[not found] ` <mailman.1396.1190906508.18990.help-gnu-emacs@gnu.org>
2007-09-27 16:33 ` xraysmalevich
2007-09-28 15:38 ` Stefan Monnier
2007-09-28 18:55 ` Dieter Wilhelm
[not found] <mailman.1283.1190755244.18990.help-gnu-emacs@gnu.org>
2007-10-11 21:45 ` Joe Bloggs
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).