all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: help-gnu-emacs@gnu.org
Subject: Re: C-Backspace behavior
Date: Tue, 2 Apr 2013 15:21:24 +0000 (UTC)	[thread overview]
Message-ID: <kjet1k$e29$1@colin.muc.de> (raw)
In-Reply-To: mailman.23297.1364915345.855.help-gnu-emacs@gnu.org

Timur Aydin <ta@taydin.org> 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).



       reply	other threads:[~2013-04-02 15:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.23297.1364915345.855.help-gnu-emacs@gnu.org>
2013-04-02 15:21 ` Alan Mackenzie [this message]
2013-04-02 15:08 C-Backspace behavior Timur Aydin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='kjet1k$e29$1@colin.muc.de' \
    --to=acm@muc.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.