unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Andreas Röhler" <andreas.roehler@online.de>
Subject: Re: Kill ring and backward-kill-word
Date: Mon, 12 Dec 2005 21:00:08 +0100	[thread overview]
Message-ID: <dnkkgb$3le$1@online.de> (raw)
In-Reply-To: 1134408189.686637.151960@g14g2000cwa.googlegroups.com

Shug Boabby wrote:

> could someone please tell me how to turn off adding text to the kill
> ring when i am using M-x backward-kill-word? it is a very annoying
> "feature".

;; Here are two from simple.el adapted Funktions, which should work as desired.

(defun delete-word (arg)
  "Delete characters forward until encountering the end of a word.
With argument, do this that many times."
  (interactive "p")
  (delete-region (point) (progn (forward-word arg) (point))))


(defun backward-delete-word (arg)
  "Delete characters backward until encountering the end of a word.
With argument, do this that many times."
  (interactive "p")
  (delete-word (- arg)))


ar

PS.: If its your problem to yank former kills back, use M-y, also repeated

  reply	other threads:[~2005-12-12 20:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-12 17:23 Kill ring and backward-kill-word Shug Boabby
2005-12-12 20:00 ` Andreas Röhler [this message]
2005-12-12 20:25   ` Shug Boabby
2005-12-12 20:47 ` Stefan Reichör
2005-12-13 18:21   ` Shug Boabby
2005-12-13 22:48     ` David Kastrup
2005-12-14  3:02       ` Shug Boabby
2005-12-15  0:35         ` Kevin Rodgers
2005-12-15 20:49         ` Stefan Reichör
2005-12-16 13:54           ` Shug Boabby
2005-12-17 11:10         ` don provan

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='dnkkgb$3le$1@online.de' \
    --to=andreas.roehler@online.de \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).