HCoop
/
jackhill
/
mal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
948eeb0
)
elisp: Get rid of newline hack in printer
author
Vasilij Schneidermann
<mail@vasilij.de>
Tue, 19 Feb 2019 19:50:14 +0000
(20:50 +0100)
committer
Vasilij Schneidermann
<mail@vasilij.de>
Tue, 19 Feb 2019 19:53:38 +0000
(20:53 +0100)
elisp/printer.el
patch
|
blob
|
blame
|
history
diff --git
a/elisp/printer.el
b/elisp/printer.el
index
f00efa7
..
4829352
100644
(file)
--- a/
elisp/printer.el
+++ b/
elisp/printer.el
@@
-12,8
+12,8
@@
(number-to-string (mal-value form)))
((eq type 'string)
(if print-readably
- ;; HACK prin1-to-string does only quotes and backslashes
-
(replace-regexp-in-string "\n" "\\\\n"
(prin1-to-string value))
+ (let ((print-escape-newlines t))
+
(prin1-to-string value))
value))
((or (eq type 'symbol) (eq type 'keyword))
(symbol-name value))