How to programmatically re-write your Elisp code with ‘el-search’ and ‘el-search-refactor’ (Or) How to De-‘dash’, De-‘s’ and De-‘f’ your Elisp Libraries

https://emacsnotes.wordpress.com/2023/07/22/how-to-programmatically-re-write-your-elisp-code-with-el-search-and-el-search-refactor-or-how-to-de-dash-de-s-and-de/

10 points · 5 comments · view on lemmy.world

5 Comments

stsquad@lemmy.ml · 1 pts · 3y (1 reply)

Is there an actual reason to de-magnar your libraries? The main reason I use them is they provide some concise approaches to common operations. I get that later emacs have introduced similar functions but I try and maintain support for as wide a range of emacs versions add possible.

howardthegeek@mander.xyz · 1 pts · 3y

I guess it depends on whether you want to have less dependencies and support more Emacs versions, for the opposite.

If I am supplying functions for others, I generally like to keep the dependencies low, just use standard libraries built into Emacs, so I think this could be helpful.

donio@lemmy.world · 1 pts · 3y (2 replies)

This looks neat but... does el-search-refactor actually exist? I am not able to find it anywhere.

junkbond@lemmy.ml · 2 pts · 3y (1 reply)

This looks neat but… does el-search-refactor actually exist? I am not able to find it anywhere.

It is right there in the article. Here it is https://raw.githubusercontent.com/emacksnotes/emacsnotes.wordpress.com/master/el-search-refactor/el-search-refactor.el or https://github.com/emacksnotes/emacsnotes.wordpress.com/tree/master/el-search-refactor

donio@lemmy.world · 1 pts · 3y

Thanks, I see it now. I guess the use of that little link icon instead of the normal text anchor threw me.