blacken icon indicating copy to clipboard operation
blacken copied to clipboard

Blacken mode does not save excursion

Open alienbogart opened this issue 6 years ago • 2 comments

My Environment

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.

alienbogart avatar Oct 26 '19 08:10 alienbogart

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

leungbk avatar Jun 26 '20 04:06 leungbk

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.

cjauvin avatar Feb 21 '21 18:02 cjauvin