nflath / hungry-delete

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

delete backward fails when followed by readonly text #40

Closed matsievskiysv closed 3 years ago

matsievskiysv commented 4 years ago

hungry-delete-backward fails when cursor is positioned right before readonly region. This is an issue when working with ein notebooks or text folds

Reproduce in ein mode

  1. create new notebook
  2. type some text in cell
  3. position cursor at the end of the cell
  4. run hungry-delete-backward and observe the command fail
  5. return cursor to the same position
  6. run delete-backward-char and observe the desired behavior

Reproduce with vimish-fold

  1. open file with some text
  2. create fold using vimish-fold
  3. position cursor at the end of the line preceding text fold
  4. run hungry-delete-backward and observe the command fail
  5. return cursor to the same position
  6. run delete-backward-char and observe the desired behavior
nflath commented 4 years ago

This should be fixed by https://github.com/nflath/hungry-delete/commit/5b75831602ddac7ee08922a1615ce7f4f165b349#diff-a2b29fd6731dc6737e1bd2b5ee4a7f21 - can you check to make sure it works for you?

matsievskiysv commented 4 years ago

Not quite. Removed spaces just fine, but failed to remove character:

out

nflath commented 4 years ago

Intreesting, I haven't been able to reproduce - Can you post detailed instructions using vimish-fold? It seems to work for me.

matsievskiysv commented 4 years ago

Yep, I've tried starting Emacs with command emacs -q --eval (progn (package-initialize) (use-package vimish-fold) (use-package hungry-delete)) and everything worked. Guess, there's a problem in my config.