rust-lang / rust-mode

Emacs configuration for Rust
Apache License 2.0
1.1k stars 178 forks source link

rust-format-buffer resets all code blocks to "shown" under hideshow #350

Closed codesections closed 4 years ago

codesections commented 4 years ago

Thanks for the great package.

I use rust-mode along with the builtin Emacs hs-minor-mode. Unfortunately, the two do not play very well together. Specifically, whenever I run rust-format-buffer and rustfmt makes any changes to the code, all code is displayed again – even code that was previously marked as hidden using hideshow. If rustfmt does not make any changes, then no hidden code is incorrectly shown.

I suspect that this is related to #260 (and #143 mentions overall integration with HideShow).

mookid commented 4 years ago

hi @codesections, I can't reproduce any more, likely since #371. Closing it, feel free to reopen if it is still a problem.