comparison src/lread.c @ 22889:beddbcd21407

(read1): In reading a string, treat Qlambda like Qget_file_char.
author Richard M. Stallman <rms@gnu.org>
date Sun, 02 Aug 1998 02:43:47 +0000
parents ff0ed53342b3
children 1b44597160c3
comparison
equal deleted inserted replaced
22888:5bfe86125303 22889:beddbcd21407
1940 string = make_multibyte_string (read_buffer, nchars, 1940 string = make_multibyte_string (read_buffer, nchars,
1941 p - read_buffer); 1941 p - read_buffer);
1942 return Fstring_make_unibyte (string); 1942 return Fstring_make_unibyte (string);
1943 } 1943 }
1944 } 1944 }
1945 else if (EQ (readcharfun, Qget_file_char)) 1945 else if (EQ (readcharfun, Qget_file_char)
1946 || EQ (readcharfun, Qlambda))
1946 /* Nowadays, reading directly from a file 1947 /* Nowadays, reading directly from a file
1947 is used only for compiled Emacs Lisp files, 1948 is used only for compiled Emacs Lisp files,
1948 and those always use the Emacs internal encoding. */ 1949 and those always use the Emacs internal encoding.
1950 Meanwhile, Qlambda is used for reading dynamic byte code
1951 (compiled with byte-compile-dynamic = t). */
1949 nchars = multibyte_chars_in_text (read_buffer, p - read_buffer); 1952 nchars = multibyte_chars_in_text (read_buffer, p - read_buffer);
1950 else 1953 else
1951 /* In all other cases, if we read these bytes as 1954 /* In all other cases, if we read these bytes as
1952 separate characters, treat them as separate characters now. */ 1955 separate characters, treat them as separate characters now. */
1953 nchars = p - read_buffer; 1956 nchars = p - read_buffer;