Hello again, I was able to make readevalloop do what I want. It was rather trivial to implement this (once I realized how it works 🙂). Emacs built fine and I was able to test wtih eval-buffer and eval-regionwhich worked as intended. It was just 4 code lines, I just copied codeto parse comment and change the condition in if-statement: (message "Hello, World!") (message "Hello Again!") In code blocs the ';' is still a comment delimiter: (message ;; Here is a line comment "I am a bit chatty today!") That's it for today folks! (message "Bye bye cruel world!") This email was composed in scratch buffer and executed during writing with eval-buffer for testing. However, byte compiler is not happy about this. It emits warnings for every word out of code blocks as references to free variables. I am not sure where to look to patch it, maybe another day. ________________________________ Från: Stefan Monnier Skickat: den 14 december 2019 15:08 Till: arthur miller Kopia: emacs-devel ; archambv@iro.umontreal.ca Ämne: Re: Sv: Christmas wish: Literate Elisp arthur miller [2019-12-14 04:40:30] wrote: > To be honest my contact with Haskell broke once the university course, some > 20 yrs ago was over, so I am a little bit illiterate about Haskells sexy > packages. I just recalled that it was possible to invert text and code in > Haskell. But cool. The fact that it's written is Haskell is just incidental. > Didn't know there is a package to let load org files directly either. Hmm... The closest I can find is https://github.com/jingtaozf/literate-elisp/ but it doesn't quite match what I think I was referring to. Stefan > Thanks for the answers. > ________________________________ > Från: Stefan Monnier > Skickat: den 12 december 2019 18:29 > Till: arthur miller > Kopia: emacs-devel ; archambv@iro.umontreal.ca > Ämne: Re: Christmas wish: Literate Elisp > >> My proposal is to slightly change Elisp parser to treat lines that start >> with any other printable character but '(' as a start of comment and to >> simply ignore the line, just as it treats ';' as a comment. > > The `sexpresso` Haskell package follows the same idea ;-) > > As for using it in Elisp: I don't think there's anything stopping anyone > from making such a `literate-elisp-mode` and even arrange for `load` to > handle such a file (just like there is already a package that lets > `load` work directly on .org files). > > I'd welcome such a package in GNU ELPA. > > > Stefan