Questions tagged [read]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
22
votes
2answers
3k views

How to evaluate Elisp code contained in a string?

The question pretty much says it all: I have a string containing the source code for a valid Elisp expression, and I would like to evaluate it. (In Python, for example, the expression eval("1 - 2 + 3"...
2
votes
1answer
519 views

How to handle end of file during parsing errors while reading a string?

I was trying to read and eval Lisp forms from a string using a loop, instead of just putting the string into a buffer and using eval-buffer to load everything in the string. That method was mentioned ...
2
votes
1answer
209 views

How should you read a Lisp file as Lisp for processing without condition-case?

To help catch predictable errors, I've written my own linting tasks that read the code and report any inconsistencies it finds. One of the hackier pieces to this right now is the following function: ...