diff options
| author | Kim F. Storm | 2003-02-25 12:29:03 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2003-02-25 12:29:03 +0000 |
| commit | b92843717547cf84299a2aad833450c0032e4732 (patch) | |
| tree | 5165856b4320b268f4010af29bbc5b43c923bf83 /src | |
| parent | 1ebb05c430dfc6bd212eba02e2e2f5a5ef416daf (diff) | |
| download | emacs-b92843717547cf84299a2aad833450c0032e4732.tar.gz emacs-b92843717547cf84299a2aad833450c0032e4732.zip | |
(read1): Accept `single space' syntax like (? x).
Diffstat (limited to 'src')
| -rw-r--r-- | src/lread.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lread.c b/src/lread.c index 071bf679015..70f0a3f2f9b 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -2258,6 +2258,13 @@ read1 (readcharfun, pch, first_in_list) | |||
| 2258 | if (c < 0) | 2258 | if (c < 0) |
| 2259 | end_of_file_error (); | 2259 | end_of_file_error (); |
| 2260 | 2260 | ||
| 2261 | /* Accept `single space' syntax like (list ? x) where the | ||
| 2262 | whitespace character is SPC or TAB. | ||
| 2263 | Other literal whitespace like NL, CR, and FF are not accepted, | ||
| 2264 | as there are well-established escape sequences for these. */ | ||
| 2265 | if (c == ' ' || c == '\t') | ||
| 2266 | return make_number (c); | ||
| 2267 | |||
| 2261 | if (c == '\\') | 2268 | if (c == '\\') |
| 2262 | c = read_escape (readcharfun, 0, &discard); | 2269 | c = read_escape (readcharfun, 0, &discard); |
| 2263 | else if (BASE_LEADING_CODE_P (c)) | 2270 | else if (BASE_LEADING_CODE_P (c)) |