These are "raw" dumps of emails, and pretty much everyone uses and
expects DOS line endings, as specified in RFC5322.
https://github.com/vim/vim/pull/8607
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.![]()
Merging #8607 (f1d11ed) into master (d8e4447) will decrease coverage by
1.84%.
The diff coverage isn/a.
@@ Coverage Diff @@ ## master #8607 +/- ## ========================================== - Coverage 90.07% 88.22% -1.85% ========================================== Files 150 149 -1 Lines 169145 165186 -3959 ========================================== - Hits 152350 145733 -6617 - Misses 16795 19453 +2658
| Flag | Coverage Δ | |
|---|---|---|
| huge-clang-none | ? |
|
| huge-gcc-none | ? |
|
| huge-gcc-testgui | 88.18% <ø> (-0.01%) |
⬇️ |
| huge-gcc-unittests | 2.48% <ø> (ø) |
Flags with carried forward coverage won't be shown. Click here to find out more.
| Impacted Files | Coverage Δ | |
|---|---|---|
| src/libvterm/src/rect.h | 0.00% <0.00%> (-96.56%) |
⬇️ |
| src/libvterm/src/mouse.c | 0.00% <0.00%> (-48.34%) |
⬇️ |
| src/libvterm/src/state.c | 49.10% <0.00%> (-40.90%) |
⬇️ |
| src/libvterm/include/vterm.h | 0.00% <0.00%> (-37.50%) |
⬇️ |
| src/libvterm/src/pen.c | 49.85% <0.00%> (-34.81%) |
⬇️ |
| src/libvterm/src/keyboard.c | 54.73% <0.00%> (-33.69%) |
⬇️ |
| src/mouse.c | 58.59% <0.00%> (-30.60%) |
⬇️ |
| src/libvterm/src/encoding.c | 45.54% <0.00%> (-27.73%) |
⬇️ |
| src/clipboard.c | 65.27% <0.00%> (-18.60%) |
⬇️ |
| src/libvterm/src/vterm.c | 48.57% <0.00%> (-18.10%) |
⬇️ |
| ... and 128 more |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered by Codecov. Last update d8e4447...f1d11ed. Read the comment docs.
Ah, that is surprising! This setting should probably be global-local, but that's a different issue. I removed that for now, setting just fileformat=dos.
—
You are receiving this because you commented.
Setting 'fileformat' after loading a file doesn't have an effect. You would need to reload the file. And only do that if the 'fileformat' actually changed.
'fileformats' must be global, because it is used when reading a file, for which most likely no buffer exists yet.
—
You are receiving this because you commented.
Maybe a BufReadPre,BufNewFile autocommand could be created for *.eml, setting 'fileformat' (locally) to dos. This would read unix files without error, and write .eml files with CR+LF ends-of-lines, which is the correct format for email. But where to set up that autocommand? I suppose filetype.vim might be the right place, it sets up a lot of autocommands.
Just throwing an idea on the wall to see if it sticks. What do you people think of it?
Best regards,
Tony.
—
You are receiving this because you commented.
Setting 'fileformat' after loading a file doesn't have an effect. You would need to reload the file. And only do that if the 'fileformat' actually changed.
In this case, that's actually just fine: loading a file with either \n and \r\n line-endings works, and saving them is always as \r\n with this change.
The reverse would be a bit more problematic, since loading a file with \r\n line-endings you need to tell Vim to interpret those \r's as line endings.
I've seen a lot of .eml files over the years from different systems on account of working a lot with email code, and I don't think I've ever seen one that wasn't with \r\n line endings.
The only issue is when people have "set fileformats=unix" in their vimrc, but that it arguably already not a great setting to add.
—
You are receiving this because you commented.
I'll include this and also add something to b:undo_ftplugin
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
![]()
Closed #8607.