Skip to content

Conversation

jimblandy
Copy link
Contributor

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.

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.
@jimblandy jimblandy requested a review from brotzeit January 11, 2023 15:03
@jimblandy jimblandy merged commit 22fff6a into rust-lang:master Jan 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants