]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/fileio.c: Don't convert \r to \n just because of C-x $
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 18 Mar 2019 18:57:10 +0000 (14:57 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 18 Mar 2019 18:57:10 +0000 (14:57 -0400)
(choose_write_coding_system): Setup the \r to \n conversion only if
selective-display is t.

src/fileio.c

index cac8ed0aeef696f7aeb9471d67a7792098fa421c..7b9446c7e129f413fd2949a1b5aa295f3d436e34 100644 (file)
@@ -4854,7 +4854,7 @@ choose_write_coding_system (Lisp_Object start, Lisp_Object end, Lisp_Object file
   val = coding_inherit_eol_type (val, eol_parent);
   setup_coding_system (val, coding);
 
-  if (!STRINGP (start) && !NILP (BVAR (current_buffer, selective_display)))
+  if (!STRINGP (start) && EQ (Qt, BVAR (current_buffer, selective_display)))
     coding->mode |= CODING_MODE_SELECTIVE_DISPLAY;
   return val;
 }