mhayashi1120 / Emacs-wgrep

Writable grep buffer and apply the changes to files
GNU General Public License v3.0
661 stars 43 forks source link

Does not work on windows encoded files. #68

Closed dinkonin closed 4 years ago

dinkonin commented 4 years ago

When I edit a file with windows CRLF line endings (^M), wgrep-finish-edit always displays There are XX unapplied changes. and it does nothing. It works If I convert it to unix LF with set-buffer-file-coding-system and save it.

Maybe I'm missing something in the config. Using emacs 26.3 on Arch linux.

mhayashi1120 commented 4 years ago

DOS newline working well on my environment. What message is displayed in echo area when cursor to the error line?

dinkonin commented 4 years ago

There are no errors only There are XX unapplied changes. tried with toggle-debug-on-error and it does not trigger.

mhayashi1120 commented 4 years ago

Hmm, I couldn't see anything. Please try emacs -q if you have not.

dinkonin commented 4 years ago

Same results with emacs -q . But the problem disappeared when I upgraded to emacs 27.