lassik / emacs-format-all-the-code

Auto-format source code in many languages with one command
https://melpa.org/#/format-all
MIT License
623 stars 108 forks source link

Marker move to position 1 after calling format-all-buffer command #220

Open liuyinz opened 1 year ago

liuyinz commented 1 year ago

Repreduce:

(setq test (point-marker))
;; => #<marker at 27 in *scratch*>

              (format-all-buffer)

test
;; => #<marker at 1 in *scratch*>

As shown above, after call format-all-buffer and if the file changes, the marker position change to position 1 always.