Blacken mode does not save excursion
My Environment
- OS: MX Linux 18
- Result of
$ uname -r: 4.19.0-5-amd64 - dotfiles
- i3 version 4.13
- ~/.config/i3
- GNU Emacs 27.0.50
- ~/.emacs.d
- blacken-20190917.535
Issue
Rich now blacken-mode does not save-excursion in most of the cases. This breaks the flow of the coding, because every time I run blacken-buffer, or it is run automatically, the cursor goes either to the beginning of the buffer, or to some random place. This makes it impossible to use auto-save modes such as super-save, which are extremely useful. This bug is preventing me from using blacken-mode, which is otherwise extremely useful.
You could try https://github.com/raxod502/apheleia to cut down on unexpected point movement. It has some problems with undo history though. https://github.com/raxod502/apheleia/issues/15
For me the point position is correctly saved in the window where the focus is (not sure what's the correct term for that) however if I have another window with the same buffer, the point position in that other window is lost, and that is somewhat annoying.