emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 7f6c625: * src/fileio.c: Don't convert \r to \n jus


From: Stefan Monnier
Subject: [Emacs-diffs] master 7f6c625: * src/fileio.c: Don't convert \r to \n just because of C-x $
Date: Mon, 18 Mar 2019 14:57:17 -0400 (EDT)

branch: master
commit 7f6c6253c939a2034b840c279c3e4dca973b263a
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>

    * 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.
---
 src/fileio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/fileio.c b/src/fileio.c
index cac8ed0..7b9446c 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
   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;
 }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]