Mercurial > emacs
comparison src/lread.c @ 28388:5b49a098d0cc
(read1): Accept `.' (period) as symbol start like in CL
and earlier Emacs versions.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Wed, 29 Mar 2000 12:57:45 +0000 |
parents | b445e32d5a7a |
children | b6f06a755c7d |
comparison
equal
deleted
inserted
replaced
28387:9a8814cc543c | 28388:5b49a098d0cc |
---|---|
2133 || (p - read_buffer != nchars))); | 2133 || (p - read_buffer != nchars))); |
2134 } | 2134 } |
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; |
2148 } | 2145 } |
2149 | 2146 |