rust-lang / rust-mode

Emacs configuration for Rust
Apache License 2.0
1.09k stars 176 forks source link

Establish more-controlled environment for fill-paragraph tests. #488

Closed jimblandy closed 1 year ago

jimblandy commented 1 year ago

Define a macro rust-test-with-standard-fill-settings to bind all the variables that affect fill-paragraph, and use it around all calls to fill-paragraph.

Some tests based on rust-test-fill-paragraph were failing for me because I set sentence-end-double-space to nil, so double spaces after periods in the test input were getting collapsed into single spaces.