emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kill-ring-max or other var to convert killing to deleting?


From: Ryan Yeske
Subject: Re: kill-ring-max or other var to convert killing to deleting?
Date: Fri, 03 Mar 2006 14:46:48 -0800

   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)))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]