From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dieter Wilhelm Newsgroups: gmane.emacs.help Subject: Re: overwrite yank Date: Thu, 27 Sep 2007 03:00:35 +0200 Organization: The Church of Emacs Message-ID: <87myv8dirw.fsf@debby.local.net> References: <873ax2eac9.fsf@debby.local.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1190854718 6558 80.91.229.12 (27 Sep 2007 00:58:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 27 Sep 2007 00:58:38 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Drew Adams" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 27 02:58:35 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 1Iahi5-0000mm-Pd for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Sep 2007 02:58:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iahi2-00006P-9Q for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Sep 2007 20:58:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iahhp-00006K-5o for help-gnu-emacs@gnu.org; Wed, 26 Sep 2007 20:58:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iahhn-000068-Jx for help-gnu-emacs@gnu.org; Wed, 26 Sep 2007 20:58:15 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iahhn-000065-EK for help-gnu-emacs@gnu.org; Wed, 26 Sep 2007 20:58:15 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.183]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iahhm-0007IG-UX for help-gnu-emacs@gnu.org; Wed, 26 Sep 2007 20:58:15 -0400 Original-Received: from [89.13.80.98] (helo=debby.local.net) by mrelayeu.kundenserver.de (node=mrelayeu4) with ESMTP (Nemesis) id 0ML21M-1Iahhk3kMF-0006h9; Thu, 27 Sep 2007 02:58:13 +0200 Original-Received: from dieter by debby.local.net with local (Exim 4.63) (envelope-from ) id 1Iahk4-0002FY-02; Thu, 27 Sep 2007 03:00:36 +0200 In-Reply-To: (Drew Adams's message of "Tue\, 25 Sep 2007 14\:19\:47 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-Provags-ID: V01U2FsdGVkX19pO/eeo2zW8I4iX4gZemCaLl0TMK9HODxJYKI sm60alMFrSTsvSdCGsS84gMwAiviOlEraPC9vYQQ8fbPA2pgW2 s/7fFtZGQpf2Kqben5S9NDR79O0x2NC X-Detected-Kernel: Linux 2.6? (barebone, rare!) 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:47909 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. 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