From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: kill-region without modifying the kill ring Date: Fri, 25 Sep 2015 12:37:22 -0400 Organization: A noiseless patient Spider Message-ID: References: <8272bab2-aa15-479f-b838-0b60fb11c5bb@googlegroups.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1443199225 19517 80.91.229.3 (25 Sep 2015 16:40:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Sep 2015 16:40:25 +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 Sep 25 18:40:21 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 1ZfW2j-00031G-V5 for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Sep 2015 18:40:18 +0200 Original-Received: from localhost ([::1]:48962 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfW2j-0003AR-DM for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Sep 2015 12:40:17 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!barmar.motzarella.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Injection-Info: barmar.motzarella.org; posting-host="2be9e9f5dd9af768b8861af71b85fc28"; logging-data="16991"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18RijLWurhxsjye7x0NOoZU" User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Cancel-Lock: sha1:HbCB3gh1VZenOofHB4AaBS+M06c= Original-Xref: usenet.stanford.edu gnu.emacs.help:215063 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:107347 Archived-At: In article , jorge.alfaro-murillo@yale.edu (Jorge A. Alfaro-Murillo) wrote: > Barry Margolin writes: > > > Jorge A. Alfaro-Murillo writes: > > > >> Jim Newton writes: > >> > >> > 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 then 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. > >> > >> Doesn't selecting the text and using do exactly > >> that? > > > > I just tried it, and C-y recovered the deleted text. So it does > > put it on the kill-ring. > > No, I think you are wrong. delete-backward-char (bound to > ) doesn't put the text in the kill ring. At least not > by default, try it with emacs -Q You're right, it was due to some customization, I had bound to a different function that sets killflag if there's a region. Once I reverted the binding to normal, I also had to turn on delete-selection-mode to make it delete the region rather than a single character. I use Carbon Emacs 22 on OS X, I'm not sure how I would start it with options like -Q. -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***