From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Bloggs Newsgroups: gmane.emacs.help Subject: Re: overwrite yank Date: Thu, 11 Oct 2007 22:45:23 +0100 Message-ID: <87odf5e364.fsf@DEBLAP1.BeNet> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1192170749 24656 80.91.229.12 (12 Oct 2007 06:32:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Oct 2007 06:32:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 12 08:32:19 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IgE4G-0002nh-Lc for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Oct 2007 08:32:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IgE4A-0005gS-FQ for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Oct 2007 02:32:10 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Thu, 11 Oct 2007 16:45:33 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:TUqE33R9bNpgGIxE88iwnmi0YQs= Original-Lines: 17 X-Usenet-Provider: http://www.giganews.com Original-X-Trace: sv3-Vu7Bm71zwX4S27eYsTb9b8tza8VqYbBrbos4D87oBDc5xIRxhTvCryvG0TXmRhcZTKIQeEDroSqVRfj!RGLKLNMiLKzBZbKKwWJnbxkYGG1001O9oU8RQwMNB9OF8YWgmSv0 Original-X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.35 Original-Xref: shelby.stanford.edu gnu.emacs.help:152850 X-Mailman-Approved-At: Fri, 12 Oct 2007 02:26:46 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:48358 Archived-At: "Drew Adams" 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.