From: "Joe Casadonte" <jcasadonte@northbound-train.com>
Subject: Re: how to avoid filling KILL RING with junk
Date: 30 Sep 2002 11:04:04 -0400 [thread overview]
Message-ID: <ulm5jh63f.fsf@terrapin.northbound-train.com> (raw)
In-Reply-To: 81wuphawh5.fsf@kwikemart.springfield.se
On Fri, 20 Sep 2002, stray_searcher@hotmail.com wrote:
> On 18 Sep 2002, ignoramus6776@NOSPAM.6776.invalid wrote:
>> When I delete words and regions in my xemacs 21.4, it puts theninto
>> the kill ring.
>
> You did not 'delete' but 'killed' ;-)
>
> See delete-region vs kill-region.
>
> But I'm afraid that there's no built in delete-word in Emacs.
It's not built-in, but this should do the trick:
(defun my-delete-word (arg)
"Delete characters forward until encountering the end of a word.
With prefix argument ARG, do this that many times."
(interactive "p")
(delete-region (point) (progn (forward-word arg) (point))))
(defun my-backwards-delete-word (arg)
"Delete characters backward until encountering the end of a word.
With prefix argument ARG, do this that many times."
(interactive "p")
(my-delete-word (- arg)))
Bind to keys of your choice and have a blast.
--
Regards,
joe
Joe Casadonte
jcasadonte@northbound-train.com
------------------------------------------------------------------------------
Llama Fresh Farms => http://www.northbound-train.com
Gay Media Resource List => http://www.northbound-train.com/gaymedia.html
Perl for Win32 => http://www.northbound-train.com/perlwin32.html
Emacs Stuff => http://www.northbound-train.com/emacs.html
Music CD Trading => http://www.northbound-train.com/cdr.html
------------------------------------------------------------------------------
Live Free, that's the message!
------------------------------------------------------------------------------
prev parent reply other threads:[~2002-09-30 15:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <slrnaohrn5.les.ignoramus6776@nospam.invalid>
2002-09-18 22:19 ` how to avoid filling KILL RING with junk Barry Margolin
2002-09-23 15:33 ` Deepak Dinesh
2002-09-23 23:36 ` Barry Margolin
2002-09-20 8:35 ` Mac
2002-09-30 15:04 ` Joe Casadonte [this message]
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=ulm5jh63f.fsf@terrapin.northbound-train.com \
--to=jcasadonte@northbound-train.com \
/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.