emacs-smart-hungry-delete icon indicating copy to clipboard operation
emacs-smart-hungry-delete copied to clipboard

Deleted region is added to kill ring

Open blue0513 opened this issue 2 years ago • 0 comments

Question

When I select region and run smart-hungry-delete-backward-char, the region is added to my kill ring. Is this expected behavior?

Suggestion

I suggest: we can choose whether the region should be added to kill ring or not as follows.

;; adding to kill ring
(setq smart-hungry-delete-add-kill-ring t)
;; not adding to kill ring
(setq smart-hungry-delete-add-kill-ring nil)

I guess these two commits occur this behavior.

  • https://github.com/hrehfeld/emacs-smart-hungry-delete/commit/f21bd1b49496b9b597caac61c98f5bcad8d9ca62
  • https://github.com/hrehfeld/emacs-smart-hungry-delete/commit/e06525cc1841805ebe470c876d6b966de90bc275

blue0513 avatar Aug 20 '22 11:08 blue0513