From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: kill-region without modifying the kill ring Date: Fri, 25 Sep 2015 21:15:24 +0600 Message-ID: References: <8272bab2-aa15-479f-b838-0b60fb11c5bb@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1443194165 31041 80.91.229.3 (25 Sep 2015 15:16:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Sep 2015 15:16:05 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Jim Newton Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 25 17:16:05 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZfUjE-0004ua-Ai for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Sep 2015 17:16:04 +0200 Original-Received: from localhost ([::1]:46623 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfUjD-0003k2-Uu for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Sep 2015 11:16:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfUix-0003gx-PS for help-gnu-emacs@gnu.org; Fri, 25 Sep 2015 11:15:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfUiw-000166-Pd for help-gnu-emacs@gnu.org; Fri, 25 Sep 2015 11:15:47 -0400 Original-Received: from mail-la0-x231.google.com ([2a00:1450:4010:c03::231]:34079) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfUiw-00012C-51 for help-gnu-emacs@gnu.org; Fri, 25 Sep 2015 11:15:46 -0400 Original-Received: by lacdq2 with SMTP id dq2so46599530lac.1 for ; Fri, 25 Sep 2015 08:15:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=DNjBI3e/enwqMKxendo4gNUZY9pcexDnMBeYUkd8k9E=; b=gsOjO5/ENlRSQfWMNQ0NnG1S9UgnS0W6jtTq85Rio1hX2EoZfa3Xuc/jZIaujXIt4N VP/GhkoqK8mwOCAej/UOPGNBtgo61Scw6ImkBzrKbqpSz6e2cea+1roAxxB8OFkG42Gr epIQ9YaEcqswna3NrOUvF947JeAu4kP230Y8OD7fpEPzopaLKeHIo3TmE9tSU+XqluzP oPULI9K7XjqBg6yhszJpBqtNeXTcPIJ9SSR9sknq6VM3oaeebB6V/5/juP14a+iM5AZC Q5fK0TGABoZdLHRG3ds7zU9FH3hr//6kdbfzfdIl+yMrwX5yRnLT4E4vbGLCUC4JIFd5 8MoQ== X-Received: by 10.152.7.37 with SMTP id g5mr1807913laa.22.1443194144321; Fri, 25 Sep 2015 08:15:44 -0700 (PDT) Original-Received: by 10.25.156.131 with HTTP; Fri, 25 Sep 2015 08:15:24 -0700 (PDT) In-Reply-To: <8272bab2-aa15-479f-b838-0b60fb11c5bb@googlegroups.com> X-Google-Sender-Auth: R2eO5U6KTSeG9zCYLa3-EQlR-sk X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::231 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107343 Archived-At: On Fri, Sep 25, 2015 at 2:32 PM, Jim Newton wrote: > is there a way or an idiom for killing a region without changing the kill= ring. > I often want to cut several different regions by highlighting them, but t= hen insert a particular thing with C-Y. If I use C-W to kill the region C-= Y will yank back the string I just killed rather than the one I want. > > It would be nice to have a version of C-W which does not effect the kill-= ring. I remember something posted on this very list not long ago. It was called deleterious-mode. https://lists.gnu.org/archive/html/help-gnu-emacs/2015-08/msg00152.html (I don=E2=80=99t use it yet, but I do a very similar thing, rebinding all k= eys which normally kill to delete instead. When I want something cut, I cut it explicitly.)