aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2000-03-29 12:57:45 +0000
committerGerd Moellmann2000-03-29 12:57:45 +0000
commit03859d20b72cfc6b4f37518e5e748c9b5caab40b (patch)
tree5f2227f21deec4dbffa0471b07878f4ba117f5eb /src
parent3bc25e5289d9ef72ed9a8189a3685424d1f9b6ce (diff)
downloademacs-03859d20b72cfc6b4f37518e5e748c9b5caab40b.tar.gz
emacs-03859d20b72cfc6b4f37518e5e748c9b5caab40b.zip
(read1): Accept `.' (period) as symbol start like in CL
and earlier Emacs versions.
Diffstat (limited to 'src')
-rw-r--r--src/lread.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lread.c b/src/lread.c
index 67a04aa3f57..5554eac193f 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -2135,13 +2135,10 @@ read1 (readcharfun, pch, first_in_list)
2135 2135
2136 case '.': 2136 case '.':
2137 { 2137 {
2138 /* If a period is followed by a number, then we should read it
2139 as a floating point number. Otherwise, it denotes a dotted
2140 pair. */
2141 int next_char = READCHAR; 2138 int next_char = READCHAR;
2142 UNREAD (next_char); 2139 UNREAD (next_char);
2143 2140
2144 if (! (next_char >= '0' && next_char <= '9')) 2141 if (next_char <= 040)
2145 { 2142 {
2146 *pch = c; 2143 *pch = c;
2147 return Qnil; 2144 return Qnil;