Re:Making IELM (Emacs Lisp REPL) More Comfortable
by bm3719 on Saturday April 08, 2023 @08:12PM
(#35498902)
I use IELM regularly, so thanks for writing it!
Looking at ielm.el, it appears it now defaults to hexl, which is part of the Emacs distribution, as cat might not exist on non-Unix platforms. That's wrapped in a condition-case call though, and will still call cat if that fails.
Re:Making IELM (Emacs Lisp REPL) More Comfortable
by ews on Saturday April 08, 2023 @10:29PM
(#35499576)
omg this comment is amazing, I am using IELM almost everyday as a REPL for emacs (it's not uncommon for me to open buffers from either eshell or ielm directly). Thanks so much for your work on this.
Re:Making IELM (Emacs Lisp REPL) More Comfortable
by galdor on Sunday April 09, 2023 @04:21AM
(#35500870)
Author of the blog post here. Not only is it still in use, but I rely on it all the time because I find inline evaluation (M-:) unusable for anything but the simplest command. At the very least I want to visualize the output of the command without it being replaced in the echo area by the next message, and I may want to copy it.
And of course now I have a persistent history of all commands.
Thank you!
Re:Making IELM (Emacs Lisp REPL) More Comfortable
by kagevf on Sunday April 09, 2023 @03:57PM
(#35505901)
There’s also C-h e for those times when you want to review what was displayed in the echo area. Very handy.
Re:Making IELM (Emacs Lisp REPL) More Comfortable
by crabbone on Monday April 10, 2023 @01:49PM
(#35515093)
On M-: -- My typical approach is to use the scratch buffer, where I can evaluate multiple things and remember the outcomes, macroexpand etc. So, M-: isn't the only alternative to IELM, but there are also things that scratch doesn't work well with, especially when it comes to figuring out what current buffer is, saving point position, debugging, probably more. So, yeah, for more serious stuff, IELM is better.
Re:Making IELM (Emacs Lisp REPL) More Comfortable
by koito17 on Sunday April 09, 2023 @05:19AM
(#35501086)
I always M-x ielm every time I want to modify something in my Emacs or try out a new package before modifying my init.el.
Such a useful tool even if elisp has limited debugging capabilities :)
Re:Making IELM (Emacs Lisp REPL) More Comfortable
by medo-bear on Sunday April 09, 2023 @07:00AM
(#35501545)
i discovered ielm last year and it is a great tool. so much so that i wish emacs started with it opened. if you want to do exploration of emacs via elisp extensions ielm is an essential tool i think. thank you sir for your work!
I do remember I had to use an awful hack to make it work. Comint expects data from a pipe, but eLisp output is internal to Emacs. The details are hazy now, I but I think I pushed the eval result as stdin to a ‘cat’ process for Comint to ingest the output. I wonder if that ever got cleaned up…