From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.help Subject: Re: C-Backspace behavior Date: Tue, 2 Apr 2013 15:21:24 +0000 (UTC) Organization: muc.de e.V. Message-ID: References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1364916421 11621 80.91.229.3 (2 Apr 2013 15:27:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Apr 2013 15:27:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 02 17:27:29 2013 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 1UN37Q-0001lp-Q1 for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Apr 2013 17:27:28 +0200 Original-Received: from localhost ([::1]:33456 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UN372-0005Yn-3w for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Apr 2013 11:27:04 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news.space.net!news.muc.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 43 Original-NNTP-Posting-Host: news.muc.de Original-X-Trace: colin.muc.de 1364916084 14409 193.149.48.2 (2 Apr 2013 15:21:24 GMT) Original-X-Complaints-To: news-admin@muc.de Original-NNTP-Posting-Date: Tue, 2 Apr 2013 15:21:24 +0000 (UTC) User-Agent: tin/1.9.6-20101126 ("Burnside") (UNIX) (FreeBSD/8.2-STABLE (amd64)) Original-Xref: usenet.stanford.edu gnu.emacs.help:197628 X-Mailman-Approved-At: Tue, 02 Apr 2013 11:26:49 -0400 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:89893 Archived-At: Timur Aydin wrote: > Hi, > Here is a scenario that I am running into many times everyday and it has > gotten sufficiently annoying that I just wanted to find out how others > are dealing with this. > I have TODO files in a file tree like this: > src > foo > TODO > bar > TODO > rap > TODO > So I open the first TODO file, mark a region, then do C-x C-f and do > C-Backspace to delete foo and hit enter. In the dired buffer, I select > the second TODO and yank. But, annoyingly, foo is pasted instead of the > region that I have marked. If I understand you right, at this point M-y might help. > For this particular case, it is easy to just Backspace "foo" and enter > "bar", but if the directory hierarchy is deeper nested, I just want to > quickly delete all directories up to a certain point, open the dired > buffer and navigate to the next directory without loosing the region > that I have killed. > I don't just want to redefine the C-Backpace key to not kill, so my > question is, how should I work so that I don't run into this problem? All the regions that you kill are placed, successively, on the "kill ring". C-y yanks the top kill. M-y, following a C-y, yanks succeeding elements from the kill ring. Try it! > -- > Timur -- Alan Mackenzie (Nuremberg, Germany).