all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: kill-ring-max or other var to convert killing to deleting?
Date: Fri, 3 Mar 2006 14:58:51 -0800	[thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICCEDMDDAA.drew.adams@oracle.com> (raw)
In-Reply-To: <87slpzxi1z.fsf@cut.bc.hsia.telus.net>

       But wouldn't it be handy, generally, to be able to just 
       convert an existing `kill-*' function to a `delete-*' function?
       That is, bind some flag to indicate that the deleted text is
       not to be added to the kill ring:
    
        (let ((kill-p nil)) (backward-kill-word arg))
    
    What about this:
    
    (defun backward-delete-word (arg)
      (interactive "p")
      (let (kill-ring kill-ring-yank-pointer)
        (backward-kill-word arg)))

Wunderbar! Thank you. I should have thought of that.

  reply	other threads:[~2006-03-03 22:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-01 21:18 kill-ring-max or other var to convert killing to deleting? Drew Adams
2006-03-03 22:46 ` Ryan Yeske
2006-03-03 22:58   ` Drew Adams [this message]
2006-03-05  0:58 ` Richard Stallman

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=DNEMKBNJBGPAOPIJOOICCEDMDDAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.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.