diff options
| author | Stefan Monnier | 2019-03-18 14:57:10 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2019-03-18 14:57:10 -0400 |
| commit | 7f6c6253c939a2034b840c279c3e4dca973b263a (patch) | |
| tree | ec8602a03da95f22c3c3133139336f5159368aa5 /src | |
| parent | fa80f93ad1596d9c7e3dc1b7d0af61a1cc0b9ed3 (diff) | |
| download | emacs-7f6c6253c939a2034b840c279c3e4dca973b263a.tar.gz emacs-7f6c6253c939a2034b840c279c3e4dca973b263a.zip | |
* src/fileio.c: Don't convert \r to \n just because of C-x $
(choose_write_coding_system): Setup the \r to \n conversion only if
selective-display is t.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index cac8ed0aeef..7b9446c7e12 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -4854,7 +4854,7 @@ choose_write_coding_system (Lisp_Object start, Lisp_Object end, Lisp_Object file | |||
| 4854 | val = coding_inherit_eol_type (val, eol_parent); | 4854 | val = coding_inherit_eol_type (val, eol_parent); |
| 4855 | setup_coding_system (val, coding); | 4855 | setup_coding_system (val, coding); |
| 4856 | 4856 | ||
| 4857 | if (!STRINGP (start) && !NILP (BVAR (current_buffer, selective_display))) | 4857 | if (!STRINGP (start) && EQ (Qt, BVAR (current_buffer, selective_display))) |
| 4858 | coding->mode |= CODING_MODE_SELECTIVE_DISPLAY; | 4858 | coding->mode |= CODING_MODE_SELECTIVE_DISPLAY; |
| 4859 | return val; | 4859 | return val; |
| 4860 | } | 4860 | } |