projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa80f93
)
* src/fileio.c: Don't convert \r to \n just because of C-x $
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Mon, 18 Mar 2019 18:57:10 +0000
(14:57 -0400)
committer
Stefan 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
patch
|
blob
|
history
diff --git
a/src/fileio.c
b/src/fileio.c
index cac8ed0aeef696f7aeb9471d67a7792098fa421c..7b9446c7e129f413fd2949a1b5aa295f3d436e34 100644
(file)
--- 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;
}