I\'d like to just delete some text so I can yank some other text instead of it. How can I do that? C-w cuts the selected text to kill ring and I end up with
As a complement to all answers. If you write elisp code to delete, you can call functions that kill as long as you use a local kill-ring object like this:
(defun delete-something()
"Delete something without storing in kill ring."
(let (kill-ring)
(kill-something)))
Use any function that kill something in place of the kill-something. The function will then delete and nothing will be remembered in the real kill-ring.