Function: read-from-string
read-from-string is a function defined in lread.c.
Signature
(read-from-string STRING &optional START END)
Documentation
Read one Lisp expression which is represented as text by STRING.
Returns a cons: (OBJECT-READ . FINAL-STRING-INDEX).
FINAL-STRING-INDEX is an integer giving the position of the next
remaining character in STRING. START and END optionally delimit
a substring of STRING from which to read; they default to 0 and
(length STRING) respectively. Negative values are counted from
the end of STRING.
Probably introduced at or before Emacs version 15.
Source Code
// Defined in /usr/src/emacs/src/lread.c
{
Lisp_Object ret;
CHECK_STRING (string);
/* `read_internal_start' sets `read_from_string_index'. */
ret = read_internal_start (string, start, end, false);
return Fcons (ret, make_fixnum (read_from_string_index));
}