nflath / hungry-delete

Enables hungry deletion in all modes.
98 stars 16 forks source link

smartparens-strict-mode breaks hungry-delete-mode #21

Closed CSRaghunandan closed 7 years ago

CSRaghunandan commented 8 years ago

Looks like if i've smartparens-strict-mode enabled, hungry-delete-mode will stop working. I use emacs 25.1 on a mac.

nflath commented 8 years ago

I looked into this; I think it's more an issue in smartparens-strict-mode, I'm not entirely sure how to fix it in hungry-delete. The problem is smarparens uses sp-backward-delete-char, which in it's base case just calls delete-char -1. I think this would have to be a change in that package - if there are any other ways of fixing this you see please let me know.

CSRaghunandan commented 7 years ago

I asked the same question today in emacs.SE and Glucas wrote an answer which fixes hungry-delete-mode when smartparens-strict-mode is enabled.