diff options
| author | Andreas Schwab | 2010-06-23 10:22:36 +0200 |
|---|---|---|
| committer | Andreas Schwab | 2010-06-23 10:22:36 +0200 |
| commit | 5721b4ed163946f1d3828f978f1c2bb43f3a9c61 (patch) | |
| tree | 57f29db0962cffbf46b56509228c406d6e5cfc35 /src | |
| parent | b1fbbb32e116a921b81fe910da66671537181a28 (diff) | |
| download | emacs-5721b4ed163946f1d3828f978f1c2bb43f3a9c61.tar.gz emacs-5721b4ed163946f1d3828f978f1c2bb43f3a9c61.zip | |
* lread.c (read1): Signal error if #s is not followed by paren.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/lread.c | 22 |
2 files changed, 16 insertions, 10 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index cf6f8427b25..14c1482a049 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2010-06-23 Andreas Schwab <schwab@linux-m68k.org> | ||
| 2 | |||
| 3 | * lread.c (read1): Signal error if #s is not followed by paren. | ||
| 4 | |||
| 1 | 2010-06-19 Chong Yidong <cyd@stupidchicken.com> | 5 | 2010-06-19 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 6 | ||
| 3 | * image.c (free_image): Mark frame as garbaged (Bug#6426). | 7 | * image.c (free_image): Mark frame as garbaged (Bug#6426). |
diff --git a/src/lread.c b/src/lread.c index ba9d5378104..c96e391a2d3 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -2377,28 +2377,28 @@ read1 (readcharfun, pch, first_in_list) | |||
| 2377 | /* This is repetitive but fast and simple. */ | 2377 | /* This is repetitive but fast and simple. */ |
| 2378 | params[param_count] = QCsize; | 2378 | params[param_count] = QCsize; |
| 2379 | params[param_count+1] = Fplist_get (tmp, Qsize); | 2379 | params[param_count+1] = Fplist_get (tmp, Qsize); |
| 2380 | if (!NILP (params[param_count+1])) | 2380 | if (!NILP (params[param_count + 1])) |
| 2381 | param_count+=2; | 2381 | param_count += 2; |
| 2382 | 2382 | ||
| 2383 | params[param_count] = QCtest; | 2383 | params[param_count] = QCtest; |
| 2384 | params[param_count+1] = Fplist_get (tmp, Qtest); | 2384 | params[param_count+1] = Fplist_get (tmp, Qtest); |
| 2385 | if (!NILP (params[param_count+1])) | 2385 | if (!NILP (params[param_count + 1])) |
| 2386 | param_count+=2; | 2386 | param_count += 2; |
| 2387 | 2387 | ||
| 2388 | params[param_count] = QCweakness; | 2388 | params[param_count] = QCweakness; |
| 2389 | params[param_count+1] = Fplist_get (tmp, Qweakness); | 2389 | params[param_count+1] = Fplist_get (tmp, Qweakness); |
| 2390 | if (!NILP (params[param_count+1])) | 2390 | if (!NILP (params[param_count + 1])) |
| 2391 | param_count+=2; | 2391 | param_count += 2; |
| 2392 | 2392 | ||
| 2393 | params[param_count] = QCrehash_size; | 2393 | params[param_count] = QCrehash_size; |
| 2394 | params[param_count+1] = Fplist_get (tmp, Qrehash_size); | 2394 | params[param_count+1] = Fplist_get (tmp, Qrehash_size); |
| 2395 | if (!NILP (params[param_count+1])) | 2395 | if (!NILP (params[param_count + 1])) |
| 2396 | param_count+=2; | 2396 | param_count += 2; |
| 2397 | 2397 | ||
| 2398 | params[param_count] = QCrehash_threshold; | 2398 | params[param_count] = QCrehash_threshold; |
| 2399 | params[param_count+1] = Fplist_get (tmp, Qrehash_threshold); | 2399 | params[param_count+1] = Fplist_get (tmp, Qrehash_threshold); |
| 2400 | if (!NILP (params[param_count+1])) | 2400 | if (!NILP (params[param_count + 1])) |
| 2401 | param_count+=2; | 2401 | param_count += 2; |
| 2402 | 2402 | ||
| 2403 | /* This is the hashtable data. */ | 2403 | /* This is the hashtable data. */ |
| 2404 | data = Fplist_get (tmp, Qdata); | 2404 | data = Fplist_get (tmp, Qdata); |
| @@ -2419,6 +2419,8 @@ read1 (readcharfun, pch, first_in_list) | |||
| 2419 | 2419 | ||
| 2420 | return ht; | 2420 | return ht; |
| 2421 | } | 2421 | } |
| 2422 | UNREAD (c); | ||
| 2423 | invalid_syntax ("#", 1); | ||
| 2422 | } | 2424 | } |
| 2423 | if (c == '^') | 2425 | if (c == '^') |
| 2424 | { | 2426 | { |