all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Why does Emacs lack `backward-delete-word`?
Date: Mon, 07 Mar 2016 23:02:02 +0800	[thread overview]
Message-ID: <87k2le72mt.fsf@ericabrahamsen.net> (raw)
In-Reply-To: 8760wzht1e.fsf@robertthorpeconsulting.com

Robert Thorpe <rt@robertthorpeconsulting.com> writes:

> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>
>>> I should have been clearer, sorry.  `backward-kill-word` kills.  I wonder
>>> why there is no corresponding command to delete instead.
>>
>> Emacs's UI generally assumes that the difference between "delete" and
>> "kill" is sufficiently minor that the trouble of providing both versions
>> is higher than the gain.
>>
>> IOW, use M-y (or a prefix arg to C-y) to get to the kill you care about.
>
> As Stefan says, it's not usually necessary.  M-y can skip past
> irrelevant kills.  Also, if you know you're going to add something
> useless to the kill ring, then you can just use backspace.  Getting rid
> of a word with backspace, in the few occasions when it's necessary,
> isn't that slow.
>
> But, in keyboard macros it can be troublesome.  If M-y has to be used in
> a macro that generally spells trouble.  Also, kills are slower than
> deletes.  For those reasons I define delete-word in the obvious way,
> like kill-word but using delete-region instead of kill-region.  I don't
> bind it to a key though, I just use M-x when I need it, which is only
> when using keyboard macros.

This is what registers are good for!




  reply	other threads:[~2016-03-07 15:02 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-06 11:20 Why does Emacs lack `backward-delete-word`? egarrulo
2016-03-06 11:27 ` Lars Magne Ingebrigtsen
2016-03-06 11:37   ` egarrulo
2016-03-06 12:30     ` tomas
2016-03-06 13:12       ` Edward Knyshov
2016-03-06 13:16         ` Marcin Borkowski
2016-03-06 15:44     ` Stefan Monnier
2016-03-07  3:21       ` Robert Thorpe
2016-03-07 15:02         ` Eric Abrahamsen [this message]
2016-03-07 23:15           ` Robert Thorpe
     [not found]     ` <mailman.6881.1457279069.843.help-gnu-emacs@gnu.org>
2016-03-06 19:12       ` Barry Margolin
2016-03-06 14:31 ` egarrulo
2016-03-06 16:37   ` Drew Adams
2016-03-07  4:12 ` Yeechang Lee
2016-03-07  9:02   ` Marcin Borkowski
     [not found] <mailman.6942.1457320905.843.help-gnu-emacs@gnu.org>
2016-03-07 12:08 ` egarrulo
2016-03-07 15:37   ` Marcin Borkowski

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=87k2le72mt.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --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.