aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1997-10-15 22:45:35 +0000
committerKarl Heuer1997-10-15 22:45:35 +0000
commitd49f0c1af8e16701b95f75733a9865951e7b3f5b (patch)
tree3735d0ab8b270fd2bc6def4dafb9facaaca7942b /src
parentd2f273579280ac79d5990c44fd4a5cc60dc69d82 (diff)
downloademacs-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.c6
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;
130static int read_from_string_index; 130static int read_from_string_index;
131static int read_from_string_limit; 131static 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. */
134static char *saved_doc_string; 135static char *saved_doc_string;
135/* Length of buffer allocated in saved_doc_string. */ 136/* Length of buffer allocated in saved_doc_string. */
136static int saved_doc_string_size; 137static 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