[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Sv: Sv: Christmas wish: Literate Elisp
From: |
Stefan Monnier |
Subject: |
Re: Sv: Sv: Christmas wish: Literate Elisp |
Date: |
Fri, 20 Dec 2019 11:17:35 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> I really understand the concern, but I must ask how would one change the
> elisp itself without re-implementing much or some of of elisp parser if it
> would
> be done externally?
I recommend you take a look at the existing function used on
load-source-file-function (i.e. load-with-code-conversion): it loads the
source file into a buffer and then calls `eval-buffer`.
So all it would take is for you to erase the text (aka non-code) part of
the source code before passing it to `eval-buffer` (but of course, only
do it when that source is using your new format).
Or instead of `eval-buffer` you might "manually" skip the text parts,
then use `read` + `eval` on the code parts. This would probably take
a bit more effort in order to correctly handle (defvar foo).
Stefan
- Re: Sv: Sv: Sv: Christmas wish: Literate Elisp, (continued)
- Re: Sv: Sv: Sv: Christmas wish: Literate Elisp, Adam Porter, 2019/12/18
- Sv: Sv: Sv: Sv: Christmas wish: Literate Elisp, arthur miller, 2019/12/18
- Re: Sv: Sv: Sv: Sv: Christmas wish: Literate Elisp, Adam Porter, 2019/12/18
- Sv: Sv: Sv: Sv: Sv: Christmas wish: Literate Elisp, arthur miller, 2019/12/18
- Re: Sv: Sv: Sv: Sv: Christmas wish: Literate Elisp, chad, 2019/12/18
- Re: Christmas wish: Literate Elisp, Jean-Christophe Helary, 2019/12/18
- Sv: Christmas wish: Literate Elisp, arthur miller, 2019/12/19
- Re: Sv: Christmas wish: Literate Elisp, Stefan Monnier, 2019/12/20
- Re: Sv: Christmas wish: Literate Elisp, Stefan Monnier, 2019/12/20
- Sv: Sv: Christmas wish: Literate Elisp, arthur miller, 2019/12/20
- Re: Sv: Sv: Christmas wish: Literate Elisp,
Stefan Monnier <=
- Re: Sv: Sv: Christmas wish: Literate Elisp, Eduardo Ochs, 2019/12/20
- Sv: Sv: Sv: Christmas wish: Literate Elisp, arthur miller, 2019/12/20
- Re: Sv: Sv: Christmas wish: Literate Elisp, Eduardo Ochs, 2019/12/21
- Sv: Sv: Sv: Christmas wish: Literate Elisp, arthur miller, 2019/12/21
- Message not available
- Sv: Sv: Sv: Christmas wish: Literate Elisp, arthur miller, 2019/12/21
- Message not available
- Message not available
- Message not available
- Sv: Sv: Sv: Sv: Christmas wish: Literate Elisp, arthur miller, 2019/12/22
- Re: Christmas wish: Literate Elisp, Phillip Lord, 2019/12/20