diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lread.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lread.c b/src/lread.c index f281c92abab..ad0779911ea 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -68,7 +68,7 @@ extern int errno; | |||
| 68 | Lisp_Object Qread_char, Qget_file_char, Qstandard_input, Qcurrent_load_list; | 68 | Lisp_Object Qread_char, Qget_file_char, Qstandard_input, Qcurrent_load_list; |
| 69 | Lisp_Object Qvariable_documentation, Vvalues, Vstandard_input, Vafter_load_alist; | 69 | Lisp_Object Qvariable_documentation, Vvalues, Vstandard_input, Vafter_load_alist; |
| 70 | Lisp_Object Qascii_character, Qload, Qload_file_name; | 70 | Lisp_Object Qascii_character, Qload, Qload_file_name; |
| 71 | Lisp_Object Qbackquote, Qcomma, Qcomma_at, Qcomma_dot; | 71 | Lisp_Object Qbackquote, Qcomma, Qcomma_at, Qcomma_dot, Qfunction; |
| 72 | 72 | ||
| 73 | extern Lisp_Object Qevent_symbol_element_mask; | 73 | extern Lisp_Object Qevent_symbol_element_mask; |
| 74 | 74 | ||
| @@ -1317,6 +1317,9 @@ read1 (readcharfun, pch, first_in_list) | |||
| 1317 | } | 1317 | } |
| 1318 | if (c == '$') | 1318 | if (c == '$') |
| 1319 | return Vload_file_name; | 1319 | return Vload_file_name; |
| 1320 | if (c == '\'') | ||
| 1321 | return Fcons (Qfunction, Fcons (read0 (readcharfun), Qnil)); | ||
| 1322 | |||
| 1320 | 1323 | ||
| 1321 | UNREAD (c); | 1324 | UNREAD (c); |
| 1322 | Fsignal (Qinvalid_read_syntax, Fcons (make_string ("#", 1), Qnil)); | 1325 | Fsignal (Qinvalid_read_syntax, Fcons (make_string ("#", 1), Qnil)); |
| @@ -2434,6 +2437,9 @@ This is useful when the file being loaded is a temporary copy."); | |||
| 2434 | Qascii_character = intern ("ascii-character"); | 2437 | Qascii_character = intern ("ascii-character"); |
| 2435 | staticpro (&Qascii_character); | 2438 | staticpro (&Qascii_character); |
| 2436 | 2439 | ||
| 2440 | Qfunction = intern ("function"); | ||
| 2441 | staticpro (&Qfunction); | ||
| 2442 | |||
| 2437 | Qload = intern ("load"); | 2443 | Qload = intern ("load"); |
| 2438 | staticpro (&Qload); | 2444 | staticpro (&Qload); |
| 2439 | 2445 | ||