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: Drew Adams
Subject: RE: kill-ring-max or other var to convert killing to deleting?
Date: Fri, 3 Mar 2006 14:58:51 -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)))

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




reply via email to

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