aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1998-04-12 06:49:26 +0000
committerKarl Heuer1998-04-12 06:49:26 +0000
commit1b62edd6ba4e95bdd43a0089005728c829ff0036 (patch)
treec6a978fcf76e39c8cff886f5d9719dbea5449662 /src
parent2336b6a9cea42d75b846c146e2a06cf90568136a (diff)
downloademacs-1b62edd6ba4e95bdd43a0089005728c829ff0036.tar.gz
emacs-1b62edd6ba4e95bdd43a0089005728c829ff0036.zip
(print) <Lisp_String>: Fix "\ " handling.
Diffstat (limited to 'src')
-rw-r--r--src/print.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/print.c b/src/print.c
index 443b2f03a30..30e9ff74af1 100644
--- a/src/print.c
+++ b/src/print.c
@@ -1218,11 +1218,14 @@ print (obj, printcharfun, escapeflag)
1218 /* If we just had a hex escape, and this character 1218 /* If we just had a hex escape, and this character
1219 could be taken as part of it, 1219 could be taken as part of it,
1220 output `\ ' to prevent that. */ 1220 output `\ ' to prevent that. */
1221 if (need_nonhex 1221 if (need_nonhex)
1222 && ((c >= 'a' && c <= 'f') 1222 {
1223 need_nonhex = 0;
1224 if ((c >= 'a' && c <= 'f')
1223 || (c >= 'A' && c <= 'F') 1225 || (c >= 'A' && c <= 'F')
1224 || (c >= '0' && c <= '9'))) 1226 || (c >= '0' && c <= '9'))
1225 strout ("\\ ", -1, -1, printcharfun, 0); 1227 strout ("\\ ", -1, -1, printcharfun, 0);
1228 }
1226 1229
1227 if (c == '\"' || c == '\\') 1230 if (c == '\"' || c == '\\')
1228 PRINTCHAR ('\\'); 1231 PRINTCHAR ('\\');