diff options
| author | Karl Heuer | 1997-10-15 22:45:35 +0000 |
|---|---|---|
| committer | Karl Heuer | 1997-10-15 22:45:35 +0000 |
| commit | d49f0c1af8e16701b95f75733a9865951e7b3f5b (patch) | |
| tree | 3735d0ab8b270fd2bc6def4dafb9facaaca7942b /src | |
| parent | d2f273579280ac79d5990c44fd4a5cc60dc69d82 (diff) | |
| download | emacs-d49f0c1af8e16701b95f75733a9865951e7b3f5b.tar.gz emacs-d49f0c1af8e16701b95f75733a9865951e7b3f5b.zip | |
(read_list): Don't recognize Vload_file_name
specially if it is nil.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lread.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lread.c b/src/lread.c index 1cf882d36d2..62886190fb2 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -130,7 +130,8 @@ static int read_pure; | |||
| 130 | static int read_from_string_index; | 130 | static int read_from_string_index; |
| 131 | static int read_from_string_limit; | 131 | static int read_from_string_limit; |
| 132 | 132 | ||
| 133 | /* This contains the last string skipped with #@. */ | 133 | /* This contains the last string skipped with #@, but only on some systems. |
| 134 | On other systems we can't put the string here. */ | ||
| 134 | static char *saved_doc_string; | 135 | static char *saved_doc_string; |
| 135 | /* Length of buffer allocated in saved_doc_string. */ | 136 | /* Length of buffer allocated in saved_doc_string. */ |
| 136 | static int saved_doc_string_size; | 137 | static int saved_doc_string_size; |
| @@ -1517,6 +1518,7 @@ read1 (readcharfun, pch, first_in_list) | |||
| 1517 | for (i = 0; i < nskip && c >= 0; i++) | 1518 | for (i = 0; i < nskip && c >= 0; i++) |
| 1518 | c = READCHAR; | 1519 | c = READCHAR; |
| 1519 | } | 1520 | } |
| 1521 | |||
| 1520 | goto retry; | 1522 | goto retry; |
| 1521 | } | 1523 | } |
| 1522 | if (c == '$') | 1524 | if (c == '$') |
| @@ -1942,6 +1944,7 @@ read_list (flag, readcharfun) | |||
| 1942 | 1944 | ||
| 1943 | /* While building, if the list starts with #$, treat it specially. */ | 1945 | /* While building, if the list starts with #$, treat it specially. */ |
| 1944 | if (EQ (elt, Vload_file_name) | 1946 | if (EQ (elt, Vload_file_name) |
| 1947 | && ! NILP (elt) | ||
| 1945 | && !NILP (Vpurify_flag)) | 1948 | && !NILP (Vpurify_flag)) |
| 1946 | { | 1949 | { |
| 1947 | if (NILP (Vdoc_file_name)) | 1950 | if (NILP (Vdoc_file_name)) |
| @@ -1960,6 +1963,7 @@ read_list (flag, readcharfun) | |||
| 1960 | Ffile_name_nondirectory (elt)); | 1963 | Ffile_name_nondirectory (elt)); |
| 1961 | } | 1964 | } |
| 1962 | else if (EQ (elt, Vload_file_name) | 1965 | else if (EQ (elt, Vload_file_name) |
| 1966 | && ! NILP (elt) | ||
| 1963 | && load_force_doc_strings) | 1967 | && load_force_doc_strings) |
| 1964 | doc_reference = 2; | 1968 | doc_reference = 2; |
| 1965 | 1969 | ||