# HG changeset patch # User Andreas Schwab # Date 1277281356 -7200 # Node ID de58fd0baac514eeccb3526cd127f9e392093815 # Parent a7253b87aad97a2f7aea58a97674a5c8302a1fcc * lread.c (read1): Signal error if #s is not followed by paren. diff -r a7253b87aad9 -r de58fd0baac5 src/ChangeLog --- a/src/ChangeLog Wed Jun 23 00:44:09 2010 -0700 +++ b/src/ChangeLog Wed Jun 23 10:22:36 2010 +0200 @@ -1,3 +1,7 @@ +2010-06-23 Andreas Schwab + + * lread.c (read1): Signal error if #s is not followed by paren. + 2010-06-19 Chong Yidong * image.c (free_image): Mark frame as garbaged (Bug#6426). diff -r a7253b87aad9 -r de58fd0baac5 src/lread.c --- a/src/lread.c Wed Jun 23 00:44:09 2010 -0700 +++ b/src/lread.c Wed Jun 23 10:22:36 2010 +0200 @@ -2377,28 +2377,28 @@ /* This is repetitive but fast and simple. */ params[param_count] = QCsize; params[param_count+1] = Fplist_get (tmp, Qsize); - if (!NILP (params[param_count+1])) - param_count+=2; + if (!NILP (params[param_count + 1])) + param_count += 2; params[param_count] = QCtest; params[param_count+1] = Fplist_get (tmp, Qtest); - if (!NILP (params[param_count+1])) - param_count+=2; + if (!NILP (params[param_count + 1])) + param_count += 2; params[param_count] = QCweakness; params[param_count+1] = Fplist_get (tmp, Qweakness); - if (!NILP (params[param_count+1])) - param_count+=2; + if (!NILP (params[param_count + 1])) + param_count += 2; params[param_count] = QCrehash_size; params[param_count+1] = Fplist_get (tmp, Qrehash_size); - if (!NILP (params[param_count+1])) - param_count+=2; + if (!NILP (params[param_count + 1])) + param_count += 2; params[param_count] = QCrehash_threshold; params[param_count+1] = Fplist_get (tmp, Qrehash_threshold); - if (!NILP (params[param_count+1])) - param_count+=2; + if (!NILP (params[param_count + 1])) + param_count += 2; /* This is the hashtable data. */ data = Fplist_get (tmp, Qdata); @@ -2419,6 +2419,8 @@ return ht; } + UNREAD (c); + invalid_syntax ("#", 1); } if (c == '^') {