Emacs: how to delete text without kill ring?

后端 未结 15 1060
旧巷少年郎
旧巷少年郎 2020-12-04 14:00

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

15条回答
  •  离开以前
    2020-12-04 15:00

    Taken from the EmacsWiki:

    The equivalent of ‘kill-line’ (‘C-k’) but without kill-ring side effects:

    (delete-region (point) (line-end-position))
    

提交回复
热议问题