diff options
| author | Alan Mackenzie | 2017-02-12 10:59:03 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2017-02-12 10:59:03 +0000 |
| commit | f4d5b687150810129b7a1d5b006e31ccf82b691b (patch) | |
| tree | 4229b13800349032697daae3904dc3773e6b7a80 /src/lread.c | |
| parent | d5514332d4a6092673ce1f78fadcae0c57f7be64 (diff) | |
| parent | 148100d98319499f0ac6f57b8be08cbd14884a5c (diff) | |
| download | emacs-comment-cache.tar.gz emacs-comment-cache.zip | |
Merge branch 'master' into comment-cachecomment-cache
Diffstat (limited to 'src/lread.c')
| -rw-r--r-- | src/lread.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/lread.c b/src/lread.c index 284fd1aafbc..094aa628eec 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -451,7 +451,7 @@ readbyte_from_file (int c, Lisp_Object readcharfun) | |||
| 451 | while (c == EOF && ferror (instream) && errno == EINTR) | 451 | while (c == EOF && ferror (instream) && errno == EINTR) |
| 452 | { | 452 | { |
| 453 | unblock_input (); | 453 | unblock_input (); |
| 454 | QUIT; | 454 | maybe_quit (); |
| 455 | block_input (); | 455 | block_input (); |
| 456 | clearerr (instream); | 456 | clearerr (instream); |
| 457 | c = getc (instream); | 457 | c = getc (instream); |
| @@ -910,7 +910,7 @@ safe_to_load_version (int fd) | |||
| 910 | 910 | ||
| 911 | /* Read the first few bytes from the file, and look for a line | 911 | /* Read the first few bytes from the file, and look for a line |
| 912 | specifying the byte compiler version used. */ | 912 | specifying the byte compiler version used. */ |
| 913 | nbytes = emacs_read (fd, buf, sizeof buf); | 913 | nbytes = emacs_read_quit (fd, buf, sizeof buf); |
| 914 | if (nbytes > 0) | 914 | if (nbytes > 0) |
| 915 | { | 915 | { |
| 916 | /* Skip to the next newline, skipping over the initial `ELC' | 916 | /* Skip to the next newline, skipping over the initial `ELC' |
| @@ -1702,14 +1702,14 @@ build_load_history (Lisp_Object filename, bool entire) | |||
| 1702 | Fcons (newelt, XCDR (tem)))); | 1702 | Fcons (newelt, XCDR (tem)))); |
| 1703 | 1703 | ||
| 1704 | tem2 = XCDR (tem2); | 1704 | tem2 = XCDR (tem2); |
| 1705 | QUIT; | 1705 | maybe_quit (); |
| 1706 | } | 1706 | } |
| 1707 | } | 1707 | } |
| 1708 | } | 1708 | } |
| 1709 | else | 1709 | else |
| 1710 | prev = tail; | 1710 | prev = tail; |
| 1711 | tail = XCDR (tail); | 1711 | tail = XCDR (tail); |
| 1712 | QUIT; | 1712 | maybe_quit (); |
| 1713 | } | 1713 | } |
| 1714 | 1714 | ||
| 1715 | /* If we're loading an entire file, cons the new assoc onto the | 1715 | /* If we're loading an entire file, cons the new assoc onto the |
| @@ -2599,7 +2599,7 @@ read1 (Lisp_Object readcharfun, int *pch, bool first_in_list) | |||
| 2599 | Lisp_Object val = Qnil; | 2599 | Lisp_Object val = Qnil; |
| 2600 | /* The size is 2 * number of allowed keywords to | 2600 | /* The size is 2 * number of allowed keywords to |
| 2601 | make-hash-table. */ | 2601 | make-hash-table. */ |
| 2602 | Lisp_Object params[10]; | 2602 | Lisp_Object params[12]; |
| 2603 | Lisp_Object ht; | 2603 | Lisp_Object ht; |
| 2604 | Lisp_Object key = Qnil; | 2604 | Lisp_Object key = Qnil; |
| 2605 | int param_count = 0; | 2605 | int param_count = 0; |
| @@ -2636,6 +2636,11 @@ read1 (Lisp_Object readcharfun, int *pch, bool first_in_list) | |||
| 2636 | if (!NILP (params[param_count + 1])) | 2636 | if (!NILP (params[param_count + 1])) |
| 2637 | param_count += 2; | 2637 | param_count += 2; |
| 2638 | 2638 | ||
| 2639 | params[param_count] = QCpurecopy; | ||
| 2640 | params[param_count + 1] = Fplist_get (tmp, Qpurecopy); | ||
| 2641 | if (!NILP (params[param_count + 1])) | ||
| 2642 | param_count += 2; | ||
| 2643 | |||
| 2639 | /* This is the hash table data. */ | 2644 | /* This is the hash table data. */ |
| 2640 | data = Fplist_get (tmp, Qdata); | 2645 | data = Fplist_get (tmp, Qdata); |
| 2641 | 2646 | ||
| @@ -4849,6 +4854,7 @@ that are loaded before your customizations are read! */); | |||
| 4849 | DEFSYM (Qdata, "data"); | 4854 | DEFSYM (Qdata, "data"); |
| 4850 | DEFSYM (Qtest, "test"); | 4855 | DEFSYM (Qtest, "test"); |
| 4851 | DEFSYM (Qsize, "size"); | 4856 | DEFSYM (Qsize, "size"); |
| 4857 | DEFSYM (Qpurecopy, "purecopy"); | ||
| 4852 | DEFSYM (Qweakness, "weakness"); | 4858 | DEFSYM (Qweakness, "weakness"); |
| 4853 | DEFSYM (Qrehash_size, "rehash-size"); | 4859 | DEFSYM (Qrehash_size, "rehash-size"); |
| 4854 | DEFSYM (Qrehash_threshold, "rehash-threshold"); | 4860 | DEFSYM (Qrehash_threshold, "rehash-threshold"); |